View as Markdown

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

Authorize

For merchants and issuers

Attest

Mandate

For agent builders

Trace

Platform

These pages are generated from the OpenAPI document, the contract of record, and the SDKs are built to match it.