# API reference

Every Provenance endpoint, with its parameters, return value, errors and runnable curl, Node and Python examples against the sandbox, grouped by product.

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](https://provenanceauth.com/docs/get-started/choose-your-path.md) and run its quickstart.

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

## Conventions

Every endpoint follows the same rules. [API conventions](https://provenanceauth.com/docs/api/conventions.md) has them in full.

### Authentication

Send an API key as `Authorization: Bearer <key>`. Each endpoint needs a [scope](https://provenanceauth.com/docs/get-started/authentication.md#scopes); a few public endpoints, such as the published keys, need none. See [authentication](https://provenanceauth.com/docs/get-started/authentication.md).

### Environments

Sandbox keys start `prv_test_` and live keys `prv_live_`, and the two environments never share data. The [sandbox keys](https://provenanceauth.com/docs/get-started/sandbox.md) 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](https://provenanceauth.com/docs/platform/errors.md). A refused action or a tampered asset is a `200` with a [reason](https://provenanceauth.com/docs/platform/reason-codes.md), 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](https://provenanceauth.com/docs/api/conventions.md#lists).

### Idempotency

Send an `Idempotency-Key` header to retry a create safely: the same key and request return the stored response. See [idempotent retries](https://provenanceauth.com/docs/api/conventions.md#idempotent-retries).

### Rate limits

Limits are per minute, by endpoint group. Over the limit, the API returns `429` with `Retry-After`. See [rate limits](https://provenanceauth.com/docs/integrate/rate-limits.md).

### Versioning

There are no breaking changes within `v1`, and every response carries `Provenance-Version`. See [versioning](https://provenanceauth.com/docs/reference/versioning.md).

### Request IDs

Every response has an `X-Request-Id`, also in `error.request_id`. Quote it when you contact support. See [headers](https://provenanceauth.com/docs/api/conventions.md#headers).

## Resources

### Identify

- [Traffic policies](https://provenanceauth.com/docs/api/traffic-policies.md): Your site's versioned rules for which agents and bots get through.
- [Signed agents](https://provenanceauth.com/docs/api/signed-agents.md): An agent's Web Bot Auth signing keys, its public key directory and its card.
- [Traffic checks](https://provenanceauth.com/docs/api/traffic-checks.md): The hosted check and the middleware's policy bundle.
- [Traffic decisions](https://provenanceauth.com/docs/api/traffic-decisions.md): Recorded decisions, reported decisions and the traffic summary.
- [Disclosure requests](https://provenanceauth.com/docs/api/disclosure-requests.md): Asking who stands behind a pseudonym, with the person's consent or Provenance's audited review.
- [Identify settings](https://provenanceauth.com/docs/api/identify-settings.md): The route map, origins, fail mode, retention, starter traffic policies and the response templates rules serve.

### Authorize

- [Verifications](https://provenanceauth.com/docs/api/verifications.md): A merchant's paid check of an intent token, with how the person approved.
- [Assessments](https://provenanceauth.com/docs/api/assessments.md): One 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 approvals](https://provenanceauth.com/docs/api/checkout-approvals.md): A store's cart approvals, shown by the shopper's agent or sent to the store's own customer.
- [Checkout setup](https://provenanceauth.com/docs/api/checkout-setup.md): Set up agent checkout: the setup's step state, and Muse, a test agent for your store.
- [Store integrations](https://provenanceauth.com/docs/api/store-integrations.md): Your 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 policies](https://provenanceauth.com/docs/api/checkout-policies.md): Your store's versioned checkout rules, which decide when an assessment asks the person or rejects.
- [Evidence packs](https://provenanceauth.com/docs/api/evidence-packs.md): A chargeback evidence pack for an approved agent order: signed, offline-verifiable, and yours to send.
- [Chargebacks](https://provenanceauth.com/docs/api/chargebacks.md): Disputes 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 controls](https://provenanceauth.com/docs/api/issuer-controls.md): For 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.
- [UCP](https://provenanceauth.com/docs/api/ucp.md): Ask for the shopper's approval on Universal Commerce Protocol checkouts: the approval Action, the fallback, and completions verified against your own checkout.
- [Discovery](https://provenanceauth.com/docs/api/discovery.md): Business 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.
- [Deals](https://provenanceauth.com/docs/api/deals.md): Agent-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-offers](https://provenanceauth.com/docs/api/counter-offers.md): Counter-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.
- [Exchanges](https://provenanceauth.com/docs/api/exchanges.md): The 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.
- [Tabs](https://provenanceauth.com/docs/api/tabs.md): Tabs 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.
- [Disputes](https://provenanceauth.com/docs/api/disputes.md): When 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 checks](https://provenanceauth.com/docs/api/call-checks.md): Checks 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 policies](https://provenanceauth.com/docs/api/risk-policies.md): Your account's versioned risk thresholds, weights and required-signal rules for attestations.
- [Capture policies](https://provenanceauth.com/docs/api/capture-policies.md): Your versioned capture rules, which approve, review or reject each captured shot.
- [Claims](https://provenanceauth.com/docs/api/claims.md): Attesting captured photos and video, verifying them, and reading a claim's provenance.
- [Capture sessions](https://provenanceauth.com/docs/api/capture-sessions.md): Live video capture with a hash chain seeded by the server.
- [Capture requests](https://provenanceauth.com/docs/api/capture-requests.md): Branded links that ask someone outside your account for photos, a selfie or a photo of an ID, taken live with their camera.
- [Media](https://provenanceauth.com/docs/api/media.md): Advisory checks for media that never went through the capture SDK.
- [Cases](https://provenanceauth.com/docs/api/cases.md): The review workflow for each claim: assignment, status and notes.
- [Appeals](https://provenanceauth.com/docs/api/appeals.md): Signed links that let a policyholder appeal without a login.
- [Exports](https://provenanceauth.com/docs/api/exports.md): Evidence bundles for a claim, verifiable offline.
- [Analytics](https://provenanceauth.com/docs/api/analytics.md): Portfolio views of your claims over time.
- [Batches](https://provenanceauth.com/docs/api/batches.md): Re-verifying and screening past claims in one job.
- [Devices](https://provenanceauth.com/docs/api/devices.md): Enrolling and revoking capture devices, with their hardware tier.

### Mandate

- [Intent tokens](https://provenanceauth.com/docs/api/intent-tokens.md): Authorizing an agent's action, verifying it before it runs, and revoking it.
- [Decisions](https://provenanceauth.com/docs/api/decisions.md): The hash-chained ledger of every authorize and verify, with signed receipts.
- [Policies](https://provenanceauth.com/docs/api/policies.md): Your account's versioned rules for what's allowed, denied or sent for approval.
- [Approvals](https://provenanceauth.com/docs/api/approvals.md): Step-up approval requests a person decides.
- [Approval routing](https://provenanceauth.com/docs/api/approval-routing.md): Approver groups a rule's `route` sends approvals to, with escalation, a wait and what happens if nobody answers.
- [Approver network](https://provenanceauth.com/docs/api/approver-network.md): People outside your account who approve with their own passkey.
- [Grants](https://provenanceauth.com/docs/api/grants.md): Standing, bounded authority a person grants an agent.
- [Network](https://provenanceauth.com/docs/api/network.md): Network mandates: one permission a person gives an agent, honoured at every store that accepts Provenance. Stores accept each order online.
- [Runs](https://provenanceauth.com/docs/api/runs.md): An orchestrator agent and its subagents, halted with one call, and the guard that watches them.
- [Agents](https://provenanceauth.com/docs/api/agents.md): Registered agents, with suspension, the account-wide pause and per-agent stats.
- [Takeover protection](https://provenanceauth.com/docs/api/takeover-protection.md): Per-agent baselines, takeover verdicts, the owner's responses and the settings.
- [Risk signals](https://provenanceauth.com/docs/api/risk-signals.md): Your own risk providers' verdicts (push, lookup or list), the facts rules read, and Test a lookup.
- [Agreements](https://provenanceauth.com/docs/api/agreements.md): Two parties confirming the same document with a passkey.
- [Calls](https://provenanceauth.com/docs/api/calls.md): Phone numbers your agents call from, and calls they register before dialing with a signed call credential.

### Trace

- [Traced inference](https://provenanceauth.com/docs/api/traced-inference.md): Chat completions with canary readings measured inside an open-weight model.
- [Attribution traces](https://provenanceauth.com/docs/api/attribution-traces.md): Graphs of the neurons that drove each output token, checked by ablation and signed.
- [Trace shares](https://provenanceauth.com/docs/api/trace-shares.md): Public links to a masked, verifiable view of a trace.
- [Neuron registry](https://provenanceauth.com/docs/api/neuron-registry.md): The public catalogue of labeled neurons for each traced model. No key needed.
- [Canary families](https://provenanceauth.com/docs/api/canary-families.md): Concept cards that explain what each canary family measures.
- [Canary sets](https://provenanceauth.com/docs/api/canary-sets.md): Your own canary families, built from registry neurons.
- [Trace rules](https://provenanceauth.com/docs/api/trace-rules.md): Your versioned Trace rules, which allow, challenge, review, reject or log an agent's action and a model's output.
- [Trace assessments](https://provenanceauth.com/docs/api/trace-assessments.md): Each 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 locks](https://provenanceauth.com/docs/api/trace-checks-and-locks.md): Running your Trace rules on a stored reading, and the agent sessions a rule locked.
- [Canary trips](https://provenanceauth.com/docs/api/canary-trips.md): Each time a canary tripped, with its explanation and your feedback.
- [Canary baselines](https://provenanceauth.com/docs/api/canary-baselines.md): Per-agent normal ranges that relative canary rules compare against.
- [Probes](https://provenanceauth.com/docs/api/probes.md): Linear probes that predict a family before the model writes.
- [Registry builds](https://provenanceauth.com/docs/api/registry-builds.md): Private neuron registries for your own models.
- [Registry diffs](https://provenanceauth.com/docs/api/registry-diffs.md): Neuron-level comparisons between two registries, for CI.
- [Prompt history](https://provenanceauth.com/docs/api/prompt-history.md): Every prompt your account has run, its runs across model versions, activation profiles and run comparisons.
- [Eval suites](https://provenanceauth.com/docs/api/eval-suites.md): Named, versioned prompt sets you re-run against any model version or private build.
- [Patterns](https://provenanceauth.com/docs/api/patterns.md): Saved filters over a run's neurons and readings, and the curated concerning-pattern library.
- [Sidecar](https://provenanceauth.com/docs/api/sidecar.md): Signed readings from a trace worker you run yourself.
- [Neuron disclosure](https://provenanceauth.com/docs/api/neuron-disclosure.md): Letting a verified reviewer see the masked neurons on a trace share.

### Platform

- [Verify](https://provenanceauth.com/docs/api/verify.md): The free check of any Provenance token or receipt, with no key.
- [Policy builder](https://provenanceauth.com/docs/api/policy-builder.md): The builder's account-wide settings: the field catalog, templates, the approval expiry default, who can manage policies, outside approver seats and migrations.
- [Account](https://provenanceauth.com/docs/api/account.md): Your account: keys, usage, notifications and data.
- [Billing](https://provenanceauth.com/docs/api/billing.md): Plans, spend limits and the Stripe subscription.
- [Webhooks](https://provenanceauth.com/docs/api/webhooks.md): Signed events sent to your endpoints.
- [Request logs](https://provenanceauth.com/docs/api/request-logs.md): The API requests made on your account, with redacted bodies, an errors summary and a live tail.
- [Events](https://provenanceauth.com/docs/api/events.md): Every event on your account, whether or not an endpoint subscribes, and forwarding to your machine.
- [Approval contexts](https://provenanceauth.com/docs/api/approval-contexts.md): How a person decided, the same on every product. Embedded in each result that names the decision, and read alone here.
- [Embeds](https://provenanceauth.com/docs/api/embeds.md): Publishable keys, embed tokens and the endpoints behind the widgets.
- [Public keys](https://provenanceauth.com/docs/api/public-keys.md): The published keys that verify everything Provenance signs.
- [Transparency log](https://provenanceauth.com/docs/api/transparency-log.md): The public, append-only log of ledger checkpoints.
- [Leaked keys](https://provenanceauth.com/docs/api/leaked-keys.md): Reports of leaked keys: GitHub secret scanning, anyone's report, and your matched reports.
- [MCP](https://provenanceauth.com/docs/api/mcp.md): Provenance as tools for MCP clients.
- [MCP authorization](https://provenanceauth.com/docs/api/mcp-authorization.md): A person's own assistant connects over MCP: OAuth 2.1 with PKCE, dynamic registration, and the Provenance MCP server.
- [CIBA](https://provenanceauth.com/docs/api/ciba.md): Standard 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.
