REST API v1

Sanctions Screening API

Integrate sanctions screening into your applications. Screen entities, set up continuous monitoring, and receive alerts via webhooks.

The SanctScan API screens a person, organization, vessel or aircraft against 9 official sanctions lists in one REST call and returns each match with its list, match score and the overall risk level. Monitors re-run the same search after every daily list import, and a signed webhook tells your system when the result changes. Requests authenticate with an x-api-key header and are limited to 60 per minute per key. API access starts on the Starter plan. The machine-readable spec is at /openapi.json.

Need an OFAC API? Every call checks OFAC's SDN list and the US Consolidated Screening List. To screen against OFAC only, turn the other lists off under Settings → Lists.

Quick Start

Get started with the SanctScan API in minutes
  1. 1. Get your API key

    Create an API key in your organization settings at Settings → API Keys. API keys are available on Starter and above.

  2. 2. Make your first request

    curl -X POST https://sanctscan.app/api/v1/screen \
      -H "Content-Type: application/json" \
      -H "x-api-key: your_api_key" \
      -d '{"name": "John Smith"}'

Authentication

All API requests require authentication using an API key. Include your API key in the x-api-key header.

curl -H "x-api-key: your_api_key" https://sanctscan.app/api/v1/screenings

Keep your API key secure

Never expose your API key in client-side code or public repositories. Use environment variables to store your key.

Base URL

https://sanctscan.app/api/v1

A machine-readable spec is available at /openapi.json (OpenAPI 3.1).

Endpoints

POST/screen

Screen an entity against all sanctions lists. Returns risk score, matched lists, and detailed match information.

Request Body

namestring (required)

The name of the entity to screen

entityTypestring

One of: 'person', 'business', 'organization', 'aircraft', 'vessel'. 'business' is treated as an alias of 'organization'. Any other value returns VALIDATION_ERROR.

countrystring

2-letter ISO 3166-1 alpha-2 country code (e.g. 'DE'). Other formats return VALIDATION_ERROR.

birthDatestring

Date of birth as YYYY-MM-DD. Other formats return VALIDATION_ERROR.

groupByClusterboolean

Collapse rows for the same party across sources into one match carrying every source it is listed on, in a `listings` array. Defaults to false, so existing integrations keep one result per source row.

referencestring (max 200 chars)

Your own note for this screening, such as a customer ID, case number or address. It is stored with the screening and returned on every read, and it is never used for matching. Put only the name in `name`: extra words there lower the match score.

Optional Headers

Idempotency-Keystring (max 255 chars)

Safely retry requests without double-billing or duplicate screening records. Replays of the same key within 24 hours return the original response with an 'Idempotency-Replayed: true' header.

Example Request

curl -X POST https://sanctscan.app/api/v1/screen \
  -H "Content-Type: application/json" \
  -H "x-api-key: your_api_key" \
  -d '{
    "name": "Viktor Sokolov",
    "entityType": "person",
    "country": "RU"
  }'

Response

{
  "success": true,
  "data": {
    "screeningId": "scr_abc123",
    "entityName": "Viktor Sokolov",
    "riskScore": 85,
    "riskLevel": "high",
    "matchedSources": ["us_ofac"],
    "matchDetails": [
      {
        "dataset": "us_ofac",
        "datasetLabel": "OFAC SDN",
        "matchScore": 92,
        "entity": {
          "id": "us_ofac:12345",
          "name": "Viktor SOKOLOV",
          "entityType": "person",
          "country": "Russia",
          "programs": ["RUSSIA-EO14024"],
          "listingDate": "2022-03-15"
        }
      }
    ],
    "isMonitored": false,
    "reference": "CRM-1042"
  }
}

GET/screenings

List all screenings for your organization with filtering and pagination.

Query Parameters

pagenumber

Page number (default: 1)

pageSizenumber

Results per page (default: 20, max: 100)

riskLevelstring

Filter by risk level: 'low', 'medium', or 'high'

dateFromstring

Filter screenings from this date (ISO format)

dateTostring

Filter screenings up to this date (ISO format)

searchstring

Search by entity name

Example Request

curl "https://sanctscan.app/api/v1/screenings?riskLevel=high&pageSize=10" \
  -H "x-api-key: your_api_key"

Response

