# Verify a proof

Check an intent token, a receipt, an attested photo or a trace manifest on the console's Verify a proof page, or with the free verify endpoint when you don't have a console account.

Members of a Provenance account check a proof on **Developers → Verify a proof** in the console: an intent token, a receipt, an attested photo or a trace manifest. The check runs in the browser, so a photo never leaves the device.

Anyone else, such as a counterparty who received a receipt from you, uses the free [`POST /v1/verify`](https://provenanceauth.com/docs/api/verify.md#post-v1-verify) or an SDK's offline verifier. Neither needs an API key.

**Before you begin:** export the full-access sandbox key to mint a token to check.

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

| Tab | Checks in the browser | Still needs the API |
| --- | --- | --- |
| Intent token | The signature against the published keys, the expiry, and revocation through the keyless status check. A decision or agreement receipt checks the same way. Paste the action text, and the payload, to check they're the ones the token was issued for | The full decision with your policy: [`POST /v1/mandate/assessments`](https://provenanceauth.com/docs/api/intent-tokens.md#post-v1-mandate-assessments) |
| Attested photo | The attestation bundle in the photo's metadata and its signature against the device certificate | The certificate chain, device status and risk score: [`POST /v1/attest/verifications`](https://provenanceauth.com/docs/api/claims.md#post-v1-attest-verifications) |
| Trace manifest | The manifest's signature and the hash of its graph | The full trace: [`GET /v1/trace/traces/{id}`](https://provenanceauth.com/docs/api/attribution-traces.md#get-v1-trace-traces-id) |

Every role except approvers sees the page; it only reads.

## 1. Get a token to check

**curl**

```bash
curl -s $PROVENANCE_API/v1/mandate/intents \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_description": "Pay invoice INV-2041: $450.00 to Brindlecote Supplies",
    "agent_session_id": "sess_verify_page_1",
    "device_id": "dev_00000000000000000000000000000001"
  }' | tee authorization.json
```

**Node**

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

const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const { intentToken } = await prov.mandate.intents.create({
  actionDescription: "Pay invoice INV-2041: $450.00 to Brindlecote Supplies",
  agentSessionId: "sess_verify_page_1",
  deviceId: "dev_00000000000000000000000000000001",
});
```

**Python**

```python
import os
from provenanceauth import Provenance

prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
intent_token = prov.mandate.intents.create(
    action_description="Pay invoice INV-2041: $450.00 to Brindlecote Supplies",
    agent_session_id="sess_verify_page_1",
    device_id="dev_00000000000000000000000000000001",
)["intent_token"]
```

```json
{
  "object": "intent_authorization",
  "intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSJ9.mnIslW_8ZGoSLdXzXXOBtTAEpAQ1Ht05ruMPMJAwMdPnFwyggE1iabNZHTC4_9yYhhPu62ijzHhPqhyZ09wfdw",
  "expires_at": "2026-10-24T19:44:02.000Z",
  "biometric_bound": false
}
```

## 2. Paste it into the console

In the console, open **Developers → Verify a proof**, stay on **Intent token** and paste the token. The page fetches the published keys, checks the signature and expiry, asks the keyless status check whether the token was revoked, and shows the token's claims. A [decision receipt](https://provenanceauth.com/docs/mandate/concepts/decision-ledger.md) or an [agreement receipt](https://provenanceauth.com/docs/mandate/guides/agreements.md) checks the same way.

A token carries the action's hash, not its text. To confirm what was authorized, paste the action text you were shown into **Check the action text**: the page hashes it in your browser the way the token was made (SHA-256 of the exact text) and says **Match** or **Doesn't match**. Every character counts, spaces included. When the token binds a payload, paste its JSON too; key order and spacing don't matter. Nothing you paste is sent anywhere.

## 3. Check a photo or a trace manifest

On **Attested photo**, drop an attested JPEG. The page reads the file in the browser, extracts its attestation bundle and checks the signature; the file isn't uploaded. On **Trace manifest**, paste a [trace manifest](https://provenanceauth.com/docs/trace/concepts/trace-manifest.md) to check its signature and graph hash.

## 4. Link to a result

`/developers/verify?token=<intent token>` or `/developers/verify?receipt=<receipt>` on the console opens the page with the proof filled in and checked; someone who isn't signed in signs in first and lands back on the result. A receipt's `verify_url` is this link. The old site address, `/verify`, redirects here with its query kept.

## 5. Check without a console account

Send people outside your account to the API; the verification badge and the embedded components' **Verify independently** link open this guide for them. The free [`POST /v1/verify`](https://provenanceauth.com/docs/api/verify.md#post-v1-verify) takes a token or a receipt, needs no key, and answers with the signature result, the revocation status and the free claims:

**curl**

```bash
export INTENT_TOKEN=$(jq -r '.intent_token' authorization.json)
curl -s -X POST $PROVENANCE_API/v1/verify \
  -H "Content-Type: application/json" \
  -d '{ "token": "'"$INTENT_TOKEN"'" }'
```

**Node**

```ts
const free = await prov.verify({ token: intentToken });
```

**Python**

```python
free = prov.verify(token=intent_token)
```

```json
{
  "object": "verification_result",
  "valid": true,
  "kind": "intent",
  "revoked": false
}
```

To check offline, with no call to us at all, use the SDKs' verifiers, `verifyIntentTokenOffline` and `verifyAttestedImageOffline` (browser-safe), or the Python and Go verifier libraries; see [verify tokens offline](https://provenanceauth.com/docs/authorize/guides/verify-tokens.md).

## Errors you might see

| Symptom | Cause | Fix |
| --- | --- | --- |
| "Couldn't fetch the published keys" | The page can't load the published keys from the API | Check the API is reachable from the browser. |
| The token verifies but the revocation status couldn't be checked | The status check didn't answer | Retry; the signature result stands on its own. |
| "Not attested" on a photo | The photo has no attestation bundle: it was edited, screenshotted or re-saved, which strips the metadata | Check the original capture. |
| A `/developers/verify` link opens the Overview | Your role is approver, which doesn't see the page | Ask an owner or admin, or use [`POST /v1/verify`](https://provenanceauth.com/docs/api/verify.md#post-v1-verify). |

## See also

- [Verify tokens offline](https://provenanceauth.com/docs/authorize/guides/verify-tokens.md)
- [Transparency log](https://provenanceauth.com/docs/concepts/transparency-log.md)
- [Embeds](https://provenanceauth.com/docs/embeds.md), for the verification badge on your own pages
