Authentication & keys
Bearer keys
Section titled “Bearer keys”Every call except GET /v1/guide and GET /v1/openapi.json needs a v1 key from the dashboard. Keys start with sanc_v1_ and go in the Authorization header, never in a URL or a body. Use Content-Type: application/json for JSON requests.
Authorization: Bearer sanc_v1_...The MCP server at https://api.sanctionary.org/v1/mcp takes the same key in the same header.
Keys are issued by invitation while the API is in private preview. For access, write to contact@sanctionary.org.
Scopes
Section titled “Scopes”A key’s scopes control which operations it may call:
| Scope | Allows |
|---|---|
screen |
POST /v1/check, POST /v1/search |
read |
Entity reads (/v1/entities/{id} and its sub-resources), POST /v1/entities/resolve, GET /v1/catalog, GET /v1/datasets, GET /v1/sources |
account |
GET /v1/keys, DELETE /v1/keys/{key_id}, GET /v1/usage |
registers |
Register data in the companies domain, through every operation that can return it |
Any v1 key can read its own account with GET /v1/account. Calling an operation without its scope returns 403 forbidden_scope. Without registers, a check answers the companies section with not_in_tier, and search in companies is refused with forbidden_scope.
To retire a key, list your keys with GET /v1/keys and revoke one with DELETE /v1/keys/{key_id}. Both need the account scope.
The account’s tier is standard or compliance. The tier determines which data the account may see. Every answer states it in meta.tier. The plan sets credits and limits, and a key’s scopes control operations independently of both.
GET /v1/account returns the account’s plan, tier, credits (left, as_of, approximate, unmetered), limits and the calling key.
Credits
Section titled “Credits”- A delivered check costs one credit per party with a conclusive result in any domain. A completed screening negative counts. In a general register, only a found record counts.
- A data read costs one per answer that delivers records or a conclusive resolution, including continuation pages.
- Search costs one for a page with records, or for a screening negative after complete retrieval of all selected in-scope lists within their freshness bounds. It costs 0 when the domain has no release or an empty search is inconclusive.
- Refusals, incomplete deliveries, account administration and discovery (
catalog,datasets,sources) cost nothing. An unmetered plan records only requests.
Each answer reports its cost in the X-Credits-Charged header. Metered plans also get X-Credits-Remaining. A check result also states charged for each party. Use GET /v1/usage (by day, key and kind) to reconcile requests and credits.
Errors
Section titled “Errors”REST refusals return an application/problem+json body with code, status and request_id. Refusals are free (charged: 0).
{ "type": "https://api.sanctionary.org/problems/rate_limited", "title": "Rate limited", "status": 429, "code": "rate_limited", "request_id": "0193f1c2-7a4e-7c1b-9e55-2f0d6a1b9c3f", "charged": 0}- For
invalid_request,errors[].pointerlocates the offending field. - Respect
Retry-Afterwhen it is returned. - Restart pagination after
release_changedorversion_changed. - On
credits_exhausted, reduce the request or add credits before retrying.
| HTTP | Code |
|---|---|
| 400 | malformed_json, invalid_cursor |
| 401 | unauthenticated |
| 402 | credits_exhausted |
| 403 | forbidden_scope, account_suspended |
| 404 | not_found |
| 405 | method_not_allowed |
| 409 | version_changed, release_changed |
| 410 | entity_removed |
| 413 | payload_too_large |
| 415 | unsupported_media_type |
| 422 | invalid_request, answer_too_large |
| 429 | rate_limited |
| 500 | internal |
| 501 | not_available |
| 503 | busy, no_release |
When a plan enforces a request rate, answers carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. GET /v1/account shows the limits that apply to you.