# Attest

Attest lets you prove a photo or video was captured by a real device at a real time and hasn't been changed since.

Attest lets you prove a photo or video was captured by a real device and hasn't been changed since.

## When to use it

- Accept claim photos from policyholders and flag the ones that were edited, re-shot or never captured live.
- Prove an inspection photo or video was taken on site, on a known device, at the stated time.
- Hand an adjuster, investigator or court a chain of custody and an evidence bundle anyone can re-check.

## How it works

1. The capture SDK hashes the photo or video on the device and signs an attestation bundle with the device's key.
2. You send the bundle to Provenance, which checks the signature, the device certificate and the media hash.
3. You get a verification result with a status, a risk score from 0 to 100, and the factors that produced it.

1. **Your capture**: signed attestation bundle
2. **Provenance**: signature, device and hash checks
3. **Verification result**: status, risk_score, risk_factors

## Key objects

| Object | What it is | Where you get it |
| --- | --- | --- |
| [Attestation bundle](https://provenanceauth.com/docs/attest/concepts/attestation-bundles.md) | The signed record a device makes at capture: the media hash, time, GPS and device certificate | The capture SDK |
| [Verification result](https://provenanceauth.com/docs/attest/concepts/verification.md) | The outcome of checking one asset: `status`, `risk_score`, `risk_factors` and its chain of custody | [`POST /v1/attest/verifications`](https://provenanceauth.com/docs/api/claims.md#post-v1-attest-verifications) |
| Claim | The attested assets submitted for one case, with an overall status and score | [`GET /v1/attest/claims/{id}/provenance`](https://provenanceauth.com/docs/api/claims.md#get-v1-attest-claims-id-provenance) |
| [Device](https://provenanceauth.com/docs/attest/concepts/device-registry.md) | An enrolled capture device and its certificate | [`POST /v1/attest/devices`](https://provenanceauth.com/docs/api/devices.md#post-v1-attest-devices) |
| [Capture session](https://provenanceauth.com/docs/attest/concepts/video-attestation.md) | A live video recording whose chunk hashes arrive as they are captured | [`POST /v1/attest/capture_sessions`](https://provenanceauth.com/docs/api/capture-sessions.md#post-v1-attest-capture-sessions) |

## Core endpoints

| Endpoint | Use it to |
| --- | --- |
| [`POST /v1/attest/attestations`](https://provenanceauth.com/docs/api/claims.md#post-v1-attest-attestations) | Submit a signed capture and get its first verification result. |
| [`POST /v1/attest/verifications`](https://provenanceauth.com/docs/api/claims.md#post-v1-attest-verifications) | Verify an asset by attestation ID, image bytes, or video plus its manifest. |
| [`GET /v1/attest/claims/{id}/provenance`](https://provenanceauth.com/docs/api/claims.md#get-v1-attest-claims-id-provenance) | Retrieve every asset of a claim with its verification result. |
| [`GET /v1/attest/claims/{id}/explanation`](https://provenanceauth.com/docs/api/claims.md#get-v1-attest-claims-id-explanation) | Get fixed, plain-language text for a claim's signals. |
| [`POST /v1/attest/claims/{id}/escalate`](https://provenanceauth.com/docs/api/claims.md#post-v1-attest-claims-id-escalate) | Escalate a claim for investigation and get an evidence PDF. |
| [`POST /v1/attest/capture_sessions`](https://provenanceauth.com/docs/api/capture-sessions.md#post-v1-attest-capture-sessions) | Open a live video session that receives chunk hashes as they are recorded. |

## Your first call

Verify a seeded photo that was edited after the device signed it. The sandbox key needs no signup.

**curl**

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

curl $PROVENANCE_API/v1/attest/verifications \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "attestation_id": "att_00000000000000000000000000000003" }'
```

**Node**

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

const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const result = await prov.attest.verifications.create({ attestationId: "att_00000000000000000000000000000003" });
console.log(result.status, result.riskScore);
```

**Python**

```python
import os
from provenanceauth import Provenance

prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
result = prov.attest.verifications.create(attestation_id="att_00000000000000000000000000000003")
print(result["status"], result["risk_score"])
```

```json
{
  "id": "att_00000000000000000000000000000003",
  "object": "verification_result",
  "claim_id": "CLM-SANDBOX-FRAUD",
  "status": "failed",
  "risk_score": 100,
  "risk_factors": [
    { "factor": "signature_invalid", "points": 70, "description": "Signature fails ECDSA verification" },
    { "factor": "sensor_hash_mismatch", "points": 50, "description": "Image bytes hash does not match bundle sensor_hash" },
    { "factor": "gps_absent", "points": 30, "description": "GPS is null or lat/lng are both 0" },
    { "factor": "biometric_absent", "points": 10, "description": "biometric_present is false" },
    { "factor": "exif_missing", "points": 5, "description": "A fresh capture has no EXIF metadata (stripped)" }
  ],
  "chain": [
    {
      "event_type": "capture",
      "timestamp": "2026-10-24T00:48:12.459Z",
      "actor": "device:dev_00000000000000000000000000000001",
      "summary": "Captured image attestation"
    },
    {
      "event_type": "escalation",
      "timestamp": "2026-10-24T00:48:12.459Z",
      "actor": "adjuster:seed",
      "summary": "Pre-escalated to SIU (seeded fraud scenario)."
    }
  ],
  "device_info": {
    "device_id": "dev_00000000000000000000000000000001",
    "enrolled": true,
    "cert_valid": true,
    "cert_expires": "2028-10-23T00:48:12.000Z"
  },
  "capture_type": "image",
  "liveness_checked": false,
  "synthetic_media_score": null,
  "synthetic_media_factors": null,
  "verified_at": "2026-10-24T01:01:26.323Z",
  "sensor_hash": "03cbcb52cf9c3fd0e9f54d96c03aeac08c36de58c0dbd147ffc1a9b1aea6d522"
}
```

## Next steps

- [Attest quickstart](https://provenanceauth.com/docs/attest/quickstart.md): Verify a clean and an edited photo in five steps.
- [Insurance claims guide](https://provenanceauth.com/docs/attest/guides/review-claims.md): Capture, attest, review and escalate claim media.
- [API reference](https://provenanceauth.com/docs/api.md#resources-attest): Every Attest endpoint, with parameters and responses.
