Skip to main content
v2 is under active development. It does not yet carry v1’s compatibility guarantees: fields may still change before it is declared stable. v1 is unchanged and keeps running; nothing here requires you to migrate.
Version 2 lives at https://api.compliapi.com/api/v2. It runs the same screening as v1, against the same lists. Authentication, request costs, x402 prices, the audit trail, rate limits and the meanings of sanctioned and flagged are all the same. What changes is the shape. The OpenAPI spec at compliapi.com/openapi.json describes v2. v1’s spec is at https://api.compliapi.com/api/v1/openapi.json.

Endpoints

Every screen takes value, an optional ref (your own id for the subject, echoed and audited) and, except pep, an optional lists filter. name also takes party_type, birth_date, country, id_number, threshold and limit; pep takes birth_date, country and limit. Percent-encode value as in any query string (+ is %2B).

The envelope

Every screen — PEP and country included — returns the same object:
  • value is what was screened. input is what you sent, reported only when the screen changed it (an ENS name resolved to an address).
  • sanctioned is true only for a match on a government sanctions list; flagged for any match. A PEP match sets flagged, never sanctioned.
  • Every match has the same fields. match is exact, partial or fuzzy (a scored name or PEP match). score is 0–100, and null for a partial identifier match, which is not scored. party is the listed party, when the list names one.
  • candidates holds PEP results that fell below OpenSanctions’ match threshold, for review; they are not matches. excluded counts name matches dropped because every listed birth date disagreed.
GET /search is one endpoint with two modes:
  • Without a token it is free and stores nothing. It is rate-limited per client IP and returns up to 25 results.
  • With an API token it costs one request and is written to your audit trail. It is rate-limited per organization and returns up to 50 results.
metered in the response says which mode ran. Results are ranked candidates (each with a 0–100 score), never a verdict.

IP

One call costs one request (v1 charges one each for /vpn and /geo). vpn is null when there is no privacy data for the address, and country_screen honours lists.

Errors

Errors are RFC 9457 problem details (application/problem+json), with v1’s error codes in code:
A 422 adds errors, one {field, detail} per invalid parameter. A quota 429 adds resets_at and upgrade_url. The x402 402 is unchanged: it is the x402 protocol’s challenge.

From v1

v2 has no whole-list downloads; the v1 ones are retired. The MCP tools switch to the v2 envelope on 26 February 2027, with 90 days’ notice.