Mandate · API reference
Intent tokens
Authorizing an agent's action, verifying it before it runs, and revoking it.
Related guide: Verify a token
The intent authorization object
Attributes
intent_tokenstring- Compact JWS, signed with ES256 (header alg=ES256, kid); payload carries
iss,jti(= attestation_id),sub,session,action_hash, andpayload_hashwhen a payload is bound.subis an opaque subject, never the device id: with anaudienceit is pairwise (psub_+ 26 characters, the same for one device at that audience and unrelated at every other); without one it is per token (anon_+ 26 characters). Tokens minted before pairwise subjects carry the device's UUID until they expire. Verify it against the JWKS (offline: authenticity + expiry only) or via POST /v1/mandate/assessments (full check incl. binding + revocation). expires_attimestamp- When it expires.
attestation_idstring- Also the token
jti. biometric_boundboolean- Whether a passkey check was verified at authorize (on a step-up, by the approval).
objectenum- The type of object. One of
intent_authorization. statusenum- Checkout step-up only (absent otherwise), and
approval_pendingwithoptions.approvedcarries the token; every other status carries none. One ofapproved,approval_pending,approval_denied,approval_expired,approval_muted,approval_too_weak. reasonstring- Checkout step-up only, when there is no token. A code from the reason registry.
approval_idstring- Checkout step-up only, while pending or once decided.
approval_link_tokenstring- Sandbox only (the dev link echo). The single-use approval link token, so a test can finish the loop.
option_group_idstring- With
options: the group every option's token carries. approval_expires_attimestamp- With
options: when the person's approval of the group expires. optionsarray of objects- With
options: one token per option. Verify only the chosen option's token; the others answeroption_not_chosen.Show child attributes
indexinteger- The option's position, from 0.
labelstring- The label on the option's card.
intent_tokenstring- This option's intent token (its own
jtiandaction_hash). attestation_idstring- Also this token's
jti. disabledboolean- True when the account's policy denies this option outright (shown disabled).
disabled_reasonstring- The policy reason.
approvalobject- Checkout step-up only, on
approved. The same object as the token'sapprovalclaim.methodisdevice_biometric(the person's enrolled device) orpasskey(an approver-network passkey), and is absent when no passkey check was made.Show child attributes
idstring- The approval's ID.
approved_attimestamp- When the person approved.
methodenum- How the person approved. One of
device_biometric,passkey.
reusedobject- Present only when no one was asked because this order or action was already answered: by the agent's own token (
intent_token), or by an earlier approval of the same binding that the agent (agent,routedwhen it went to an outside approver), a store (store) or a network order (network) asked for. You learn only what your own token carries; never the other party's account, approval ID, contact or deny reason. See ask once.Show child attributes
sourceenumRequired- Who asked first. One of
intent_token,agent,store,network,routed.
confirmed_viaobject- Present only when the person confirmed outside Provenance (
decided_viais thenexternal).Show child attributes
kindenumRequired- The kind of confirmation. One of
ap2_user_mandate,spc,platform. issuerstring- Whose word it is: the AP2 issuer or platform named in your policy, or your store's origin for a passkey your store registered. Absent for a passkey set up with Provenance.
evidence_hashstringRequired- The SHA-256 of the evidence (the evidence itself isn't kept).
decided_viaenum- Checkout step-up only, with
confirmed_via. One ofexternal. external_confirmationobject- Present only when an outside confirmation was refused; the request asks the person as usual.
Show child attributes
resultenumRequired- Always
refused. One ofrefused. kindenumRequired- The kind sent. One of
ap2_user_mandate,spc,platform. reasonenumRequired- Why it was refused (see the reason codes). One of
issuer_not_trusted,issuer_unreachable,signature_invalid,binding_mismatch,kind_not_accepted,expired.
The intent authorization object
{
"object": "intent_authorization",
"intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImY3NjVhOTlhZDA1NDNkOTkifQ.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsImp0aSI6ImNjZWFiYzYwLTkwNmItNGVmOS05YWRlLTJlYmNkNDE1OTJkNyIsInN1YiI6ImFub25fd2prbmprend0ZnBicXNudTU1bjJ6ZjRkYWQiLCJpYXQiOjE3OTQwNzkzMDYsImV4cCI6MTc5NDA5MzcwNiwiYWN0aW9uX2hhc2giOiI3NDBhNGI0MWFjMWZkYzU1MzJlZDBjNzA0Mzk0NTczZTkzMDM1NDJmYTU5ZmUzYWNiMWM3M2IzZGNiNjNlMmQxIiwicGF5bG9hZF9oYXNoIjoiZGYyYThhMzMzOWExYjdhZGM1ZWMxMTAyN2U5MWFmMDcxNmZhZWFlYWFhMmY4ZTk4Mjc2YmVhMDJlNGRmZGE0NiIsInJpc2siOnsic2NvcmUiOjMwLCJhY3Rpb24iOiJhbGxvdyJ9fQ.b_tKtL0e3CHLYGkOS0y59da2Gv0MqgpbjdNdCGeAkg-IcdHyh99w-PGeL6I3j42a6NeDuEYAZ6kwsADG-pMgjA",
"expires_at": "2026-11-07T23:21:46.000Z",
"attestation_id": "cceabc60-906b-4ef9-9ade-2ebcd41592d7",
"biometric_bound": false
}Events
Sent to your webhook endpoints when they subscribe:
mandate.assessment.deniedmandate.intent.revoked
Create an intent token
POST/v1/mandate/intents
Mints an ES256 intent token that binds an agent session and device to the SHA-256 of an action's description and, when sent, its exact payload. Until the person your rules ask approves, it's held.
With approval, it answers a store's checkout challenge (step-up).
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
DPoPstringheader- A DPoP proof (RFC 9449) from the grant's holder key, when the grant is holder-bound (
holder_jkt): an ES256dpop+jwtnaming this request (htm,htu),iatwithin 60 seconds, a freshjti, andath, the SHA-256 of the grant token sent. One per request. See bind a grant to its holder. action_descriptionstring- The human-readable action, exactly as authorized. Required unless you send
options. action_payloadany- Opaque; its canonical-JSON SHA-256 is bound into the token.
optionsarray of objects- "Choose one": 2 to 5 complete actions instead of
action_description. Each is hashed and gets its own token (a distinctjtiandaction_hash, all carryingoption_group_id); one approval holds the group and opens now. The person approves exactly one; verify on the others answersoption_not_chosen. The account's policy runs on each option, and one it denies outright is shown disabled. Can't be combined withaction_description,action_payload,approval,mandate_tokenordisplay_summary.Show child attributes
labelstringRequired- The option's card label ("United 9:40 am"); unique in the request.
actionstringRequired- The option's action description, hashed into its token.
payloadany- The option's exact payload (opaque), hashed into its token.
action_payloadis accepted too. contextobject- Policy facts and card facts for this option (
transaction_amount,currency,payee,date, …), up to 20.
revisesstring- The approval this request revises: one that ended
changes_requested. The token carries it (revisesclaim), and the new approval shows the person what changed. run_idstring- An agent-team run to join. The token carries
run, and the session stops when the run is halted. Defaults to the mandate's run. agent_session_idstringRequired- The agent session the token was minted for.
device_idstringRequired- The capture or approving device's ID.
agent_idstring- The registered agent that asks. The token's
agentclaim carries{ id, name, integration, sdk_version }: the agent's id and name, plus the integration the client declares in itsUser-Agent(mcp,ai_sdk,langchain,langchain_py,claude_agent_sdk,claude_agent_sdk_py,openai_agents,openai_agents_py,adk_py,crewai_pyornone), signed as reported. A merchant reads it at checkout. mandate_tokenstring- Authorize UNDER a delegation mandate. The mandate is validated here (signature, status, expiry, device/session binding — invalid ⇒ 400 grant_invalid) and its
grant_idis bound into the resulting token so verify enforces its constraints and budget. A holder-bound grant (holder_jkt) also needs its holder's DPoP proof in theDPoPheader (401dpop_proof_required,dpop_proof_invalid,dpop_proof_replayedorholder_mismatch). counter_offer_idstring- the accepted counter-offer this action buys. Needs
mandate_token(the counter-offer's grant). When the accepted option gave anaction_hash, the action's payload hash must equal it; the amount and counterparty are checked at verify, where the acceptance is spent (one purchase each). A mismatch is 409counter_offer_terms_changedand no token is minted. The token carries no new claim: the id stays on the token's server-side record. context_evidenceobject- The agent's justification for the action (a JSON blob of scalars/strings, ≤ ~8KB). Canonicalized + hashed into the token (context_hash), sealed onto the ledger + receipts, and shown to the human in the "Why the agent is asking" panel. It is the agent's STATED reason — a claim, not a verified fact. verify may re-supply it to re-check (context_hash_mismatch on mutation). Free.
trace_idstring- Bind a Trace (a traced inference from /v1/trace/chat/completions, or a sidecar reading, this account) into the token as
trace: {id, canary_hash}, sofact:"canary"policy conditions read its canary readings at verify. Another account's trace → 404 resource_missing. approvalobject- A merchant-requested checkout step-up, taken from the store's
ProvenanceIntentchallenge (approval_request); pass the challenge'sbindingasaction_payload. The first call opens an approval bound to that exact order and answersapproval_pending; relay it to the person (themandate.approval.createdwebhook and the approval embed, or an approver link). The same call after the approval returns the token. A declined, expired or muted step-up answers 200 with thatreasonand no token. No delivery path → 503stepup_delivery_not_configured; over the per-person, per-store or per-account limits → 429rate_limit_exceeded, with no notification. No field identifies the person;ships_tois coarse order data the store holds.Show child attributes
merchant_originstringRequired- The origin of the URL your agent called (
https://shop.example). It must equal the binding'sorigin. displayobjectRequired- What the person sees that the order can't bind. Optional
total,currencyanditemsmust repeat the binding exactly.Show child attributes
merchant_namestringRequired- The store's own name, shown as "calls itself …" (sanitized, at most 80 characters).
ships_toobject- City, region and country only.
Show child attributes
citystring- The city.
regionstring- The region or state.
countrystring- The country.
totalinteger- The bound total in minor units.
currencystring- The bound ISO 4217 currency.
itemsarray of objects- The bound quantities per SKU.
Show child attributes
skustring- The SKU.
quantityinteger- The quantity.
expires_attimestampRequired- The challenge's expiry. The approval lasts until this or 10 minutes, whichever comes first.
require_biometricboolean- Ask for face, fingerprint or passkey on the person's enrolled device. No enrolled credential →
approval_too_weak. min_tierenum- The store's minimum device tier. A passkey (routed) approval can't meet it →
approval_too_weak. One oftee,strongbox,sep. transportenum- How the store asked (default
checkout). Withacp,action_payloadis the ACP binding. Withrequest, it is an Identify request binding (kind: "request", origin, action, method, path),displayholds onlymerchant_name, and the person approves with a biometric or passkey. One ofcheckout,acp,request. routeobject- Route the approval to an approver-network link instead of the in-house device.
Show child attributes
approver_link_idstring- An active approver link of this account.
external_confirmationobject- A confirmation the person gave outside Provenance, accepted only when your policy's
external_confirmations.acceptlists its kind and it verifies for this exact cart. Screenshots, chat transcripts and an agent saying the person confirmed are never a kind. Every plan. See ask once.Show child attributes
kindenumRequiredap2_user_mandate: a closed AP2 0.2 mandate SD-JWT;spc: a Secure Payment Confirmation;platform: a listed agent platform's signed confirmation. One ofap2_user_mandate,spc,platform.evidencestring | objectRequired- The SD-JWT presentation (
ap2_user_mandate) or compact JWS (platform) as a string, or the SPC assertion as an object.Show child attributes
credential_idstring- The passkey's credential ID.
assertionobject- The assertion, base64url fields.
Show child attributes
authenticator_datastringRequired- base64url authenticator data.
client_data_jsonstringRequired- base64url clientDataJSON (
type: payment.get). signaturestringRequired- base64url signature.
public_keystring | object- A passkey your store registered itself: its public key (PEM or JWK). The confirmation is then labelled as your store's credential.
audiencestring- The one site this token is for (its
audclaim): an http(s) origin (normalized, e.g. https://shop.example) or a merchant id. A site running Identify refuses a token minted for another audience. Present only when you send it. With an audience the token'ssubis pairwise (psub_…): stable for this device at this audience, so Identify can give the person one pseudonym there. Without one,subis per token (anon_…).
Returns
The signed intent token. See the intent authorization object.
Errors
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -X POST "$PROVENANCE_API/v1/mandate/intents" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_1",
"device_id": "dev_00000000000000000000000000000001"
}'const data = 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: $1,850.00 to Brindlecote Supplies",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_1",
"device_id": "dev_00000000000000000000000000000001"
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
"action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_1",
"device_id": "dev_00000000000000000000000000000001"
}).json()Response 200
{
"object": "intent_authorization",
"intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImY3NjVhOTlhZDA1NDNkOTkifQ.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsImp0aSI6ImNjZWFiYzYwLTkwNmItNGVmOS05YWRlLTJlYmNkNDE1OTJkNyIsInN1YiI6ImFub25fd2prbmprend0ZnBicXNudTU1bjJ6ZjRkYWQiLCJpYXQiOjE3OTQwNzkzMDYsImV4cCI6MTc5NDA5MzcwNiwiYWN0aW9uX2hhc2giOiI3NDBhNGI0MWFjMWZkYzU1MzJlZDBjNzA0Mzk0NTczZTkzMDM1NDJmYTU5ZmUzYWNiMWM3M2IzZGNiNjNlMmQxIiwicGF5bG9hZF9oYXNoIjoiZGYyYThhMzMzOWExYjdhZGM1ZWMxMTAyN2U5MWFmMDcxNmZhZWFlYWFhMmY4ZTk4Mjc2YmVhMDJlNGRmZGE0NiIsInJpc2siOnsic2NvcmUiOjMwLCJhY3Rpb24iOiJhbGxvdyJ9fQ.b_tKtL0e3CHLYGkOS0y59da2Gv0MqgpbjdNdCGeAkg-IcdHyh99w-PGeL6I3j42a6NeDuEYAZ6kwsADG-pMgjA",
"expires_at": "2026-11-07T23:21:46.000Z",
"attestation_id": "cceabc60-906b-4ef9-9ade-2ebcd41592d7",
"biometric_bound": false
}Create a biometric challenge
POST/v1/mandate/biometric_challenges
Returns a single-use WebAuthn challenge. Sign it with a passkey on the person's device and send the assertion to authorize, so the token is biometric-bound.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
Returns
A single-use passkey challenge and when it expires.
Errors
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -X POST "$PROVENANCE_API/v1/mandate/biometric_challenges" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/biometric_challenges`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/biometric_challenges", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()Response 200
{
"object": "biometric_challenge",
"challenge": "yH75vl053p170MkEhCHCufUjr_ghFSYaNkAJ5yx3Xd4",
"expires_at": "2026-11-07T19:26:46.217Z"
}Revoke tokens
POST/v1/mandate/revocations
Revokes one token, every token of an agent session, or every token from a device. Send exactly one of intent_token, jti, agent_session_id or device_id. The next verify fails with token_revoked.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
intent_tokenstring- The intent token from authorize.
jtistring- The intent token's ID.
agent_session_idstring- The agent session the token was minted for.
device_idstring- The capture or approving device's ID.
reasonstring- The reason given or recorded.
Returns
The existing revocation, when it was already revoked.
Errors
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_description": "Pay invoice INV-2041",
"agent_session_id": "sess_reference_revoke",
"device_id": "dev_00000000000000000000000000000001"
}' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -X POST "$PROVENANCE_API/v1/mandate/revocations" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"intent_token\": \"$INTENT_TOKEN\",
\"reason\": \"cancelled by the requester\"
}"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",
"agent_session_id": "sess_reference_revoke",
"device_id": "dev_00000000000000000000000000000001"
}),
})).json();
const intentToken = step1.intent_token;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/revocations`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"intent_token": intentToken,
"reason": "cancelled by the requester"
}),
})).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",
"agent_session_id": "sess_reference_revoke",
"device_id": "dev_00000000000000000000000000000001"
}).json()
intent_token = step1["intent_token"]
data = httpx.post(f"{api}/v1/mandate/revocations", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
"intent_token": intent_token,
"reason": "cancelled by the requester"
}).json()Response 200
{
"id": "rev_01M5R0BZRVKPFE34W4ZHJKAP2B",
"object": "revocation",
"scope": "token",
"value": "8a123986-8f02-4786-b682-a27cec1ef629",
"revoked": true,
"reason": "cancelled by the requester",
"created_at": "2026-10-24T22:26:43.611Z"
}Check a token's revocation status
GET/v1/mandate/intents/{id}
Returns whether a token is revoked, with the scope and reason. Use it after verifying a token offline, which can't see revocations.
Parameters
idstringpathRequired- The intent token's ID.
Returns
Whether the token is revoked.
Errors
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_description": "Pay invoice INV-2041",
"agent_session_id": "sess_reference_status",
"device_id": "dev_00000000000000000000000000000001"
}' > step.json
export JTI=$(jq -r '.attestation_id' step.json)
curl "$PROVENANCE_API/v1/mandate/intents/$JTI" \
-H "Authorization: Bearer $PROVENANCE_KEY"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",
"agent_session_id": "sess_reference_status",
"device_id": "dev_00000000000000000000000000000001"
}),
})).json();
const jti = step1.attestation_id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents/${jti}`, {
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).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",
"agent_session_id": "sess_reference_status",
"device_id": "dev_00000000000000000000000000000001"
}).json()
jti = step1["attestation_id"]
data = httpx.get(f"{api}/v1/mandate/intents/{jti}", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()Response 200
{
"object": "intent_status",
"jti": "1594137a-73d7-470b-ac2c-e8de0db56803",
"revoked": false,
"revoked_scope": null,
"reason": null,
"checked_at": "2026-11-07T19:21:46.216Z"
}Assess an agent action
POST/v1/mandate/assessments
Checks a token's signature and expiry, that the description and payload match what was authorized, revocation, and your account's policy. A refused action returns 200 with valid false and a reason. An action past a grant's limit that asks a person returns approval_pending (delegation_over_limit); see subagents' limits.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
intent_tokenstringRequired- The intent token from authorize.
action_descriptionstringRequired- The human-readable action, exactly as authorized.
action_payloadany- Must match what was authorized when the token carries payload_hash.
displayobject- Display only, for the approval page when this check asks a person:
kindnames what is asked about, so the page reads "Scout is asking you to approve a stay." Kept in the approval'sdisplay; never a token claim or a rule fact. Left out, the page says a payment.Show child attributes
kindenum- What the person is asked to approve. One of
stay,flight,order,payment,booking.
approverobject- Display only: the name of the person you expect to answer ("Maya Chen"), kept with the approval this check opens. A run waiting on it reads
waiting_on: "Maya Chen". Shown only to your account, never on the approval page; never a token claim or a rule fact.Show child attributes
namestring- One line of 1 to 100 characters.
requestobject- The agent's request as your tool or service received it. Its signature is checked before the token and returned as
signature: Web Bot Auth through itsSignature-Agentdirectory, or an HTTP message signature with noSignature-Agentagainst a key the agent registered with Provenance. A signature that doesn't verify makes the resultvalid: falsewithagent_signature_invalid(oragent_signature_unverifiedwhen its directory can't be checked). Read, never stored.Show child attributes
methodstringRequired- The HTTP method.
urlstringRequired- The full URL the agent called.
headersobjectRequired- The request headers as sent, including
Signature,Signature-InputandContent-Digest. bodystring- The request body as sent, at most 64 KB. Checked against
Content-Digestwhen the signature covers it.
contextobject- Facts for your policy. One list is allowed:
alternatives, up to 10 payees the person can pick from in "Ask for a change". It is shown on the approval and is never a policy fact. Under a grant,counterparty,currency,mcc(the merchant's declared MCC, four digits),merchant_country(alpha-2 or ISO 3166-1 numeric),service_startandservice_end(the dates of what is bought: a date or a date-time with an offset) are checked against the grant's lists and service window and every grant above it. approver_link_idsarray of strings- Group sign-off: when a step-up rule fires, route the approval to these approver links (yours, accepted) instead of one. Each approver gets their own link and approves with their own passkey; each decision is its own ledger row. Pro and up. Not with
approver_link_id. approvals_neededinteger- With
approver_link_ids: how many must approve, 1 to the group's size (default: all). deny_ruleenum- With
approver_link_ids:any(default) ends the request at the first deny;unreachableends it once too few approvers are left to reachapprovals_needed. One ofany,unreachable. account_approversboolean- With
approver_link_ids: your own people count towardapprovals_neededtoo (they decide in the console or the approval embed). trace_idstring- The traced inference whose canary readings the policy's
fact: canaryconditions read. It takes precedence over the token's own trace. A stale or missing reading, or another account's, counts as unavailable. policy_versioninteger- Sandbox only. Decide with this version of your agent rules (a draft, typically) instead of the live one. A draft saved in a draft group needs that
draft_group. In live,400 parameter_invalid; a version that doesn't exist,404. draft_groupstring- Sandbox only, with
policy_version: the draft group the draft was saved in (the rules embed session'srules.draft_group). Another group's draft is400 parameter_invalid. explainenum- Explain tripped canary families (default), or also those at 0.8 of their threshold or more. One of
tripped,near. inference_inputobject- Or re-read the canaries NOW over this prompt (metered
trace_canary_read, after the plan allowance). ≤ 32 KB.Show child attributes
modelstring- The model to run, as a registry model ID or its short name.
messagesarray of objects- The chat messages, in order.
approval_expires_ininteger- The expiry of an approval this call opens, in seconds: 60 to 7 days, and never past the intent token's expiry. Defaults to the account default, then the server's.
link_expires_ininteger- How long each single-use link to the approver works, in seconds: at least 60, capped at the approval. Defaults to the whole approval window; a resend issues a new link for the same time.
remindersobject- For a routed approval: its automatic reminders (the
approvalschedule's shape). Left out, your account's schedule.Show child attributes
enabledbooleantruetracks this request on the schedule (Pro and above on a live deployment:402 plan_requiredonreminders.enabledbelow Pro, nothing created; every plan in the sandbox);falsesends it no automatic reminder (one by hand or by API is still allowed).afterarray of strings- Up to three offsets from the request's creation (
10m,24h,3d), increasing, each at least the minimum gap after the one before, at most 7 days. Errors use the Settings messages onreminders.after.
channelsobject- For a routed approval: which messages may go (
app_notification,email,text). They narrow the approver's own order (their Provenance app, then their channels, then a text when they have a phone, then email), and one message goes. Left out, your account's default. deliveryenumsend, orself: send nothing; the response carriesapprove_urlfor you to show in your own app. The approver still approves with their own passkey.selfneeds an approver link. Left out, your account's default. One ofsend,self.approver_link_idstring- When a step-up rule fires, route the approval to this approver link (someone outside your account) instead of your own team. The link must be yours and accepted. The approver is texted a single-use link and approves with their passkey; the same verify call then returns
valid. The link's ceiling and the approver's own limits apply (approver_ceiling_exceeded). An approval that already exists for this token and action keeps its routing.
Returns
The verification result. valid says whether the action may run; when it's false, reason says why. Canary, step-up and mandate outcomes add their own fields.
Errors
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_1",
"device_id": "dev_00000000000000000000000000000001"
}' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -X POST "$PROVENANCE_API/v1/mandate/assessments" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"intent_token\": \"$INTENT_TOKEN\",
\"action_description\": \"Pay invoice INV-2041: \$1,850.00 to Brindlecote Supplies\",
\"action_payload\": {
\"type\": \"payment\",
\"amount\": 1850,
\"currency\": \"USD\",
\"payee\": \"acct_brindlecote_supplies\"
},
\"display\": {
\"kind\": \"payment\"
}
}"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: $1,850.00 to Brindlecote Supplies",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_1",
"device_id": "dev_00000000000000000000000000000001"
}),
})).json();
const intentToken = step1.intent_token;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/assessments`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"intent_token": intentToken,
"action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"display": {
"kind": "payment"
}
}),
})).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: $1,850.00 to Brindlecote Supplies",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"agent_session_id": "sess_reference_1",
"device_id": "dev_00000000000000000000000000000001"
}).json()
intent_token = step1["intent_token"]
data = httpx.post(f"{api}/v1/mandate/assessments", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
"intent_token": intent_token,
"action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
"action_payload": {
"type": "payment",
"amount": 1850,
"currency": "USD",
"payee": "acct_brindlecote_supplies"
},
"display": {
"kind": "payment"
}
}).json()Response 200
{
"object": "mandate_assessment",
"id": null,
"approval_context": null,
"valid": true,
"hardware_attested": false,
"scope_match": true,
"payload_bound": true,
"intent_token_age_seconds": 0,
"policy": null,
"signature": {
"method": "none",
"valid": null,
"key_id": null,
"directory": null,
"agent_id": null,
"covers": []
},
"authority": {
"kind": "provenance_intent_token",
"verified": true,
"verified_against": "provenance_jwks",
"alg": "ES256",
"key_id": "a425023cd9d6b3c4",
"issuer": "provenance-authorize",
"mandate_id": null,
"approval_context_id": null,
"cart_match": "not_applicable"
}
}