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 of verification_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 valid is false: invalid_token, token_expired, issuer_mismatch, binding_mismatch, token_revoked, status_unavailable, a holder-bound grant's dpop_proof_required, dpop_proof_invalid, dpop_proof_replayed or holder_mismatch, or an approval hold: approval_pending (the person hasn't answered yet), approval_denied, approval_expired, approval_changes_requested or option_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, risk and the other free claims).
bindingenumRequired
Whether the token binds what you passed in expected. One of match, mismatch, not_checked.
revokedboolean | nullRequired
Null when revocation couldn't be checked (then valid is false with status_unavailable).
confirmedobject | nullRequired
When and how a person's yes stands now: the token's own confirmed claim, 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 whenever valid is 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. binding reports match or mismatch.
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), currency and merchant_id, compared with the token's order.
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): the DPoP header they sent and the request it came on. Without it a bound grant answers dpop_proof_required.
Show child attributes
dpopstringRequired
The DPoP proof (RFC 9449) from the request's DPoP header.
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\"
      }
    }
  }"

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"
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.