Quickstart
1. Get a key
Section titled “1. Get a key”The API is in private preview and keys are issued by invitation. For access, write to contact@sanctionary.org. Once you are invited, create a v1 key in the dashboard. Keys start with sanc_v1_.
export SANCTIONARY_KEY="sanc_v1_..."Send the key in the Authorization header and never in a URL or a body. A key that can run checks needs the screen scope; see Authentication & keys.
2. Look at the catalog (free)
Section titled “2. Look at the catalog (free)”GET /v1/catalog lists the domains, topics, recipes, accepted values, bounds and capabilities that apply to your key. Discovery calls cost no credits.
curl https://api.sanctionary.org/v1/catalog \ -H "Authorization: Bearer $SANCTIONARY_KEY"3. Check a party
Section titled “3. Check a party”POST /v1/check takes 1 to 100 parties and the domains you want answered. This request uses the catalog’s person recipe (sanctions and peps) and fictional data:
curl https://api.sanctionary.org/v1/check \ -H "Authorization: Bearer $SANCTIONARY_KEY" \ -H "Content-Type: application/json" \ -d '{ "domains": ["sanctions", "peps"], "parties": [ { "reference": "cust-8", "type": "person", "names": [{ "value": "Maren Tolvisk" }], "birth_dates": ["1984"], "countries": ["no"] } ] }'The same call in Python:
import os, httpx
resp = httpx.post( "https://api.sanctionary.org/v1/check", headers={"Authorization": f"Bearer {os.environ['SANCTIONARY_KEY']}"}, json={ "domains": ["sanctions", "peps"], "parties": [ { "reference": "cust-8", "type": "person", "names": [{"value": "Maren Tolvisk"}], "birth_dates": ["1984"], "countries": ["no"], } ], },)answer = resp.json()Tips for the request:
- Send names in their original script, and only the detail you actually have.
referenceis your own ID for the party. It is the only input value an answer repeats.typeis one ofperson,organization,vessel,aircraft,crypto_wallet,securityorunknown.- Optional:
threshold(default0.7),limit(candidates per section, default 5, at most 50),optionsper domain and"coverage": "compact".
4. Read the answer
Section titled “4. Read the answer”The answer has meta and results, one result per party in request order. Each result has reference, charged (0 or 1) and one independent section per domain under domains:
results[0].domains.sanctions.status checked | inconclusive | needs_input | not_applicable | not_in_tier | unavailableresults[0].domains.sanctions.checked { names, identifiers, accounts }: what actually ranresults[0].domains.sanctions.candidates[] score, match, features, matched_name, entity, sources, ...results[0].domains.sanctions.matches qualifying candidates before the limitresults[0].domains.sanctions.truncated more qualified than `limit` returnedmeta.domains.sanctions the release read and its coverageRead each section on its own:
status. Onlycheckedmeans the check ran to completion.inconclusivemeans a negative you should not rely on, for example because a core list was stale. See Matching & evidence.candidates. Each one is evidence, not a verdict: ascore, amatchflag,featuresexplaining the score, thematched_nameand thesourceswith attribution and freshness. Send possible matches to a reviewer with the evidence.truncatedandretrieval_capped. Check both before treating a list as exhaustive.meta.domains. Each domain’s release and coverage: datasets in scope and checked, plusstaleandmissinglists.
Keep the response bytes and the receipt headers (X-Request-Id, X-Sanctionary-Build, X-Sanctionary-Response-SHA256, X-Credits-Charged) with your decision record.
5. Let a coding agent do the wiring
Section titled “5. Let a coding agent do the wiring”Read https://api.sanctionary.org/v1/guide and https://api.sanctionary.org/v1/openapi.json.Integrate Sanctionary POST /v1/check into this codebase using the SANCTIONARY_KEY env var.Handle every section status, keep the receipt headers, and test with fictional data.Next steps
Section titled “Next steps”- Authentication & keys: scopes, tiers, credits and errors.
- Matching & evidence: statuses, identifiers, coverage and receipts.
- MCP server: the same operations as agent tools.