{
  "success": true,
  "data": [
    {
      "id": "scr_abc123",
      "entityName": "Viktor Sokolov",
      "query": "Viktor Sokolov",
      "riskScore": 85,
      "riskLevel": "high",
      "matchedSources": ["us_ofac", "eu_csl"],
      "isMonitored": true,
      "reference": "CRM-1042",
      "timestamp": "2024-01-15T10:30:00Z"
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "pageSize": 10,
      "total": 42,
      "totalPages": 5
    }
  }
}

GET/screenings/:id

Fetch a single screening with full match details.

Example Request

curl https://sanctscan.app/api/v1/screenings/scr_abc123 \
  -H "x-api-key: your_api_key"

Response

{
  "success": true,
  "data": {
    "id": "scr_abc123",
    "entityName": "Viktor Sokolov",
    "query": "Viktor Sokolov",
    "riskScore": 85,
    "riskLevel": "high",
    "matchedSources": ["us_ofac"],
    "matchDetails": [ /* same shape as POST /screen */ ],
    "usedSources": ["us_ofac", "eu_csl", "uk_csl", "un_csl", "us_csl"],
    "isMonitored": true,
    "country": "RU",
    "birthDate": null,
    "reference": "CRM-1042",
    "timestamp": "2024-01-15T10:30:00Z"
  }
}

POST/monitors

Add an entity to continuous monitoring. You'll receive webhook notifications when the entity's sanctions status changes. Each search is monitored once: if a screening with the same name and filters (ignoring case and spacing) is already monitored, this returns 409 CONFLICT, and new screenings of that search come back with isMonitored: true.

Request Body

screeningIdstring (required)

The ID of a previous screening to monitor

riskThresholdnumber

Alert threshold for risk score changes (default: 55)

Example Request

curl -X POST https://sanctscan.app/api/v1/monitors \
  -H "Content-Type: application/json" \
  -H "x-api-key: your_api_key" \
  -d '{
    "screeningId": "scr_abc123",
    "riskThreshold": 50
  }'

Response

{
  "success": true,
  "data": {
    "id": "mon_xyz789",
    "screeningId": "scr_abc123",
    "isActive": true,
    "isNew": true
  }
}

GET/monitors

List your organization's monitors. A monitor's screeningId is the latest screening of its search: when a rescreen after a list update finds a different result, it is kept as a new screening and the monitor moves to it. Earlier screenings never change, so GET /screenings/{id} always returns what that screening found.

Query Parameters

pagenumber

Page number (default: 1)

pageSizenumber

Results per page (default: 20, max: 100)

Example Request

curl https://sanctscan.app/api/v1/monitors \
  -H "x-api-key: your_api_key"

Webhooks

Configure webhooks in your organization settings to receive a notification after each daily list import when a monitored entity's status changes.

Webhook Payload

When an alert is created or resolved, we send a POST request to your webhook URL.

{
  "event": "alert.created",
  "timestamp": "2024-01-15T14:30:00Z",
  "organization": {
    "id": "org_abc123",
    "slug": "acme-corp",
    "name": "Acme Corporation"
  },
  "alert": {
    "id": "alt_def456",
    "monitorId": "mon_xyz789",
    "entityName": "Viktor Sokolov",
    "reference": "CRM-1042",
    "oldRiskScore": 45,
    "newRiskScore": 85,
    "oldRiskLevel": "medium",
    "newRiskLevel": "high",
    "oldSources": [],
    "newSources": ["us_ofac"],
    "newlyListedParties": [
      {
        "id": "us_ofac:12345",
        "name": "Viktor SOKOLOV",
        "score": 85,
        "sources": ["us_ofac"]
      }
    ],
    "timestamp": "2024-01-15T14:30:00Z",
    "resolvedAt": null,
    "outcome": null
  }
}

alert.reference is the reference saved with the monitored screening, such as your customer or case ID, or null when it has none.

Every request carries X-SanctScan-Event, X-SanctScan-Delivery (stable across retries, use it to drop duplicates) and X-SanctScan-Signature: sha256= followed by the hex HMAC-SHA256 of the raw body, keyed with your webhook secret. Test sends add X-SanctScan-Test: true.

A delivery that does not get a 2xx response within 10 seconds is retried after 1 minute, 5 minutes, 15 minutes, 1 hour and 4 hours. A webhook that fails 10 times in a row is paused.

Webhook Events

alert.created
When a rescreen changes a monitored entity's risk level, crosses its threshold, finds it on a new list, or finds a listed party at or above its threshold that it didn't match before and nobody has decided yet; alert.newlyListedParties names those parties
alert.resolved
When an alert closes: a user decided the matches it raised, or acknowledged a change that left nothing to decide. alert.outcome is confirmed_match if any of its matches was confirmed, false_positive if they were cleared, and null when none is still listed; it is null on alert.created. alert.closing says how it closed: matches_decided, acknowledged, or alert_decided for alerts closed before November 2026; it is null while the alert is open. The analyst's notes stay in SanctScan.

