Base URL
Send every request to the API URL for your key’s mode. The examples below read it fromAUTHBOUND_API_URL:
Secret-key requests
Server-side requests send your secret key in theX-Authbound-Key header. Authorization: Bearer sk_... works too; when you send both, X-Authbound-Key is used. Requests with a body also need Content-Type: application/json, or they get 415. Each endpoint below names the scope its key needs. Errors carry a request_id; see Errors.
Client-token requests
Status requests use the verificationclientToken plus your publishable key.
Contract revisions
A contract revision fixes the shape of every response. The Authbound SDKs pin one and send it on every request:authboundContractHeaders() from @authbound/core when you call the REST API directly from custom server code.
If you leave out Authbound-Contract-Revision, you get the latest revision. Every response returns the revision it used in the same header. The hosted API and customer-controlled deployments apply the same rules on every /v1 endpoint.
| Revision | Status | Verifications | Verification result |
|---|---|---|---|
v1.2026-11-28.1 | Latest | Add failure_reason | claims_status, plus claims and claims_salt while the claims are retained |
v1.2026-10-24.1 | Supported | No failure_reason | Same as v1.2026-11-28.1 |
v1.2026-09-01.1 | Supported | No failure_reason | The claims under assertions, flattened, while they are retained |
v1.2026-11-28.1 adds one field, failure_reason, to the verification object. The verification result (GET /v1/verifications/{id}/result) differs only in v1.2026-09-01.1. In v1.2026-09-01.1, assertions is flat: each claim is keyed by its last path segment, such as birth_date for the mdoc element eu.europa.ec.eudi.pid.1 / birth_date. When two claims share a last segment, each is keyed by its full path joined with dots instead. All three return the same signed result, which never contains claim values. Claims are retained for 15 minutes after the verification reaches a terminal state. After that, v1.2026-11-28.1 and v1.2026-10-24.1 report claims_status: "expired" and v1.2026-09-01.1 omits assertions.
The header must be exactly one supported value: one header, no surrounding spaces, lower case. Anything else, including a retired revision such as v1.2026-07-06.1, returns HTTP 400:
Idempotency
Verification create and cancel and policy create acceptIdempotency-Key. POST /v1/openid4vc/issuance/offer requires it. Idempotency results are retained for 24 hours.
Errors
Every error response has the same shape:request_id matches the X-Request-Id response header. Some errors add param, naming the field or header that failed. Branch on code, not message. See Errors for every code and how to fix it.