API documentation

REST over HTTPS. JSON in, JSON out. Every screening call is persisted as an auditable record you can replay. Base URL: https://sanctionslist.xyz. Authenticate with X-API-Key: <your key> on every /v1/ call.

SanctionsList is an information service, not legal advice. Matches are leads for review, not determinations. Results reflect only the list versions named in the response — always record the list_versions you screened against.

Quickstart

# Screen one name (dob_year, country, id, lists, min_score optional)
curl -s https://sanctionslist.xyz/v1/screen \
  -H "X-API-Key: $SL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Sergei Ivanov", "dob_year": 1970, "country": "RU"}'
{
  "labeling": "Public-domain / open-licence government data (OFAC, UK OGL, EU, UN)",
  "disclaimer": "Information service, not legal advice. ...",
  "screened_at": "2026-10-13T20:41:07+00:00",
  "index_reloaded": false,
  "threshold": 0.82,
  "list_versions": {"ofac_sdn": "9108bffe9cb602ac", "...": "..."},
  "matches": [
    {"entity_id": "ofac_sdn:1234", "name": "SERGEI IVANOV",
     "score": 0.94, "list": "ofac_sdn", "reasons": ["name"]}
  ],
  "n_allowlisted": 0
}

Request fields: name (required) · dob_year · country (ISO-2 or ISO-3) · id (passport/national ID) · lists (array subset of ofac_sdn, uk_list, eu_fsd, un_consol) · min_score (0–1, default 0.82). Fuzzy matching handles aliases, transliterations and whitespace variants; each match carries a score and per-field reasons.

Quota: every key has a daily cap. Each response carries X-Quota-Remaining. Login/session endpoints on the operator UI do not consume quota.

Endpoints

EndpointPurpose
POST /v1/screenScreen a name against the lists. Returns matches with scores, reasons and list versions. Persisted as an audit record.
GET /v1/audit/{audit_id}Replay a screening request + response verbatim — what you saw is what you can prove.
GET /healthzLiveness + index size + list versions. Unauthenticated.
GET /statusPublic status page: chain verification, source freshness, last backup.
POST /v1/casesOpen a case: {"title", "audit_ids": [...]} → links screenings into the case.
GET /v1/cases[?state=]List cases; filter by new|reviewing|dispositioned.
GET /v1/cases/{id}Case detail incl. linked screens and disposition trail.
POST /v1/cases/{id}/itemsAttach another audit: {"audit_id"}.
POST /v1/cases/{id}/stateMove case: {"state": "reviewing"}.
POST /v1/cases/{id}/dispositionClose an item: {"audit_id", "disposition": "true_match|false_positive|no_action", "rationale"} (rationale required — examiners ask).
GET /v1/cases/{id}/evidenceEvidence pack (JSON): subject, screens with content checksums, list versions, disposition trail, audit-chain head + verification. Append .html for a printable pack.
GET /v1/evidence/{audit_id}Standalone evidence pack for a single screen.
GET/POST /v1/allowlistFalse-positive allowlist. POST: {"name", "rationale", "expires_at"? ISO date}. Allowlisted matches are flagged, never hidden.
GET/POST /v1/booksSaved subject books. POST: {"name"}.
POST /v1/books/{id}/subjectsAdd subject: {"name", "dob_year"?, "country"?, "external_id"?}.
POST /v1/books/{id}/rescreenRe-screen all subjects against current lists; diffs vs previous run → new/resolved matches per subject.
GET /v1/books/{id}/digest"Overnight" summary: list updates, rescreen results, new potential matches.

Errors & limits

StatusBodyMeaning
400name_required, bad_json, bad_min_score, bad_lists, title_required, bad_disposition, …Validation — the body names the problem.
401missing_key / invalid_keyNo X-API-Key, key inactive, or daily quota exhausted (then X-Quota-Remaining: 0).
404not_foundUnknown route or ID. Other-tenant records are also 404.
413payload_too_largeBody > 64 KiB. Use bulk CSV in the operator UI for large batches.

Rate posture: no fixed rate limit in alpha — your daily quota is the limit. Sustained p95 latency under concurrent load (8 clients) is < 0.5 s end-to-end. The audit chain self-verifies daily and on every status page load.

Data handling

Screened names, query parameters and responses are stored to produce your audit trail and are attributable to your key. Keys are stored hashed; we cannot recover a lost key, only revoke it. List data is derived from public government sources — attributions and licences are on the provenance page.