Rate Limits & Request IDs

Each API key may make up to 60 requests per minute. Every response includes rate-limit headers and a unique request ID. Quote the request ID when contacting support.

X-Request-Id: req_V1StGXR8_Z5jdHi6
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 57
X-RateLimit-Reset: 1784755720

Exceeding the limit returns 429 RATE_LIMITED with a Retry-After header (seconds).

Error Codes

All errors follow a consistent format with a code and message.
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Name is required"
  }
}

When SanctScan's rules refuse a request, rather than its shape, the error also names the reason. Branch on it, not on the message, which is English prose and may change.

{
  "success": false,
  "error": {
    "code": "CONFLICT",
    "reason": "monitor_already_active",
    "message": "This search is already being monitored"
  }
}

Reasons: screening_limit_reached, monitor_already_active, monitor_already_inactive, monitor_limit_reached, monitor_of_another_search, risk_threshold_out_of_range, invitation_not_found, invitation_expired, invitation_withdrawn, invitation_already_accepted, invitation_account_exists, invitation_for_another_account, invitation_team_full, sign_up_failed, team_member_limit_reached, role_not_assignable, member_not_manageable, invitation_not_cancelable, invitation_already_open, already_a_member, batch_row_limit_exceeded, batch_not_found, feature_not_available, not_found, alert_already_closed, alert_has_undecided_matches, decision_note_required, match_not_on_screening, screening_of_another_party, name_not_screenable, name_not_conclusive, name_too_long, screening_reference_too_long, screening_query_empty, batch_row_not_stuck, language_not_supported, slug_reserved, organization_slug_invalid, organization_name_empty, checkout_needed, checkout_not_needed, no_list_enabled, webhook_url_not_https, webhook_without_events, webhook_not_paused, too_many_alert_recipients, alert_recipient_invalid, subscription_transition_invalid, lists_unavailable, row_not_screened.

CodeStatusDescription
UNAUTHORIZED401Missing x-api-key header
INVALID_API_KEY401Invalid, revoked or expired API key
FORBIDDEN403The key's owner is no longer a member of its organization
BAD_REQUEST400The request body is not valid JSON
VALIDATION_ERROR400Invalid request parameters; the message names the field
NOT_FOUND404Resource not found
CONFLICT409This search is already being monitored
TIER_LIMIT_EXCEEDED403Monthly quota exceeded
RATE_LIMITED429Rate limit exceeded. Respect the Retry-After header.
FEATURE_NOT_AVAILABLE403API access requires the Starter tier or above
INTERNAL_ERROR500Server error
LISTS_UNAVAILABLE503The sanctions lists can't be reached right now; retry later

Public List Data (No Key)

Two read-only endpoints serve the state of the 9 lists without an API key, on any plan: when each list was last imported and which entries were added or removed. They allow cross-origin requests, are cached for 5 minutes, and are licensed CC BY 4.0. They power the list tracker on /lists.

List status

GET https://scraper.sanctscan.app/lists/status

Per list: entry count, last successful import, the publisher's file date, and entries added and removed in the last 7 and 30 days.

List changes

GET https://scraper.sanctscan.app/lists/changes?days=30&source=us_ofac&format=csv

Entries added to or removed from the lists. days defaults to 30 and is capped at 90, source takes a Source ID from the table below, and format=csv returns CSV instead of JSON.

Supported Sanctions Lists

We screen against the following major sanctions lists, updated daily.
Source IDNameRegion
us_ofacOFAC Specially Designated Nationals and Blocked Persons ListUS
us_cslUS Consolidated Screening ListUS
eu_cslEU Consolidated Financial Sanctions ListEU
uk_cslUK Sanctions ListUK
un_cslUN Security Council Consolidated ListGlobal
au_dfatAustralia DFAT Consolidated ListAU
ch_secoSwiss SECO Consolidated Sanctions ListCH
ca_gacConsolidated Canadian Autonomous Sanctions ListCA
jp_mofJapan Ministry of Finance Economic Sanctions ListJP

Ready to integrate?

API access starts on the Starter plan. Upgrade from any account and create a key in settings.

We use cookies to measure site traffic. Accept or decline non-essential cookies.