The API reference is generated from Authbound’s OpenAPI specification.

Base URL

Send every request to the API URL for your key’s mode. The examples below read it from AUTHBOUND_API_URL:
export AUTHBOUND_API_URL=https://sandbox-check.authbound.io

Secret-key requests

Server-side requests send your secret key in the X-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.
curl "$AUTHBOUND_API_URL/v1/verifications" \
  -H "Content-Type: application/json" \
  -H "X-Authbound-Key: $AUTHBOUND_SECRET_KEY" \
  -H "Idempotency-Key: verify-user-123" \
  -d '{
    "policy_id": "pol_identity_basic_eudi_v1",
    "customer_user_ref": "user_123"
  }'

Client-token requests

Status requests use the verification clientToken plus your publishable key.
curl "$AUTHBOUND_API_URL/v1/verifications/vrf_123/status" \
  -H "Authorization: Bearer <clientToken>" \
  -H "X-Authbound-Publishable-Key: pk_test_..."

Contract revisions

A contract revision fixes the shape of every response. The Authbound SDKs pin one and send it on every request:
Authbound-Api-Version: v1
Authbound-Contract-Revision: v1.2026-10-24.1
Use 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.
RevisionStatusVerificationsVerification result
v1.2026-11-28.1LatestAdd failure_reasonclaims_status, plus claims and claims_salt while the claims are retained
v1.2026-10-24.1SupportedNo failure_reasonSame as v1.2026-11-28.1
v1.2026-09-01.1SupportedNo failure_reasonThe 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:
{
  "object": "error",
  "code": "unsupported_contract_revision",
  "message": "Unsupported contract revision; supported: v1.2026-11-28.1, v1.2026-10-24.1, v1.2026-09-01.1",
  "param": "Authbound-Contract-Revision",
  "request_id": "0f6d1c3e-8a52-4c1b-9d7e-2b4f6a8c0e13"
}
During the alpha, a contract revision stays supported until its retirement is announced in the SDK changelog, with advance notice. Revisions are retired only by an explicit decision, not by SDK release numbers. A formal deprecation window starts with 1.0.

Idempotency

Verification create and cancel and policy create accept Idempotency-Key. POST /v1/openid4vc/issuance/offer requires it. Idempotency results are retained for 24 hours.

Errors

Every error response has the same shape:
{
  "object": "error",
  "code": "invalid_api_key",
  "message": "No API key. Send your secret key (sk_test_... or sk_live_...) in the X-Authbound-Key header.",
  "request_id": "0f6d1c3e-8a52-4c1b-9d7e-2b4f6a8c0e13"
}
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.