Integrate · Guide
Verify a proof
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 / 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.
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 / |
| 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 / |
| Trace manifest | The manifest's signature and the hash of its graph | The full trace: GET / |
Every role except approvers sees the page; it only reads.
1. Get a token to check
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
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",
});
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"]
{
"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 or an agreement receipt 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 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 / takes a token or a receipt, needs no key, and answers with the signature result, the revocation status and the free claims:
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"'" }'
const free = await prov.verify({ token: intentToken });
free = prov.verify(token=intent_token)
{
"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.
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 / link opens the Overview | Your role is approver, which doesn't see the page | Ask an owner or admin, or use POST /. |
See also
- Verify tokens offline
- Transparency log
- Embeds, for the verification badge on your own pages