Platform · API reference
Verify
The free check of any Provenance token or receipt, with no key.
Related guide: Verify a token
The token verification result object
Attributes
objectenumRequired- Always
verification_result. One ofverification_result. validbooleanRequired- The signature, issuer, expiry, binding and revocation all check out, and no approval on the token is open or was decided against.
reasonstring | nullRequired- Why
validis false:invalid_token,token_expired,issuer_mismatch,binding_mismatch,token_revoked,status_unavailable, a holder-bound grant'sdpop_proof_required,dpop_proof_invalid,dpop_proof_replayedorholder_mismatch, or an approval hold:approval_pending(the person hasn't answered yet),approval_denied,approval_expired,approval_changes_requestedoroption_not_chosen. Null when valid. kindenumRequired- What was checked. One of
intent,grant,receipt. claimsobjectRequired- The free claims (for an intent token
iss,jti,sub,iat,exp,aud,action_hash,payload_hash,order,confirmed,agent,riskand the other free claims). bindingenumRequired- Whether the token binds what you passed in
expected. One ofmatch,mismatch,not_checked. revokedboolean | nullRequired- Null when revocation couldn't be checked (then
validis false withstatus_unavailable). confirmedobject | nullRequired- When and how a person's yes stands now: the token's own
confirmedclaim, or the time the person approved when they approved after the token was minted. Null when no person's yes stands (a rule alone allowed it), and whenevervalidis false.Show child attributes
attimestampRequired- When the person said yes.
viaenumRequired- An approval of this action, or a standing grant. One of
approval,grant.
riskobjectRequired- A coarse score and action, checked live (a revoked token is
block).Show child attributes
scoreintegerRequired- From 0 (low) to 100.
actionenumRequired- What the score suggests. One of
allow,review,block.
checked_attimestampRequired- When the check ran.
The token verification result object
{
"object": "verification_result",
"valid": true,
"reason": null,
"kind": "intent",
"claims": {
"iss": "provenance-authorize",
"jti": "3b8e288d-b794-49cf-afc5-b7e8f9a66386",
"sub": "anon_brlix2gzahsh4qyu3wgmj4urcy",
"iat": 1794105610,
"exp": 1794120010,
"action_hash": "7080546df762bf502e8d42cbdba9a55b1f4070e1661da8b2ee950bceaaa7d438",
"payload_hash": "df2a8a3339a1b7adc5ec11027e91af0716faeaeaaa2f8e98276bea02e4dfda46",
"risk": {
"score": 30,
"action": "allow"
}
},
"binding": "match",
"revoked": false,
"confirmed": null,
"risk": {
"score": 30,
"action": "allow"
},
"checked_at": "2026-11-08T02:40:10.770Z"
}Verify a token or receipt
POST/v1/verify
Free and keyless. Checks any Provenance intent token, grant token or receipt: the ES256 signature, the issuer, the expiry, the binding you expect, revocation and approval holds. Answers with the free claims only. Rate-limited per IP.
No API key needed.
Parameters
tokenstring- An intent token or grant token. Pass this or
receipt. receiptstring- A signed receipt. Pass this or
token. expectedobject- What the token should bind.
bindingreportsmatchormismatch.Show child attributes
action_payloadany- The exact payload; its canonical SHA-256 must be the token's
payload_hash. orderobject- The order's
total(minor units),currencyandmerchant_id, compared with the token'sorder.Show child attributes
totalinteger- The total in minor units.
currencystring- The ISO 4217 currency.
merchant_idstring- Your merchant ID.
audiencestring- Your origin or merchant ID, compared with the token's
aud.
presenterobject- Who presented a holder-bound grant to you (its
cnf.jkt): theDPoPheader they sent and the request it came on. Without it a bound grant answersdpop_proof_required.Show child attributes
dpopstringRequired- The DPoP proof (RFC 9449) from the request's
DPoPheader. methodstringRequired- The request's method (
POST). urlstringRequired- The request's full URL; its query is ignored.
surfaceenum- Where the check runs (counted only). One of
page,embed,checkout,api.
Returns
The result. valid is false with a reason when any check fails. See the token verification result object.
Errors
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
-H "Authorization: Bearer prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe" \
-H "Content-Type: application/json" \
-d '{
"action_description": "Pay invoice INV-2041",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_public",
"device_id": "dev_00000000000000000000000000000001"
}' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -X POST "$PROVENANCE_API/v1/verify" \
-H "Content-Type: application/json" \
-d "{
\"token\": \"$INTENT_TOKEN\",
\"expected\": {
\"action_payload\": {
\"type\": \"payment\",
\"amount\": 1850,
\"currency\": \"USD\",
\"payee\": \"acct_brindlecote_supplies\"
}
}
}"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"action_description": "Pay invoice INV-2041",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_public",
"device_id": "dev_00000000000000000000000000000001"
}),
})).json();
const intentToken = step1.intent_token;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/verify`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"token": intentToken,
"expected": {
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
}
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
"action_description": "Pay invoice INV-2041",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_public",
"device_id": "dev_00000000000000000000000000000001"
}).json()
intent_token = step1["intent_token"]
data = httpx.post(f"{api}/v1/verify", json={
"token": intent_token,
"expected": {
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
}
}
}).json()Response 200
{
"object": "verification_result",
"valid": true,
"reason": null,
"kind": "intent",
"claims": {
"iss": "provenance-authorize",
"jti": "3b8e288d-b794-49cf-afc5-b7e8f9a66386",
"sub": "anon_brlix2gzahsh4qyu3wgmj4urcy",
"iat": 1794105610,
"exp": 1794120010,
"action_hash": "7080546df762bf502e8d42cbdba9a55b1f4070e1661da8b2ee950bceaaa7d438",
"payload_hash": "df2a8a3339a1b7adc5ec11027e91af0716faeaeaaa2f8e98276bea02e4dfda46",
"risk": {
"score": 30,
"action": "allow"
}
},
"binding": "match",
"revoked": false,
"confirmed": null,
"risk": {
"score": 30,
"action": "allow"
},
"checked_at": "2026-11-08T02:40:10.770Z"
}