View as Markdown

Documentation

Documentation

Provenance is the trust layer for generative AI. Its APIs identify the agents behind every request, verify agent orders, attest photos and video, give agents rules and approvals, and trace model behavior. Everything they sign verifies offline.

Getting started

Start from the product that does your job. Each quickstart runs against the public sandbox with published keys, so you don't need an account.

Make your first call

POST /v1/verify checks any Provenance token for free, with no key. This block mints a short-lived token in the sandbox, standing in for an agent's order, then verifies it and the cart it should bind.

export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export INTENT_TOKEN=$(curl -s $PROVENANCE_API/v1/mandate/intents \
  -H "Authorization: Bearer prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe" \
  -H "Content-Type: application/json" \
  -d '{"action_description":"Buy a desk lamp: $48.00 at Brindlecote Home","action_payload":{"type":"purchase","amount":48,"currency":"USD","merchant":"brindlecote-home.example"},"agent_session_id":"sess_docs_home","device_id":"dev_00000000000000000000000000000001"}' | jq -r .intent_token)

curl -s -X POST $PROVENANCE_API/v1/verify \
  -H "Content-Type: application/json" \
  -d '{"token":"'"$INTENT_TOKEN"'","expected":{"action_payload":{"type":"purchase","amount":48,"currency":"USD","merchant":"brindlecote-home.example"}}}'

The response, trimmed:

{
  "object": "verification_result",
  "valid": true,
  "kind": "intent",
  "binding": "match",
  "revoked": false
}

binding: "match" means the cart you sent is the one the token was issued for. Change the amount and it says mismatch. Intent tokens and receipts explains what was signed, and verify a token shows the offline check and the paid one that says how the person approved.

Build with

  • API reference: every endpoint, with curl, Node and Python examples that run against the sandbox.
  • SDKs and tools: the Node and Python clients, the rails for agent payments, the CLI, and verifiers for TypeScript, Python and Go.
  • Provenance MCP: Provenance as tools for Claude, ChatGPT, Cursor and other MCP clients.
  • Webhooks, embeds and texts and reminders: the pieces every product shares.

Learn the concepts

Was this page helpful? Send us feedback

LLM? Read llms.txt.