Get firm AML exposure trend
Summary
Section titled “Summary”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.
Request
Section titled “Request”- HTTP Method:
GET - Endpoint Path:
/organization/firms/{firmId}/aml/exposure
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
firmId | path | string | Yes | Id of a firm your organization monitors. |
from | query | string | No | Start of the range (UTC day), YYYY-MM-DD. Defaults to 30 days before to. |
to | query | string | No | End of the range (UTC day), YYYY-MM-DD. Defaults to yesterday (UTC). |
category | query | string | No | Restrict 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. |
direction | query | string | No | ALL 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. |
Response
Section titled “Response”Exposure trend retrieved successfully
| Field | Type | Description |
|---|---|---|
firmId | string | |
from | string | |
to | string | |
direction | string | |
category | string | The requested category filter, or null when unfiltered. |
days | Array[AmlExposureDay] | |
days[].date | string | |
days[].categories | Array[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[].category | string | Usually 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[].incomingUsd | number | |
days[].categories[].outgoingUsd | number | |
days[].categories[].volumeUsd | number |
400: The requested[from, to]range exceeds 92 days, orfrom/tois not a validYYYY-MM-DDdate.401: Missing or invalid API key403: The organization does not have access to this endpoint.404: Resource not found405: HTTP method not supported
Example Code
Section titled “Example Code”Request
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": [] } ]}