Docs
API overview
Authentication, error shape and the endpoint surface.
Authentication
Every /v1/* authenticates with an API key in Authorization: Bearer <key>. The prefix selects environment (test/live) and type (pk/sk). Endpoints marked sk-only reject pk_ keys with 403.
Error shape
{ "code": "validation_failed", "message": "…", "hint": "how to fix it", "issues": [{ "path": "…", "message": "…" }] }Endpoints
POST /v1/consent(+/batch),POST /v1/preferences— record (withIdempotency-Key)POST /v1/preferences/confirmation-token— trigger double opt-in emailGET /v1/subjects/{ref}/consent·/consent/history(sk) ·/preferencesPOST /v1/subjects(sk) ·/subjects/{ref}/identifiers(sk) ·/subjects/merge(sk)GET /v1/purposes·/purposes/{key}/current·/preference-templateGET /v1/policy?country=·/v1/banner(pk) ·/v1/cookiesGET /v1/consent/tcstring·/v1/consent/google-consent-mode·/v1/consent/google-additional-consent·/v1/consent/gppGET /v1/tcf/vendor-list·GET /v1/receipts/{id}·GET /.well-known/jwks.jsonPOST /v1/data-requests(sk) ·POST /v1/data-requests/portal(pk)
The full, browsable "try it now" reference is at /reference.