Skip to content

Get firm AML exposure trend

Gap-free daily series of AML category exposure for a monitored firm over a date range, optionally filtered to one category and/or one flow direction. direction sets each row’s volumeUsd to that direction’s value (incoming + outgoing for ALL) and drops rows where it is 0; incomingUsd/outgoingUsd are always unfiltered. Days with no matching rows still appear in days, with an empty categories array, so the series never has date gaps. The range is capped at 92 days — a longer span returns 400. Categories are raw screening labels and overlap (Sanction is part of Sanctioned, Mixer of Mixing), so adding them counts the same volume more than once.

  • HTTP Method: GET
  • Endpoint Path: /organization/firms/{firmId}/aml/exposure
ParameterLocationTypeRequiredDescription
firmIdpathstringYesId of a firm your organization monitors.
fromquerystringNoStart of the range (UTC day), YYYY-MM-DD. Defaults to 30 days before to.
toquerystringNoEnd of the range (UTC day), YYYY-MM-DD. Defaults to yesterday (UTC).
categoryquerystringNoRestrict to a single AML category. See GET /aml/categories. Filtering by a parent category also returns rows tagged with any of its subcategories (e.g. category=SANCTION matches a row stored as OFAC), so a filtered response’s days[].categories can contain more than one distinct category value — and, since category volumes are not additive, those rows may overlap. Allowed: SANCTIONED, SANCTION, TERRORIST_FINANCING, CHILD_ABUSE, HACK, SCAM, RANSOMWARE, DARKWEB, MIXING, MIXER, LAUNDERING, ILLEGAL_ACTIVITY, NO_KYC_EXCHANGE, GAMBLING, BLOCKED, BLACKLISTED, UNREGISTERED_VASP, RISKY_ESCROW, CEFI, INFRA, DAPP, TOKEN, WALLET, ORGANIZATION, INDIVIDUAL, BOT, VICTIM.
directionquerystringNoALL sums incoming and outgoing into volumeUsd (default). IN or OUT restricts volumeUsd to that direction and drops rows where it is 0. Allowed: ALL, IN, OUT. Default: ALL.

Exposure trend retrieved successfully

FieldTypeDescription
firmIdstring
fromstring
tostring
directionstring
categorystringThe requested category filter, or null when unfiltered.
daysArray[AmlExposureDay]
days[].datestring
days[].categoriesArray[AmlExposureCategory]Category-level flow for the day. NOT additive — the same transfer can be counted under more than one category, including under both a parent category and one of its subcategories. A request filtered by a parent category also returns rows for any of its subcategories, so this array can still contain more than one distinct category value, and those rows may overlap.
days[].categories[].categorystringUsually a canonical category key from GET /aml/categories, but it can also be a raw vendor label — a subcategory (e.g. CEX under CEFI) or a value not yet mapped — so callers must not assume every value is a member of that list.
days[].categories[].incomingUsdnumber
days[].categories[].outgoingUsdnumber
days[].categories[].volumeUsdnumber
  • 400: The requested [from, to] range exceeds 92 days, or from/to is not a valid YYYY-MM-DD date.
  • 401: Missing or invalid API key
  • 403: The organization does not have access to this endpoint.
  • 404: Resource not found
  • 405: HTTP method not supported

Request

Terminal window
curl -X GET "https://api.compliance.certik.com/organization/firms/example-firm/aml/exposure" \
-H "X-API-Key: YOUR_API_KEY" \
-H "X-API-Secret: YOUR_API_SECRET"

Response

{
"firmId": "coinbase-ventures",
"from": "2026-07-12",
"to": "2026-08-10",
"direction": "ALL",
"category": null,
"days": [
{
"date": "2026-08-09",
"categories": [
{
"category": "HACK",
"incomingUsd": 0,
"outgoingUsd": 12000,
"volumeUsd": 12000
}
]
},
{
"date": "2026-08-10",
"categories": []
}
]
}