# Review claim media

Review attested claim photos and video, explain the result to the policyholder, find linked claims, and escalate a suspicious claim with an evidence PDF.

Use Attest in a claims workflow to read every attested photo and video on a claim, explain the result to the policyholder, catch claims that share a device or location, and escalate the suspicious ones with an evidence PDF.

In the [capture-to-verify path](https://provenanceauth.com/docs/attest/quickstart.md), this guide is the review step, after the photos are captured and verified.

In production the policyholder captures through the [capture SDK](https://provenanceauth.com/docs/attest/guides/native-sdk.md), which signs each photo on the device and submits it to [`POST /v1/attest/attestations`](https://provenanceauth.com/docs/api/claims.md#post-v1-attest-attestations). The sandbox already holds seeded claims, so this guide starts from review.

**Before you begin:** export the full-access sandbox key.

```bash
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
```

## 1. Read a claim's provenance

[`GET /v1/attest/claims/{id}/provenance`](https://provenanceauth.com/docs/api/claims.md#get-v1-attest-claims-id-provenance) returns every asset on a claim with its verification result. `CLM-SANDBOX-PARTIAL` holds two web uploads that were never attested and one attested photo:

**curl**

```bash
curl $PROVENANCE_API/v1/attest/claims/CLM-SANDBOX-PARTIAL/provenance \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
import { Provenance } from "@provenanceauth/sdk";

const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const claim = await prov.attest.claims.getProvenance("CLM-SANDBOX-PARTIAL");
```

**Python**

```python
import os
from provenanceauth import Provenance

prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
claim = prov.attest.claims.get_provenance("CLM-SANDBOX-PARTIAL")
```

The response, trimmed to each asset's verdict:

```json
{
  "id": "CLM-SANDBOX-PARTIAL",
  "object": "claim",
  "assets": [
    {
      "id": "att_00000000000000000000000000000010",
      "object": "verification_result",
      "status": "failed",
      "risk_score": 100,
      "risk_factors": [
        { "factor": "cert_unknown_ca", "points": 40 },
        { "factor": "gps_absent", "points": 30 },
        { "factor": "device_not_enrolled", "points": 20 },
        { "factor": "biometric_absent", "points": 10 },
        { "factor": "exif_missing", "points": 5 }
      ]
    },
    {
      "id": "att_00000000000000000000000000000012",
      "object": "verification_result",
      "status": "verified",
      "risk_score": 15,
      "risk_factors": [{ "factor": "exif_timestamp_mismatch", "points": 15 }]
    }
  ],
  "overall_status": "failed",
  "overall_risk_score": 100
}
```

The claim's score is its highest asset's. Each factor is explained on [risk scoring](https://provenanceauth.com/docs/attest/concepts/risk-scoring.md).

## 2. Explain the result

[`GET /v1/attest/claims/{id}/explanation`](https://provenanceauth.com/docs/api/claims.md#get-v1-attest-claims-id-explanation) renders the factors as fixed, reviewed text you can show the policyholder, with what would resolve each one. The same factors always give the same words, and each render is logged on the claim's case.

**curl**

```bash
curl $PROVENANCE_API/v1/attest/claims/CLM-SANDBOX-FRAUD/explanation \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const explanation = await prov.attest.claims.explanation("CLM-SANDBOX-FRAUD");
```

**Python**

```python
explanation = prov.attest.claims.explanation("CLM-SANDBOX-FRAUD")
```

The response, trimmed to the first factor:

```json
{
  "object": "claim_explanation",
  "claim_id": "CLM-SANDBOX-FRAUD",
  "template_version": "2026-07-05.1",
  "locale": "en",
  "overall_status": "failed",
  "summary": "This claim raised 5 provenance signals that need review. Each is explained below, with what would resolve it.",
  "factors": [
    {
      "code": "signature_invalid",
      "title": "Signature did not verify",
      "body": "The capture record's digital signature failed to verify, which means the file was altered after it was signed.",
      "resolution_hint": "Submit the original, unedited file exactly as captured."
    }
  ]
}
```

The policyholder can answer with an appeal; see [cases and appeals](https://provenanceauth.com/docs/attest/guides/cases-and-appeals.md).

## 3. Check for linked claims

Fraud rings reuse devices, certificates and locations across claims. On every attest, Provenance compares the new claim with your other claims and records links. [`GET /v1/attest/claims/{id}/links`](https://provenanceauth.com/docs/api/claims.md#get-v1-attest-claims-id-links) lists them:

**curl**

```bash
curl $PROVENANCE_API/v1/attest/claims/CLM-SANDBOX-RING-B/links \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const links = await prov.attest.claims.links("CLM-SANDBOX-RING-B");
```

**Python**

```python
links = prov.attest.claims.links("CLM-SANDBOX-RING-B")
```

```json
{
  "object": "list",
  "data": [
    {
      "id": "clk_01M5Q06YS3REJPC276SHV886MH",
      "object": "claim_link",
      "claim_id": "CLM-SANDBOX-RING-B",
      "other_claim_id": "CLM-SANDBOX-RING-A",
      "link_type": "shared_device",
      "strength": "strong",
      "evidence": { "device_id": "dev_000000000000000000000000000000f1" },
      "created_at": "2026-10-24T13:04:44.255Z"
    },
    {
      "id": "clk_01M5Q06YS41Z3VMTD5YDXZ7XP3",
      "object": "claim_link",
      "claim_id": "CLM-SANDBOX-RING-B",
      "other_claim_id": "CLM-SANDBOX-RING-A",
      "link_type": "gps_proximity",
      "strength": "weak",
      "evidence": { "distance_m": 0, "radius_m": 250 },
      "created_at": "2026-10-24T13:04:44.255Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

| `link_type` | Strength | Meaning |
| --- | --- | --- |
| `shared_device` | strong | The same device captured two differently named claims. |
| `shared_cert` | strong | One device certificate appears under a different device ID, the sign of a cloned key. |
| `gps_proximity` | weak | Two claims captured within the configured radius and time window. |

Links stay within your own claims. A link also adds the `cross_claim_link` risk factor to new verifications.

## 4. Escalate to investigation

[`POST /v1/attest/claims/{id}/escalate`](https://provenanceauth.com/docs/api/claims.md#post-v1-attest-claims-id-escalate) adds an `escalation` event to each asset's [chain of custody](https://provenanceauth.com/docs/attest/concepts/chain-of-custody.md) and returns a one-page evidence PDF as base64:

**curl**

```bash
curl $PROVENANCE_API/v1/attest/claims/CLM-SANDBOX-PARTIAL/escalate \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "adjuster_id": "adj_1042", "notes": "Two web uploads with no capture record." }'
```

**Node**

```ts
const escalation = await prov.attest.claims.escalate("CLM-SANDBOX-PARTIAL", { adjusterId: "adj_1042", notes: "Two web uploads with no capture record." });
```

**Python**

```python
escalation = prov.attest.claims.escalate("CLM-SANDBOX-PARTIAL", adjuster_id="adj_1042", notes="Two web uploads with no capture record.")
```

The response, with the PDF shortened:

```json
{
  "id": "esc_01M5Q1B5H9AK6P6KZ44NCEJQ5Q",
  "object": "escalation",
  "claim_id": "CLM-SANDBOX-PARTIAL",
  "pdf_base64": "JVBERi0xLjcKJYGBgYEKCjcgMCBvYmoKPDwKL0Zp"
}
```

The PDF carries the claim details, the highest-risk asset's factors, the custody timeline and the device. Scores are advisory; the decision stays with the adjuster.

## 5. Optional: screen media that was never attested

An upload that never went through the capture SDK has no attestation. [`POST /v1/attest/media/screen`](https://provenanceauth.com/docs/api/media.md#post-v1-attest-media-screen) asks a third-party detector whether it looks AI-generated. Its score is advisory and stays separate from `risk_score`; see [synthetic-media screening](https://provenanceauth.com/docs/attest/concepts/synthetic-media-screening.md).

**curl**

```bash
curl $PROVENANCE_API/v1/attest/media/screen \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "image_base64": "/9j/4AAQSkZJRgABAQ" }'
```

**Node**

```ts
const screening = await prov.attest.media.screen({ imageBase64: "/9j/4AAQSkZJRgABAQ" });
```

**Python**

```python
screening = prov.attest.media.screen(image_base64="/9j/4AAQSkZJRgABAQ")
```

The sandbox has no detector configured, so it answers with the error your code should handle:

```json
{
  "error": {
    "type": "unavailable_error",
    "code": "detector_not_configured",
    "message": "Synthetic-media screening is not configured …",
    "doc_url": "https://provenanceauth.com/docs/errors#detector_not_configured",
    "request_id": "req_01M5Q1B5ZQNS9SJ06Y4ZMYHVTJ"
  }
}
```

## Optional: measure the portfolio

*Available on Enterprise.*

[`GET /v1/attest/analytics/summary`](https://provenanceauth.com/docs/api/analytics.md#get-v1-attest-analytics-summary) turns your claims, factors, screenings and dispositions into one view for a window of up to 366 days (default 90). `dollars_deterred` is an estimate: the claim amounts of claims an adjuster denied or escalated for fraud, with the method stated in every response.

**curl**

```bash
curl $PROVENANCE_API/v1/attest/analytics/summary \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const summary = await prov.attest.analytics.summary();
```

**Python**

```python
summary = prov.attest.analytics.summary()
```

The response, trimmed:

```json
{
  "object": "analytics_summary",
  "dollars_deterred": {
    "currency": "USD",
    "methodology": "Sum of claim_amount for claims dispositioned denied/escalated with reason suspected_fraud or signature_invalid. An ESTIMATE; claims without a recorded amount are excluded and reported as claims_missing_amount, never imputed."
  }
}
```

Pass `claim_amount` at attest to include a claim. [`GET /v1/attest/analytics/trends`](https://provenanceauth.com/docs/api/analytics.md#get-v1-attest-analytics-trends) and [`GET /v1/attest/analytics/factors`](https://provenanceauth.com/docs/api/analytics.md#get-v1-attest-analytics-factors) break the same data down by time and by factor.

## Optional: audit past claims in a batch

*Available on Enterprise.*

Submit past attestations as one job with [`POST /v1/attest/batches`](https://provenanceauth.com/docs/api/batches.md#post-v1-attest-batches), then read a report with every verdict and the fraud clusters across the batch:

**curl**

```bash
curl -s $PROVENANCE_API/v1/attest/batches \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "items": [
    { "type": "verify", "attestation_id": "att_00000000000000000000000000000001" },
    { "type": "verify", "attestation_id": "att_00000000000000000000000000000003" }
  ] }' | tee batch.json
```

**Node**

```ts
const headers = { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" };
const batch = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/batches`, {
  method: "POST",
  headers,
  body: JSON.stringify({ items: [
    { type: "verify", attestation_id: "att_00000000000000000000000000000001" },
    { type: "verify", attestation_id: "att_00000000000000000000000000000003" },
  ] }),
})).json();
```

**Python**

```python
import httpx

headers = {"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}
batch = httpx.post(f"{os.environ['PROVENANCE_API']}/v1/attest/batches", headers=headers, json={"items": [
    {"type": "verify", "attestation_id": "att_00000000000000000000000000000001"},
    {"type": "verify", "attestation_id": "att_00000000000000000000000000000003"},
]}).json()
```

```json
{
  "id": "bat_01M5Q1D5QXBTPCE0W98GKVA9XT",
  "object": "batch",
  "status": "pending",
  "progress": { "total": 2, "processed": 0, "failed": 0 },
  "created_at": "2026-10-24T13:25:36.637Z",
  "updated_at": "2026-10-24T13:25:36.637Z",
  "expires_at": "2026-10-27T13:25:36.637Z"
}
```

When it completes, read the report:

**curl**

```bash
export BATCH_ID=$(jq -r .id batch.json)
until [ "$(curl -s $PROVENANCE_API/v1/attest/batches/$BATCH_ID -H "Authorization: Bearer $PROVENANCE_KEY" | jq -r .status)" = "completed" ]; do sleep 1; done
curl $PROVENANCE_API/v1/attest/batches/$BATCH_ID/report -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const report = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/batches/${batch.id}/report`, { headers })).json();
```

**Python**

```python
report = httpx.get(f"{os.environ['PROVENANCE_API']}/v1/attest/batches/{batch['id']}/report", headers=headers).json()
```

The response, trimmed to the summary and clusters:

```json
{
  "object": "batch_report",
  "status": "completed",
  "report": {
    "summary": { "total": 2, "processed": 2, "failed": 0, "by_status": { "verified": 1, "failed": 1 }, "fraud_clusters": 1 },
    "clusters": [
      {
        "attestation_ids": ["att_00000000000000000000000000000001", "att_00000000000000000000000000000003"],
        "link_types": ["shared_device"],
        "strength": "strong"
      }
    ]
  }
}
```

One failing item never fails the job, and the report carries a signed manifest you can verify offline.

## Get notified instead of polling

Subscribe a [webhook](https://provenanceauth.com/docs/integrate/webhooks.md) to the Attest events, listed on the webhooks page, and Provenance sends each change as it happens. To write the verdict into Guidewire or Duck Creek, see [claim-system connectors](https://provenanceauth.com/docs/attest/guides/connectors.md).

## Errors you might see

| Symptom | Cause | Fix |
| --- | --- | --- |
| `404` [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing) | The claim belongs to another carrier, or doesn't exist | Claims are scoped to your carrier key. |
| `503` [`detector_not_configured`](https://provenanceauth.com/docs/platform/errors.md#detector_not_configured) | Screening has no detector configured | Treat the upload as unscreened; the claim still has its risk score. |
| `402` [`usage_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#usage_limit_reached) on screening | The screening budget is used up | Retry after it resets. |
| `402` [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required) | Analytics and batches are Enterprise | See [plans and usage](https://provenanceauth.com/docs/account/plans-and-usage.md). |

## See also

- [Cases and appeals](https://provenanceauth.com/docs/attest/guides/cases-and-appeals.md)
- [Risk scoring](https://provenanceauth.com/docs/attest/concepts/risk-scoring.md)
- [Attest API reference](https://provenanceauth.com/docs/api/claims.md)
