# Sanctionary > Global risk and watchlist database, via REST API and MCP server. This is the whole of https://sanctionary.org for agents, in one Markdown page: what Sanctionary is, how to use it, what it covers, and a link to every other document. One continuously updated database aggregating global public watchlists (sanctions, PEPs, debarments, wanted notices, export controls, regulatory warnings) for people, companies, vessels, aircraft, crypto wallets and securities. Query it from your workflow or AI agent; get back scored candidates with their evidence, aliases and dated sources. Evidence, never a verdict. - Status: coming soon. The API is in private preview; for early access write to contact@sanctionary.org. - Operated in the EU. Hosted, or on-premise under licence. - Contract: OpenAPI 1.0.0-draft, https://api.sanctionary.org/v1/openapi.json (no key needed). ## How to use it 1. Read the agent guide: https://api.sanctionary.org/v1/guide (Markdown, no key needed). It is the API's own manual for agents. 2. Read the contract: https://api.sanctionary.org/v1/openapi.json (OpenAPI 3.1, no key needed). 3. With a key, call `GET https://api.sanctionary.org/v1/catalog` for what that key may do, the accepted values and the bounds. 4. Screen parties with `POST https://api.sanctionary.org/v1/check`, or connect the MCP server at https://api.sanctionary.org/v1/mcp. Authentication: `Authorization: Bearer ` (keys start with `sanc_`). Errors are `application/problem+json`. A first request (fictional data): ```bash 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"]}]}' ``` Read each party's `results[].domains.`: `status` (`checked`, `inconclusive`, `needs_input`, `not_applicable`, `not_in_tier`, `unavailable`), `matches` and `candidates`. Keep the receipt headers `X-Request-Id` and `X-Sanctionary-Response-SHA256` with the response bytes. Every answer states evidence and its sources, never a verdict: scored candidates with the features that matched, the publisher's records with their edition dates, each domain's release, which lists were checked, and which were stale or missing. A miss against a stale core list is `inconclusive`, not clear. ### MCP server Streamable HTTP at https://api.sanctionary.org/v1/mcp, JSON-RPC 2.0, protocol `2025-06-18`, the same bearer key. Tools: `check`, `search`, `entities`, `entities_statements`, `entities_relationships`, `entities_history`, `entities_ownership`, `entities_resolve`, `catalog`, `datasets`, `sources`. Each tool's arguments are the REST request's fields; read `result.structuredContent`, and keep `result._meta` as the receipt. ```json { "mcpServers": { "sanctionary": { "type": "http", "url": "https://api.sanctionary.org/v1/mcp", "headers": { "Authorization": "Bearer ${SANCTIONARY_KEY}" } } } } ``` ### REST operations Base URL: https://api.sanctionary.org | Method | Path | What it does | |---|---|---| | POST | `/v1/check` | Check parties in named domains | | POST | `/v1/search` | Search one domain by text | | GET | `/v1/entities/{id}` | One entity by its ID | | GET | `/v1/entities/{id}/statements` | The statements behind an entity | | GET | `/v1/entities/{id}/relationships` | An entity's direct links | | GET | `/v1/entities/{id}/history` | An entity's versions since a time | | GET | `/v1/entities/{id}/ownership` | The bounded ownership graph | | POST | `/v1/entities/resolve` | What saved IDs, references and numbers are now | | GET | `/v1/catalog` | Domains, topics, recipes, values, codes, bounds | | GET | `/v1/datasets` | Coverage per dataset | | GET | `/v1/sources` | Publishers, licences, attribution | | GET | `/v1/account` | The calling account | | GET | `/v1/keys` | The account's keys | | DELETE | `/v1/keys/{key_id}` | Revoke one key | | GET | `/v1/usage` | Use per day, key and kind | | GET | `/v1/openapi.json` | Read the public v1 contract | | GET | `/v1/guide` | Read the public v1 guide | ## What you get - **Real-time**: Most checks answer in under 300 ms: fast enough for onboarding, checkout and payments. - **Batches**: Up to 100 parties a request: check all your vendors at once. - **Deltas** (not yet available): Re-screen only what changed since your last check. - **Worldwide coverage**: 529 sources from 137 jurisdictions, far beyond the US, EU and UK lists. - **Auditable**: Every match explained, every source named and dated. - **Fewer false alarms**: Birth dates, countries and IDs weigh in, so namesakes drop out. - **Integrations** (not yet available): Plugs into the case-management and screening tools you use. - **Ready for AI agents**: An MCP server your agents call directly, returning cited evidence. - **EU-hosted**: Your queries are processed in the EU. ## Who it's for - **Software platforms**: Build screening into your KYB, onboarding, procurement or invoicing product. One integration serves all your customers. When: onboarding, supplier setup, invoices. - **Fintechs & payments**: Screen customers and counterparties where money moves: in the flow, not after it. When: onboarding, payouts, periodic review. - **AI agent builders**: Give your agents a screening tool over MCP that returns dated, cited evidence. When: due diligence, research, case review. - **Compliance & risk teams**: Check new parties and re-check your whole book, with a record you can show an auditor. When: periodic review, tenders, shipments, investigations. ## What it checks Check domains (the exact values `POST /v1/check` accepts in `domains`): `sanctions`, `export_control`, `debarment`, `peps`, `crime`, `insolvency`, `tax`, `companies`, `regulatory`. - **Sanctions**: Asset freezes, sectoral restrictions and travel bans across international and national lists. (Persons · Organisations) Sources: The UN, the EU, US OFAC, UK FCDO and national governments. - **Politically exposed persons**: Heads of state, ministers, legislators, judges, state-enterprise executives and close associates. (Persons) Sources: Covered by country and office: parliaments, governments, courts and asset declarations, and Wikidata. - **Debarments & exclusions**: Suppliers and individuals barred from public tenders or development-bank contracts for fraud or misconduct. (Organisations · Persons) Sources: The World Bank, the African, Asian and Inter-American development banks and national procurement bodies. - **Wanted & law enforcement**: Fugitives, arrest warrants and public notices issued by national and multilateral police agencies. (Persons) Sources: Each notice names the police or justice body that issued it. - **Vessels & aircraft**: Sanctioned, shadow-fleet and flagged ships and aircraft, matched by their identifiers as well as their names. (IMO · MMSI · Tail numbers) - **Lobbyists & influence** (planned, not yet in the API): Registered lobbyists, political-influence disclosures and foreign-agent filings from public registers. (Persons · Organisations) - **Export & trade controls**: Restricted end-users, denied-persons lists and dual-use trade embargoes across global supply chains. (Organisations · Persons) Sources: US BIS and the export authorities of Japan, Canada, China and others. - **Regulatory warnings**: Financial-regulator warnings, licence revocations, disqualified directors and enforcement actions. (Organisations · Persons) 529 datasets from 462 publishers in 137 jurisdictions. Coverage by class and country, and PEP by country and office: https://sanctionary.org/sources/ (as Markdown: https://sanctionary.org/sources/index.md). With a key, `GET /v1/datasets` and `GET /v1/sources` list every dataset with its licence, publisher and freshness. ## Why screening is everyone's now - 68% of the sanctions listings in force on the lists Sanctionary tracks were made since 2022 (117,780 dated listings across 67 sanctions lists, counted on 2026-12-03). - 29 milestones in AML and sanctions law by 2029, each bringing screening and due-diligence duties to more industries, from one US bank law in 1970. They cover 9 jurisdictions (the EU, the UK, the US, Canada, Australia, Switzerland, Hong Kong, Singapore and India) and 14 industries: Banks; Money transfer & payments; Casinos & gambling; Accountants & tax advisers; Real estate; Lawyers & notaries; Precious metals & luxury dealers; Company & trust services; Crypto; Art market; Exporters & international groups; Lending, crowdfunding & investment; Public procurement; Football clubs & agents. ## Pricing Final rates are published at launch. - **Pay as you go**: per party screened, no minimum; failed requests are free. - **Subscription**: monthly tiers with predictable volume, higher concurrency, invoice billing, and change-only re-screens when they ship. - **On-premise licence**: annual licence; the index and matcher run inside your own infrastructure with signed dataset updates. ## Links - Agent guide: https://api.sanctionary.org/v1/guide - OpenAPI contract: https://api.sanctionary.org/v1/openapi.json - MCP server: https://api.sanctionary.org/v1/mcp - Documentation: https://sanctionary.org/docs/ (every page also as Markdown at its own path + `index.md`): - Introduction: https://sanctionary.org/docs/ (What Sanctionary is and how the pieces fit.) - Quickstart: https://sanctionary.org/docs/guides/quickstart/ (A key, a first POST /v1/check, reading the result.) - Authentication & keys: https://sanctionary.org/docs/guides/authentication/ (Bearer keys, scopes, tiers and credits.) - Matching & evidence: https://sanctionary.org/docs/guides/matching/ (Statuses, identifiers, coverage, stale lists and receipts.) - MCP server: https://sanctionary.org/docs/guides/mcp/ (Connecting Claude, Cursor or any MCP client; the tools.) - Examples: https://sanctionary.org/docs/guides/examples/ (Onboarding, vessels, investigations, re-checks.) - REST API reference: https://sanctionary.org/docs/api/ (Every operation, generated from the OpenAPI contract.) - Changelog: https://sanctionary.org/docs/changelog/ (Contract and release history.) - Everything above plus every docs page and the agent guide, in one text file: https://sanctionary.org/llms-full.txt - Coverage by class and country: https://sanctionary.org/sources/ (as Markdown: https://sanctionary.org/sources/index.md) - Service status and data freshness: https://status.sanctionary.org - API catalog (RFC 9727): https://sanctionary.org/.well-known/api-catalog; MCP server card: https://sanctionary.org/.well-known/mcp/server-card.json - Contact and early access: contact@sanctionary.org This page: https://sanctionary.org/index.md, or https://sanctionary.org/ requested with `Accept: text/markdown`. --- # Sanctionary Documentation Source: https://sanctionary.org/docs/ > **Coming soon.** The API is in private preview and keys are issued by invitation. For access, write to [contact@sanctionary.org](mailto:contact@sanctionary.org). The v1 contract is a draft and may still change before it is frozen. Sanctionary answers questions about parties (people, organisations, vessels, aircraft, crypto wallets and securities) with evidence from public sources. An answer states evidence and its sources, never a verdict. Data is processed in the EU. - **REST API:** `https://api.sanctionary.org/v1/...` - **MCP server:** `https://api.sanctionary.org/v1/mcp` (Streamable HTTP, JSON-RPC 2.0) - **Authentication:** `Authorization: Bearer sanc_v1_...` on both ## Machine-readable sources These two documents are the source of truth. Neither needs a key. - [`GET /v1/openapi.json`](https://api.sanctionary.org/v1/openapi.json): the OpenAPI 3.1 contract, with every request, answer and example. The [REST API reference](/docs/api/) in these docs is generated from it. - [`GET /v1/guide`](https://api.sanctionary.org/v1/guide): a short Markdown guide written for coding and runtime agents. ## What the API does | Operation | Purpose | | --- | --- | | `POST /v1/check` | Check 1 to 100 parties in the domains you name, one section per domain. | | `POST /v1/search` | Ranked text search in one domain. | | `GET /v1/entities/{id}` | One entity, with `/statements`, `/relationships`, `/history` and `/ownership` below it. | | `POST /v1/entities/resolve` | What saved entity IDs, member references or numbers are now. | | `GET /v1/catalog` | Domains, topics, recipes, accepted values, bounds and capabilities for your key. | | `GET /v1/datasets`, `GET /v1/sources` | Coverage per dataset; publishers, licences and attribution. | | `GET /v1/account`, `GET /v1/keys`, `DELETE /v1/keys/{key_id}`, `GET /v1/usage` | Account, keys and usage (REST only). | The domains are `sanctions`, `export_control`, `debarment`, `peps`, `crime`, `insolvency`, `tax`, `companies` and `regulatory`. ## Where to start - [Quickstart](/docs/guides/quickstart/): your first `POST /v1/check` and how to read the answer. - [Authentication & keys](/docs/guides/authentication/): scopes, tiers, credits and errors. - [Matching & evidence](/docs/guides/matching/): section statuses, identifiers, coverage and receipts. - [MCP server](/docs/guides/mcp/): connect an AI agent. - [Examples](/docs/guides/examples/): recipes for common checks. --- # Quickstart Source: https://sanctionary.org/docs/guides/quickstart/ ## 1. Get a key The API is in private preview and keys are issued by invitation. For access, write to [contact@sanctionary.org](mailto:contact@sanctionary.org). Once you are invited, create a v1 key in the dashboard. Keys start with `sanc_v1_`. ```bash 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](/docs/guides/authentication/). ## 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. ```bash curl https://api.sanctionary.org/v1/catalog \ -H "Authorization: Bearer $SANCTIONARY_KEY" ``` ## 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: ```bash 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: ```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. - `reference` is your own ID for the party. It is the only input value an answer repeats. - `type` is one of `person`, `organization`, `vessel`, `aircraft`, `crypto_wallet`, `security` or `unknown`. - Optional: `threshold` (default `0.7`), `limit` (candidates per section, default 5, at most 50), `options` per domain and `"coverage": "compact"`. ## 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`: ```text results[0].domains.sanctions.status checked | inconclusive | needs_input | not_applicable | not_in_tier | unavailable results[0].domains.sanctions.checked { names, identifiers, accounts }: what actually ran results[0].domains.sanctions.candidates[] score, match, features, matched_name, entity, sources, ... results[0].domains.sanctions.matches qualifying candidates before the limit results[0].domains.sanctions.truncated more qualified than `limit` returned meta.domains.sanctions the release read and its coverage ``` Read each section on its own: 1. **`status`.** Only `checked` means the check ran to completion. `inconclusive` means a negative you should not rely on, for example because a core list was stale. See [Matching & evidence](/docs/guides/matching/). 2. **`candidates`.** Each one is evidence, not a verdict: a `score`, a `match` flag, `features` explaining the score, the `matched_name` and the `sources` with attribution and freshness. Send possible matches to a reviewer with the evidence. 3. **`truncated` and `retrieval_capped`.** Check both before treating a list as exhaustive. 4. **`meta.domains`.** Each domain's release and coverage: datasets in scope and checked, plus `stale` and `missing` lists. 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 ```text 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 - [Authentication & keys](/docs/guides/authentication/): scopes, tiers, credits and errors. - [Matching & evidence](/docs/guides/matching/): statuses, identifiers, coverage and receipts. - [MCP server](/docs/guides/mcp/): the same operations as agent tools. --- # Authentication & keys Source: https://sanctionary.org/docs/guides/authentication/ ## 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. ```http 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](mailto:contact@sanctionary.org). ## 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. ## Tiers 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 - 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 REST refusals return an `application/problem+json` body with `code`, `status` and `request_id`. Refusals are free (`charged: 0`). ```json { "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[].pointer` locates the offending field. - Respect `Retry-After` when it is returned. - Restart pagination after `release_changed` or `version_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. --- # Matching & evidence Source: https://sanctionary.org/docs/guides/matching/ An answer states evidence and its sources, never a verdict. This page explains how to read that evidence. The [OpenAPI contract](https://api.sanctionary.org/v1/openapi.json) defines every field. ## Sections and statuses `POST /v1/check` answers each party with one independent section per requested domain, under `results[].domains`. One section's failure never fails the answer. | Status | Meaning | | --- | --- | | `checked` | The section ran. Inspect `checked` to see which of names, identifiers and accounts ran. | | `inconclusive` | A screening negative you should not rely on: retrieval was cut, or a core list or a list named in `options..datasets` is stale. | | `needs_input` | Nothing could run. `needs` says what to supply (`name` or `identifier`). | | `not_applicable` | The party is outside the domain's scope, for example `reason: "legal_persons_only"` for a person in `insolvency`, `tax` or `companies`. | | `not_in_tier` | An access restriction: your tier, a filter to Compliance-only datasets, or a key without the `registers` scope in `companies`. | | `unavailable` | Missing data or an unavailable check. | Every enumerated value may grow. Treat an unknown value as inconclusive. ## Candidates In screening domains, `candidates` lists the entities found by name or number, each once, best first, up to `limit`: | Field | Meaning | | --- | --- | | `score` | 0 to 1. | | `match` | Whether the score reaches `threshold` (default `0.7`) or a definitive identifier uniquely confirms the candidate. | | `features` | The evidence behind the score, by feature. | | `matched_name` | The target's name that scored (`value`, `input_name`, `kind`: `current`, `former` or `alias`), or `null`. | | `identifier_evidence` | Per supplied number: `confirmed`, `contradicted` or `silent`. | | `entity` | A compact entity summary with `id`, `domain`, `schema`, `caption`, `version`, `topics`, `identifiers` and `records`. | | `sources` | Each dataset with its `attribution` and `freshness`. | `matches` counts qualifying candidates before the limit. `truncated` means more qualified than were returned. `retrieval_capped` means retrieval stopped at its bound. An empty list can reflect stale or missing sources, a section that did not run, or a retrieval cap. Check `status`, `truncated` and `retrieval_capped` before treating results as exhaustive. Send possible matches to a reviewer with the evidence. ## Identifiers Supply numbers in `identifiers` as `{ "scheme": ..., "value": ... }`, with `country` when you know the issuer (and `network` for wallets). The catalog lists every scheme and its required fields. A number lookup answers for its holder, under the section's `identifiers` with one of these results: `found`, `not_found`, `ambiguous`, `identifier_not_covered` or `unavailable`. When two entities hold one number, the result is `ambiguous`. In a screening domain, a unique holder confirmed by definitive identifier evidence counts in `matches` even below the score threshold. Such a candidate has `reason: "definitive_identifier"`: ```json { "score": 0.95, "match": true, "reason": "definitive_identifier", "features": { "identifier": 1, "name": 0 }, "matched_name": null, "identifier_evidence": [{ "input": 0, "result": "confirmed" }] } ``` How each scheme qualifies as evidence: | Scheme | How the evidence qualifies | | --- | --- | | IMO, LEI, wallet and ISIN | A validated, unique holder can qualify by number alone. Wallets use the supplied network, and securities may require opt-in. | | Passport | The number identifies a holder in the list. A screening candidate needs independent evidence such as a matching name. | | MMSI | The number identifies a holder in the edition. Definitive evidence also requires a literal name match. | | Aircraft serial (`other`) | A matching manufacturer and, where necessary, model make the serial definitive. A serial on its own is holder evidence. | | Aircraft registration | A current tail number can reach the score threshold. A former tail on its own is holder evidence. | | BIC, tax and registration | A unique, validated BIC, a validated legal-person tax key or a lifelong register number can be definitive in its scope. | | National ID | A definitive finding depends on the number's validity, country and specificity, and any supplied name. | A general-register negative requires a dated, complete-for-scope, in-bound edition. For supported countries, `tax` can also check one payer and account pair (`accounts`). Its result is `listed`, `not_listed`, `identifier_not_covered`, `date_not_covered` or `unavailable`. Treat that result as evidence about the supplied pair only. ## Coverage and staleness `meta.domains.` gives each domain's `release` and `coverage`, or `unavailable` (`not_in_tier` or `no_release`) when no release was read. Coverage contains: - `datasets` and `checked`: datasets in scope and datasets read. - `stale`: every in-scope dataset past its freshness bound. Screening still reads the last valid edition. - `stale_core` and `stale_requested` (check only): the stale lists that make a negative `inconclusive`. - `missing`, `left_out` (opt-in topics you did not name) and `withheld` (classes excluded from scope). - `editions_sha256` and `editions`: every edition read, with its `dataset`, `as_of` (the publisher's edition date when available), `last_read_at` (our last successful read) and freshness `bound`. Send `"coverage": "compact"` to omit the `editions` array. The digest and exceptions are kept. Dataset freshness is `ok`, `stale`, `missing` or `not_in_tier`. `GET /v1/datasets` reports it per dataset. The sanctions core covers the UN, OFAC SDN and consolidated non-SDN, EU financial sanctions, UK and Swiss SECO lists. A stale list outside the core and outside your `options` leaves a completed miss `checked`. ## Narrowing a check `options.` can contain `datasets` (only these lists), `topics`, `opt_in` (opt-in topics added to the default) and `issuer_countries`. Each key in `options` must also appear in `domains`. Recipes in the catalog (`person`, `business_customer`, `supplier`, `payment`, `tender`, `shipment`) name sets of domains to send. The server never expands a recipe for you. ## Receipts Keep the exact response bytes, your request `reference` and the receipt headers: | Header | Content | | --- | --- | | `X-Request-Id` | The request's ID. | | `X-Sanctionary-Build` | The revision of the code that answered. | | `X-Sanctionary-Response-SHA256` | SHA-256 of the body. Compare it after decompression and before re-serialising the JSON. | | `X-Credits-Charged` | Credits this answer charged. | | `X-Sanctionary-Releases` | Where provided: the domain releases read, as `domain=release`. | | `X-Sanctionary-Matcher` | Where a score was computed: the scorer and policy version. | The body carries the pin time in `meta.answered_at` and, when applicable, the matcher in `meta.matcher`. ## Capabilities not yet available The contract already describes some capabilities that the catalog lists with `available: false` in the current draft: `since` on `check` and `entities/resolve`, `GET /v1/entities/{id}/history`, `GET /v1/entities/{id}/ownership`, and `search` in `companies`. Check `capabilities` in `GET /v1/catalog` before relying on them. --- # MCP server Source: https://sanctionary.org/docs/guides/mcp/ The MCP server runs beside the REST API with the same handlers and the same keys. Each tool is a REST operation: its name is the operation's `operationId`, and its arguments are the REST body, or the path and query fields, field for field. - **Endpoint:** `https://api.sanctionary.org/v1/mcp` - **Transport:** Streamable HTTP, JSON-RPC 2.0, protocol version `2025-06-18` - **Authentication:** `Authorization: Bearer sanc_v1_...`, the same key as REST ## Client configuration For clients that read an `mcpServers` JSON file with remote servers (for example Claude Code's `.mcp.json` or Cursor's `mcp.json`): ```json { "mcpServers": { "sanctionary": { "type": "http", "url": "https://api.sanctionary.org/v1/mcp", "headers": { "Authorization": "Bearer ${SANCTIONARY_KEY}" } } } } ``` With the Claude Code CLI: ```bash claude mcp add --transport http sanctionary https://api.sanctionary.org/v1/mcp \ --header "Authorization: Bearer $SANCTIONARY_KEY" ``` If your client only launches local (stdio) servers, such as some Claude Desktop setups, connect through a local bridge to a remote HTTP server that can send the `Authorization` header. ## Tools | Tool | REST operation | | --- | --- | | `check` | `POST /v1/check`: check parties in named domains | | `search` | `POST /v1/search`: search one domain by text | | `entities` | `GET /v1/entities/{id}`: one entity by its ID | | `entities_statements` | `GET /v1/entities/{id}/statements`: the statements behind an entity | | `entities_relationships` | `GET /v1/entities/{id}/relationships`: an entity's direct links | | `entities_history` | `GET /v1/entities/{id}/history`: an entity's versions since a time | | `entities_ownership` | `GET /v1/entities/{id}/ownership`: the bounded ownership graph | | `entities_resolve` | `POST /v1/entities/resolve`: what saved IDs, references and numbers are now | | `catalog` | `GET /v1/catalog`: domains, topics, recipes, values, codes, bounds | | `datasets` | `GET /v1/datasets`: coverage per dataset | | `sources` | `GET /v1/sources`: publishers, licences, attribution | Account, key and usage operations are REST only. `entities_history` and `entities_ownership` are listed with `available: false` in the catalog's capabilities in the current draft. ## Protocol flow 1. `initialize` with `protocolVersion: "2025-06-18"`. 2. Send `notifications/initialized`. 3. `tools/list` for discovery. 4. `tools/call` with the tool name and its arguments. A `check` call takes the REST request body as `params.arguments`: ```json { "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "check", "arguments": { "domains": ["sanctions", "peps"], "options": { "sanctions": { "datasets": ["fic_sanctions_one", "fic_sanctions_two"] }, "peps": { "opt_in": ["role.pep.former"] } }, "threshold": 0.7, "limit": 5, "parties": [ { "reference": "cust-1001", "type": "person", "names": [{ "value": "Arkady Velmorin" }], "birth_dates": ["1961-03-02"], "nationalities": ["ru"], "gender": "male" } ] } } } ``` Tools for GET operations take the path and query fields, for example `{ "id": "e-1q7k2m9x4w1b3" }` for `entities`. ## Reading a result - `result.structuredContent` is the REST answer body, or the problem body on a refusal. - `result.isError` is `true` for a refusal. - `result.content[0].text` holds the exact serialised JSON bytes. Hash these bytes to verify the receipt. - `result._meta` carries the receipt headers in lower case (`x-request-id`, `x-sanctionary-build`, `x-sanctionary-response-sha256`, `x-credits-charged`, and others where provided), plus `retry-after` on a refusal that has one. Keep it. A refused call over the plan's rate looks like this: ```json { "isError": true, "structuredContent": { "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, "bound": { "name": "request_burst", "value": 2 } }, "content": [{ "type": "text", "text": "{\"type\":\"https://api.sanctionary.org/problems/rate_limited\", ...}" }], "_meta": { "x-request-id": "0193f1c2-7a4e-7c1b-9e55-2f0d6a1b9c3f", "x-sanctionary-build": "b-0001", "x-sanctionary-response-sha256": "5b3c68709f836467eac40333949ae5fbe033bf25c42b8c9272bfeaa8cf86033a", "x-credits-charged": "0", "retry-after": "10" } } ``` ## Limits that differ from REST - The `check` tool has a lower default candidate `limit` (3 instead of 5). - A check through MCP is admitted against a lower candidates-per-answer bound, and MCP has its own response-size bound. The catalog's `bounds` give the values. - Read tools have the same page defaults as REST. ## Guidance for agents - Pass every detail you have (birth dates, countries, identifiers), not bare names. - Read every section's `status`. Only `checked` is a completed check, and `inconclusive` is not a negative. - When reporting a candidate, cite the entity `id`, its `sources` and the `score`. A candidate is evidence for review, not a verdict. --- # Examples Source: https://sanctionary.org/docs/guides/examples/ All names, numbers and IDs below are fictional and come from the examples in the [OpenAPI contract](https://api.sanctionary.org/v1/openapi.json). Every request needs `Authorization: Bearer $SANCTIONARY_KEY`. ## 1. Onboard a person Use the `person` recipe (`sanctions` and `peps`). This variant limits sanctions to two named lists and opts in to former PEPs: ```bash curl https://api.sanctionary.org/v1/check \ -H "Authorization: Bearer $SANCTIONARY_KEY" \ -H "Content-Type: application/json" \ -d '{ "domains": ["sanctions", "peps"], "options": { "sanctions": { "datasets": ["fic_sanctions_one", "fic_sanctions_two"] }, "peps": { "opt_in": ["role.pep.former"] } }, "threshold": 0.7, "limit": 5, "parties": [ { "reference": "cust-1001", "type": "person", "names": [{ "value": "Arkady Velmorin" }], "birth_dates": ["1961-03-02"], "nationalities": ["ru"], "gender": "male" } ] }' ``` Read `results[0].domains.sanctions` and `results[0].domains.peps` separately. Because the request names `datasets`, a stale named list makes a negative `inconclusive` and appears in `coverage.stale_requested`. ## 2. Onboard a business customer Use the `business_customer` recipe (`companies` and `sanctions`) with the company's register number. The `companies` domain needs a key with the `registers` scope. Without it, the section answers `not_in_tier`. ```bash curl https://api.sanctionary.org/v1/check \ -H "Authorization: Bearer $SANCTIONARY_KEY" \ -H "Content-Type: application/json" \ -d '{ "domains": ["companies", "sanctions"], "parties": [ { "reference": "cust-7", "type": "organization", "names": [{ "value": "Ostravel Machinery s.r.o." }], "countries": ["cz"], "identifiers": [{ "scheme": "cz", "value": "99000016" }] } ] }' ``` In `companies`, the number's finding is under the section's `identifiers` (`found`, `not_found`, `ambiguous`, `identifier_not_covered` or `unavailable`). A found holder has its register `status` and a `name_match` comparing the name you sent. If you send only a name, `companies` answers `needs_input` with `needs: ["identifier"]`. ## 3. Check a vessel by IMO An IMO that uniquely identifies a vessel can qualify a candidate by number alone, without a name. Give the flag if you know it: ```bash curl https://api.sanctionary.org/v1/check \ -H "Authorization: Bearer $SANCTIONARY_KEY" \ -H "Content-Type: application/json" \ -d '{ "domains": ["sanctions"], "parties": [ { "reference": "ship-1", "type": "vessel", "identifiers": [{ "scheme": "imo", "value": "1974636" }], "flags": ["pa"] } ] }' ``` A candidate confirmed this way has `reason: "definitive_identifier"` and `identifier_evidence: [{ "input": 0, "result": "confirmed" }]`, and it counts in `matches` even below the threshold. An MMSI needs a literal name match as well before it counts as definitive evidence, so send the vessel's name with it. ## 4. Investigate an entity Search one domain by text, then read the entity and its links. ```bash # 1. Search (1 credit per page with records) curl https://api.sanctionary.org/v1/search \ -H "Authorization: Bearer $SANCTIONARY_KEY" \ -H "Content-Type: application/json" \ -d '{ "domain": "sanctions", "text": "velmorin", "limit": 10 }' ``` Each hit in `data` has a relevance `score` (not a screening score), the `matched_name` and an `entity` summary with its `id`. If `next_cursor` is not `null`, repeat the same body with `"cursor"` set to it for the next page. ```bash # 2. The whole entity: properties as published, sources with attribution and freshness curl https://api.sanctionary.org/v1/entities/e-1q7k2m9x4w1b3 \ -H "Authorization: Bearer $SANCTIONARY_KEY" # 3. Its direct links, grouped by counterpart and kind (filter with ?type=family, ?type=ownership, ...) curl "https://api.sanctionary.org/v1/entities/e-1q7k2m9x4w1b3/relationships" \ -H "Authorization: Bearer $SANCTIONARY_KEY" # 4. The statements behind it, page by page curl "https://api.sanctionary.org/v1/entities/e-1q7k2m9x4w1b3/statements" \ -H "Authorization: Bearer $SANCTIONARY_KEY" ``` In relationships, each link has a `type`, a `kind`, `from` and `to` ends and `sources` (every visible publisher record, with its own dates and any stated `share`). For family ties, `kind` describes the counterpart's relationship to the entity you read, such as `spouse`, `child` or `grandparent`. If an ID was merged, the entity answer includes `resolution: { "status": "redirected", "reason": "merged" }`. Restart pagination after `release_changed` or `version_changed`. ## 5. Re-check saved IDs Store the entity IDs (`e-...`) and member references (`r-...`) from earlier answers. `POST /v1/entities/resolve` tells you what each one is now, for up to 1,000 items: ```bash curl https://api.sanctionary.org/v1/entities/resolve \ -H "Authorization: Bearer $SANCTIONARY_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "id": "e-3z8p1c6n2d4fa" }, { "id": "e-7h2n7k4v8s3m1" }, { "ref": "r-0a1b2c3d4e5f6" }, { "id": "e-9z8y7x6w5v4t3" } ] }' ``` Each item in `items` has its `input` index and a `resolution.status`: - `current`: the ID is current. - `redirected`: use `resolution.entity_id` (`reason: "merged"`). - `removed`: the ID was removed or is no longer visible to your tier. - `unknown`: your tier was never served this ID, or it is past the notice window. A member reference also returns `member_of`, the entities its record belongs to now. `summary` counts the items. The call costs one credit when any item delivers a resolution. Re-run `POST /v1/check` for parties whose entities changed. `since` (changes since a time) and number items on `entities/resolve` are in the contract, but the catalog lists the `since` capability as not yet available. --- # Changelog Source: https://sanctionary.org/docs/changelog/ ## v1 draft contract published The v1 contract (`1.0.0-draft`) is published at [`/v1/openapi.json`](https://api.sanctionary.org/v1/openapi.json), with the agent guide at [`/v1/guide`](https://api.sanctionary.org/v1/guide). The API and the MCP server at `https://api.sanctionary.org/v1/mcp` are in private preview, and keys are issued by invitation. For access, write to [contact@sanctionary.org](mailto:contact@sanctionary.org). The contract stays a draft until it is frozen as `v1.0`. After that, it only grows. --- # Agent guide (from https://api.sanctionary.org/v1/guide) Use a v1 key from the dashboard. Send `Authorization: Bearer ` and use `Content-Type: application/json` for JSON requests. Start with `GET /v1/catalog` for the capabilities, accepted values and bounds for your key. The [OpenAPI contract](/v1/openapi.json) defines the exact requests, answers and examples. ## Domains and checks `POST /v1/check` accepts parties and the domains you want to check. The domains are `sanctions`, `export_control`, `debarment`, `peps`, `crime`, `insolvency`, `tax`, `companies`, `regulatory`. A catalogue recipe gives you a list of domains to send. Entity IDs and releases are scoped to a domain. Send names in their original script and only as much detail as you actually have. Set a `reference` to correlate a result with your own record. Each key in `options` must also appear in `domains`. This request uses fictional data. ```json { "domains": [ "sanctions", "peps" ], "parties": [ { "reference": "cust-8", "type": "person", "names": [ { "value": "Maren Tolvisk" } ], "birth_dates": [ "1984" ], "countries": [ "no" ] } ] } ``` Read each party's `results[].domains` separately. The section statuses are `checked`, `inconclusive`, `needs_input`, `not_applicable`, `not_in_tier`, `unavailable`. Inspect `checked` to see which of names, identifiers and accounts ran. If the status is `needs_input`, see `needs` for what to supply. A legal-persons domain can return `not_applicable` with the reason `legal_persons_only`. `not_in_tier` signals an access restriction, including a filter to Compliance-only datasets or a missing `registers` scope for `companies`. `unavailable` signals missing data or an unavailable check. An identifier can return `found`, `not_found`, `ambiguous`, `identifier_not_covered`, `unavailable`. A number lookup answers for its holder. In a screening domain, a unique holder confirmed by definitive identifier evidence counts in `matches` even below the score threshold. The candidate has `reason: "definitive_identifier"`, an identifier feature and a comparison for each submitted number in `identifier_evidence`. When two entities hold one number, the lookup returns `ambiguous`. Review the holder's name comparison and the rest of the evidence. | Scheme | How the evidence qualifies | |---|---| | IMO, LEI, wallet and ISIN | A validated, unique holder can qualify by number alone. Wallets use the supplied network and securities may require opt-in. | | Passport | The number identifies a holder in the list. A screening candidate needs independent evidence such as a matching name. | | MMSI | The number identifies a holder in the edition. Definitive evidence also requires a literal name match. | | Aircraft serial (`other`) | A matching manufacturer and, where necessary, model make the serial definitive. A serial on its own is holder evidence. | | Aircraft registration | A current tail number can reach the score threshold. A former tail on its own is holder evidence. | | BIC, tax and registration | A unique, validated BIC, a validated legal-person tax key or a lifelong register number can be definitive in its scope. | | National ID | A definitive finding depends on the number's validity, country and specificity, and any supplied name. | For an IMO that uniquely identifies a vessel, a candidate can include these fields. ```json { "score": 0.95, "match": true, "reason": "definitive_identifier", "features": {"identifier": 1, "name": 0}, "matched_name": null, "identifier_evidence": [{"input": 0, "result": "confirmed"}] } ``` A general-register negative requires a dated, complete-for-scope, in-bound edition. For supported countries, `tax` can also check one payer and account pair. Its result is `listed`, `not_listed`, `identifier_not_covered`, `date_not_covered`, `unavailable`. Treat the result as evidence about the supplied pair. ## Coverage Inspect `meta.domains` for each domain's release and coverage or the reason no release was read. Coverage shows the in-scope and checked dataset counts, `editions_sha256`, `stale` and `missing` datasets, opt-in omissions and tier exclusions. Check and search include each edition, its freshness bound and its digest or observation by default. An edition's `as_of` is the publisher's edition date when available. `last_read_at` records our read. Send `"coverage": "compact"` to omit the edition array. Dataset freshness is `ok`, `stale`, `missing`, `not_in_tier` and uses the last successful read and its freshness bound. Inspect a section's coverage for party-specific limits such as register jurisdictions. For `check`, a screening miss is `inconclusive` if retrieval was cut or an in-scope core list or a list named in `options..datasets` is stale. The sanctions core covers the UN, OFAC SDN and consolidated non-SDN, EU financial sanctions, UK and Swiss SECO lists. Coverage keeps every stale list in `stale`, with `stale_core` and `stale_requested` identifying which ones affect the status. Other stale lists leave the miss `checked` when screening completes. A screening candidate includes a score, a qualification flag and sources. Send possible matches to a reviewer with the evidence. An empty list can reflect stale or missing sources, a section that did not run, or a retrieval cap. Check `truncated` and `retrieval_capped` wherever returned before treating results as exhaustive. For investigation, search one domain with `POST /v1/search`. Follow `next_cursor` with the same query. Read the entity, statements and relationships at the returned entity ID. `GET /v1/entities/{id}/relationships` groups direct links by counterpart and `kind`. For family ties, `kind` describes the counterpart's relationship to the entity you read, such as `spouse`, `child` or `grandparent`. Other links use the direction in `from` and `to`. The `type` query parameter filters broad categories such as `family`. Each edge's `sources` lists every visible publisher record with its own edition and stated dates when available. Links of different kinds between the same entities appear separately. Use `POST /v1/entities/resolve` to check saved IDs or member references. The catalogue indicates when history, ownership and `since` are available. ## Tiers and scopes The tiers are `standard`, `compliance`. The tier determines which data the account may see. The plan sets credits and limits. A key's scopes control operations independently of both. `screen` enables checks and search. `read` enables data reads, discovery and resolution. `account` enables key management and usage. Any v1 customer key can read its own account. `registers` additionally gates access to `companies`. A check needs a release for that domain. ## 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 delivering records or conclusive resolution, including continuation pages. Search costs one for a page with records or a screening negative after complete retrieval of all selected in-scope lists within their freshness bounds, and 0 when the domain has none (no release) or an empty search is inconclusive. Refusals, incomplete deliveries, account administration and discovery (catalog, datasets and sources) cost zero. An unmetered plan records only requests. | Operation | Contract charge rule | |---|---| | `POST /v1/check` | `party` | | `POST /v1/search` | `search` | | `GET /v1/entities/{id}` | `entity` | | `GET /v1/entities/{id}/statements` | `page` | | `GET /v1/entities/{id}/relationships` | `page` | | `GET /v1/entities/{id}/history` | `page` | | `GET /v1/entities/{id}/ownership` | `ownership` | | `POST /v1/entities/resolve` | `resolve` | | `GET /v1/catalog` | `free` | | `GET /v1/datasets` | `free` | | `GET /v1/sources` | `free` | | `GET /v1/account` | `free` | | `GET /v1/keys` | `free` | | `DELETE /v1/keys/{key_id}` | `free` | | `GET /v1/usage` | `free` | | `GET /v1/openapi.json` | `free` | | `GET /v1/guide` | `free` | Use `GET /v1/usage` to reconcile requests and credits for your account. ## Receipts Keep the exact response bytes, your request reference and the receipt headers. The contract defines these REST receipt headers — `X-Request-Id`, `X-Sanctionary-Build`, `X-Sanctionary-Response-SHA256`, `X-Credits-Charged`. Where provided, `X-Sanctionary-Releases` names the domain releases used. The body also carries the pin time in `meta.answered_at` and, when applicable, the matcher in `meta.matcher`. Compare the SHA-256 to the response body after decompression and before re-serializing the JSON. ## Errors REST refusals carry an `application/problem+json` body with `code`, `status` and `request_id`. For `invalid_request`, use `errors[].pointer` to find the offending field. Respect `Retry-After` when returned and restart pagination after `release_changed` or `version_changed`. On `credits_exhausted`, reduce the request or add credits before retrying. | HTTP status | Code | Title | |---|---|---| | 400 | `malformed_json` | Malformed JSON | | 400 | `invalid_cursor` | Invalid cursor | | 401 | `unauthenticated` | Unauthenticated | | 402 | `credits_exhausted` | Credits exhausted | | 403 | `forbidden_scope` | Scope missing | | 403 | `account_suspended` | Account suspended | | 404 | `not_found` | Not found | | 409 | `version_changed` | Version changed | | 409 | `release_changed` | Release changed | | 410 | `entity_removed` | Entity removed | | 413 | `payload_too_large` | Payload too large | | 415 | `unsupported_media_type` | Unsupported media type | | 422 | `invalid_request` | Invalid request | | 422 | `answer_too_large` | Answer too large | | 429 | `rate_limited` | Rate limited | | 500 | `internal` | Internal error | | 501 | `not_available` | Not available | | 503 | `busy` | Busy | | 503 | `no_release` | No release | | 405 | `method_not_allowed` | Method not allowed | ## MCP Connect to `POST /v1/mcp` with the same bearer key. Send JSON-RPC 2.0 and initialize with protocol `2025-06-18`, then send `notifications/initialized` and use `tools/list` for discovery. Call the `check` tool through `tools/call` with the REST request body as `params.arguments`. Tools for GET operations accept the REST path and query fields as arguments. Account, key and usage operations are REST only. Read `result.structuredContent` for the answer or problem and `result.isError` for a tool refusal. Keep `result._meta` for the receipt and hash the exact `result.content[0].text` bytes. They serialize the JSON body inside the MCP envelope. Some tools have lower default limits and MCP has its own response bounds.