API reference
API reference
The Provenance API is a JSON API over HTTPS, versioned under /v1/. Each resource page shows its object, the events it sends and every endpoint, with examples you can run against the sandbox. New to the API? Choose your path and run its quickstart.
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
Conventions
Every endpoint follows the same rules. API conventions has them in full.
Authentication
Send an API key as Authorization: Bearer <key>. Each endpoint needs a scope; a few public endpoints, such as the published keys, need none. See authentication.
Environments
Sandbox keys start prv_test_ and live keys prv_live_, and the two environments never share data. The sandbox keys are published, so every example runs as written.
Errors
Every 4xx and 5xx response has one shape. Branch on error.code; each code is on error codes. A refused action or a tampered asset is a 200 with a reason, not an error.
Pagination
Lists return { object: "list", data, has_more, next_cursor }. Pass limit (1 to 100) and the next_cursor as cursor for the next page. See lists.
Idempotency
Send an Idempotency-Key header to retry a create safely: the same key and request return the stored response. See idempotent retries.
Rate limits
Limits are per minute, by endpoint group. Over the limit, the API returns 429 with Retry-After. See rate limits.
Versioning
There are no breaking changes within v1, and every response carries Provenance-Version. See versioning.
Request IDs
Every response has an X-Request-Id, also in error.request_id. Quote it when you contact support. See headers.
Resources
Identify
- Traffic policiesYour site's versioned rules for which agents and bots get through.
- Signed agentsAn agent's Web Bot Auth signing keys, its public key directory and its card.
- Traffic checksThe hosted check and the middleware's policy bundle.
- Traffic decisionsRecorded decisions, reported decisions and the traffic summary.
- Disclosure requestsAsking who stands behind a pseudonym, with the person's consent or Provenance's audited review.
- Identify settingsThe route map, origins, fail mode, retention, starter traffic policies and the response templates rules serve.
Authorize
For merchants and issuers
- VerificationsA merchant's paid check of an intent token, with how the person approved.
- AssessmentsOne call per agent checkout: approved (`frictionless`) when the cart is covered, challenged when the person needs to approve, or rejected. The assessment is your one object for the cart: it is updated once the person decides.
- Checkout approvalsA store's cart approvals, shown by the shopper's agent or sent to the store's own customer.
- Checkout setupSet up agent checkout: the setup's step state, and Muse, a test agent for your store.
- Store integrationsYour shops on hosted store platforms (Shopify first): connect a shop, and its orders run through your checkout rules; an order a rule names is held until the buyer approves.
- Checkout policiesYour store's versioned checkout rules, which decide when an assessment asks the person or rejects.
- Evidence packsA chargeback evidence pack for an approved agent order: signed, offline-verifiable, and yours to send.
- ChargebacksDisputes on your connected Stripe account, answered with your approval record: matched to one of your decisions, staged at once and submitted before the deadline, with the outcome.
- Issuer controlsFor card issuers and their programs: decide which agent purchases to approve, ask about or decline on your own rules, per program, with spending limits per card for each agent, shadow mode, simulate and backtest before anything is answered.
- UCPAsk for the shopper's approval on Universal Commerce Protocol checkouts: the approval Action, the fallback, and completions verified against your own checkout.
- DiscoveryBusiness discovery: a signed profile per verified business that tells agents it accepts Provenance, its rules and which agent sells for it, served by Provenance and optionally on the business's own domain. Lookups and search need no key.
- DealsAgent-to-agent commerce: check who you're paying, accept a seller agent's signed offer under a mandate, record the delivery and confirm it. Provenance holds the proof, never the money.
- Counter-offersCounter-offers between agents: a subagent records what it was asked to get (a brief), posts what an outside agent offered instead, and Provenance computes the differences and decides each option: accept within the grant's tolerances, ask the person who asked, or refuse.
- ExchangesThe shared exchange record: one signed, append-only log of an agent-to-agent exchange, from the brief to the close, that both parties read in their own view and verify.
- TabsTabs for small, frequent payments between agents: open once under a mandate, check each call offline against the signed revocation list, post usage statements. Provenance holds the proof, never the money.
- DisputesWhen a deal or a tab goes wrong: both sides' evidence in one place, deterministic findings, and an outcome recorded by the parties, the rail or a named arbiter. Refunds happen on the rail; Provenance holds the record.
- Call checksChecks of incoming phone calls from AI agents: the verdict on a call to your line, requests during the call, the in-call paths to proof and the signed call receipt.
Attest
- Risk policiesYour account's versioned risk thresholds, weights and required-signal rules for attestations.
- Capture policiesYour versioned capture rules, which approve, review or reject each captured shot.
- ClaimsAttesting captured photos and video, verifying them, and reading a claim's provenance.
- Capture sessionsLive video capture with a hash chain seeded by the server.
- Capture requestsBranded links that ask someone outside your account for photos, a selfie or a photo of an ID, taken live with their camera.
- MediaAdvisory checks for media that never went through the capture SDK.
- CasesThe review workflow for each claim: assignment, status and notes.
- AppealsSigned links that let a policyholder appeal without a login.
- ExportsEvidence bundles for a claim, verifiable offline.
- AnalyticsPortfolio views of your claims over time.
- BatchesRe-verifying and screening past claims in one job.
- DevicesEnrolling and revoking capture devices, with their hardware tier.
Mandate
For agent builders
- Intent tokensAuthorizing an agent's action, verifying it before it runs, and revoking it.
- DecisionsThe hash-chained ledger of every authorize and verify, with signed receipts.
- PoliciesYour account's versioned rules for what's allowed, denied or sent for approval.
- ApprovalsStep-up approval requests a person decides.
- Approval routingApprover groups a rule's `route` sends approvals to, with escalation, a wait and what happens if nobody answers.
- Approver networkPeople outside your account who approve with their own passkey.
- GrantsStanding, bounded authority a person grants an agent.
- NetworkNetwork mandates: one permission a person gives an agent, honoured at every store that accepts Provenance. Stores accept each order online.
- RunsAn orchestrator agent and its subagents, halted with one call, and the guard that watches them.
- AgentsRegistered agents, with suspension, the account-wide pause and per-agent stats.
- Takeover protectionPer-agent baselines, takeover verdicts, the owner's responses and the settings.
- Risk signalsYour own risk providers' verdicts (push, lookup or list), the facts rules read, and Test a lookup.
- AgreementsTwo parties confirming the same document with a passkey.
- CallsPhone numbers your agents call from, and calls they register before dialing with a signed call credential.
Trace
- Traced inferenceChat completions with canary readings measured inside an open-weight model.
- Attribution tracesGraphs of the neurons that drove each output token, checked by ablation and signed.
- Trace sharesPublic links to a masked, verifiable view of a trace.
- Neuron registryThe public catalogue of labeled neurons for each traced model. No key needed.
- Canary familiesConcept cards that explain what each canary family measures.
- Canary setsYour own canary families, built from registry neurons.
- Trace rulesYour versioned Trace rules, which allow, challenge, review, reject or log an agent's action and a model's output.
- Trace assessmentsEach time your Trace rules ran on an agent's action, with the facts they read and what was unavailable, and the Trace pause.
- Trace checks and locksRunning your Trace rules on a stored reading, and the agent sessions a rule locked.
- Canary tripsEach time a canary tripped, with its explanation and your feedback.
- Canary baselinesPer-agent normal ranges that relative canary rules compare against.
- ProbesLinear probes that predict a family before the model writes.
- Registry buildsPrivate neuron registries for your own models.
- Registry diffsNeuron-level comparisons between two registries, for CI.
- Prompt historyEvery prompt your account has run, its runs across model versions, activation profiles and run comparisons.
- Eval suitesNamed, versioned prompt sets you re-run against any model version or private build.
- PatternsSaved filters over a run's neurons and readings, and the curated concerning-pattern library.
- SidecarSigned readings from a trace worker you run yourself.
- Neuron disclosureLetting a verified reviewer see the masked neurons on a trace share.
Platform
- VerifyThe free check of any Provenance token or receipt, with no key.
- Policy builderThe builder's account-wide settings: the field catalog, templates, the approval expiry default, who can manage policies, outside approver seats and migrations.
- AccountYour account: keys, usage, notifications and data.
- BillingPlans, spend limits and the Stripe subscription.
- WebhooksSigned events sent to your endpoints.
- Request logsThe API requests made on your account, with redacted bodies, an errors summary and a live tail.
- EventsEvery event on your account, whether or not an endpoint subscribes, and forwarding to your machine.
- Approval contextsHow a person decided, the same on every product. Embedded in each result that names the decision, and read alone here.
- EmbedsPublishable keys, embed tokens and the endpoints behind the widgets.
- Public keysThe published keys that verify everything Provenance signs.
- Transparency logThe public, append-only log of ledger checkpoints.
- Leaked keysReports of leaked keys: GitHub secret scanning, anyone's report, and your matched reports.
- MCPProvenance as tools for MCP clients.
- MCP authorizationA person's own assistant connects over MCP: OAuth 2.1 with PKCE, dynamic registration, and the Provenance MCP server.
- CIBAStandard OAuth entry points: OAuth clients, CIBA backchannel approval (poll) and Rich Authorization Requests of type `provenance_action`.
These pages are generated from the OpenAPI document, the contract of record, and the SDKs are built to match it.