Skip to content

Examples

All names, numbers and IDs below are fictional and come from the examples in the OpenAPI contract. Every request needs Authorization: Bearer $SANCTIONARY_KEY.

Use the person recipe (sanctions and peps). This variant limits sanctions to two named lists and opts in to former PEPs:

Terminal window
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.

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.

Terminal window
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"].

An IMO that uniquely identifies a vessel can qualify a candidate by number alone, without a name. Give the flag if you know it:

Terminal window
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.

Search one domain by text, then read the entity and its links.

Terminal window
# 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.

Terminal window
# 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.

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:

Terminal window
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.