View as Markdown

Mandate · Overview

Mandate

Mandate is for teams that build AI agents. It binds a person's approval to the exact action an AI agent is about to run, and check that action before it executes.

When to use it

  • Let an agent pay an invoice only after a person approves that payee and amount.
  • Ask for a passkey approval when an action matches a policy rule, such as a large transfer or a new counterparty.
  • Give an agent standing authority with a budget, named counterparties and an end date, and revoke it in one call.

How it works

  1. Before it acts, the agent asks Provenance to authorize the action, with a description and the exact payload it will run.
  2. Provenance applies your account policy, collects a person's approval when a rule asks for one, and signs an intent token over the hashes of both.
  3. Your executor verifies the token against the payload it is about to run, and runs it only when valid is true.
  1. Your agent's request
    action_description + action_payload
  2. Provenance
    policy, approval, signing
  3. Signed intent token
    ES256, verifiable offline

Key objects

ObjectWhat it isWhere you get it
Intent tokenAn ES256 JWT that binds a session and device to the hashes of one action's description and payloadPOST /v1/mandate/intents
Mandate assessmentThe check your executor runs: valid, plus a reason when it failsPOST /v1/mandate/assessments
PolicyYour account's versioned rules for what needs approval, what is denied and what is allowedPUT /v1/mandate/policies
Approval requestA pending step-up approval for one action, decided by a person with a passkeyGET /v1/mandate/approvals
GrantStanding, bounded authority a person grants an agentPOST /v1/mandate/grants
DecisionAn append-only, hash-chained record of each authorize and verify, with a signed receiptGET /v1/mandate/assessments

Core endpoints

EndpointUse it to
POST /v1/mandate/intentsGet a signed intent token for one action.
POST /v1/mandate/assessmentsCheck a token against the payload you are about to run.
POST /v1/mandate/revocationsRevoke a token, an agent session or a device.
PUT /v1/mandate/policiesSet your account policy as a new version.
POST /v1/mandate/approvals/{id}/respondApprove or deny a pending step-up approval.
POST /v1/mandate/grantsGrant an agent standing authority with limits.

Your first call

Authorize a payment for an agent. The sandbox key needs no signup.

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

curl $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_overview_1",
    "device_id": "dev_00000000000000000000000000000001"
  }'
{
  "object": "intent_authorization",
  "intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwMjA2ZDM5ZDg0ZDFiNWUifQ.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsInN1YiI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMSJ9.W1acW0VXrjqhXCb-K5fkIt5pabtd1EwCKMGOv31DYO_EXCg3Sm-UZFM062-eR6TP6ThI8odLyYU21hqUWGaBOA",
  "expires_at": "2026-10-24T04:59:06.000Z",
  "attestation_id": "00d053fb-e2f6-4cb3-8302-7ee1573a7954",
  "biometric_bound": false
}

The quickstart gates a tool call behind a rule and a person's approval, and execution binding carries this token through verify, a changed payload and revocation.

Next steps