POST
https://www.brainiac.software/api/v1/aml-monitoring/ctr-aggregate$0.03 USDCCTR cash aggregation
Aggregate cash-in and cash-out per person per US business day and list totals that trigger a Currency Transaction Report.
Body
| Field | Required | Notes |
|---|---|---|
transactions | Yes | array; Array |
businessDays | No | object; Default: {"calendar":"US_FED"}; Object |
regime | No | string; One of: US_CTR, custom; Default: "US_CTR" |
threshold | No | integer |
nearRatio | No | number; Default: 0.8 |
Request exampleJSON
{
"transactions": [
{
"id": "t1",
"personIds": [
"P1"
],
"direction": "in",
"amount": 600000,
"currency": "USD",
"postedDate": "2026-11-13"
},
{
"id": "t2",
"personIds": [
"P1"
],
"direction": "in",
"amount": 400001,
"currency": "USD",
"postedDate": "2026-11-13"
}
]
}Response exampleJSON
{
"reportable": [
{
"personId": "P1",
"businessDay": "2026-11-13",
"direction": "in",
"total": 1000001,
"transactionIds": [
"t1",
"t2"
]
}
],
"nearThreshold": [],
"threshold": 1000000,
"sources": [
{
"source": "31 CFR 1010.311 / 1010.313",
"url": "https://www.ecfr.gov/current/title-31/subtitle-B/chapter-X/part-1010/subpart-C/section-1010.311",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Aggregation uses only the person links the caller supplies (1010.313 requires knowledge).",
"Cash-in and cash-out are not netted.",
"…"
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/aml-monitoring/ctr-aggregate" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"transactions": [
{
"id": "t1",
"personIds": [
"P1"
],
"direction": "in",
"amount": 600000,
"currency": "USD",
"postedDate": "2026-11-13"
},
{
"id": "t2",
"personIds": [
"P1"
],
"direction": "in",
"amount": 400001,
"currency": "USD",
"postedDate": "2026-11-13"
}
]
}
JSONPOST
https://www.brainiac.software/api/v1/aml-monitoring/structuring-detect$0.03 USDCCash structuring heuristic
Flag repeated just-below-threshold cash deposits as a structuring heuristic for analyst review.
Body
| Field | Required | Notes |
|---|---|---|
transactions | Yes | array; Array |
params | No | object; Default: {"windowDays":7,"lowerRatio":0.8,"minCount":3,"minTotalRatio":1}; Object |
Request exampleJSON
{
"transactions": [
{
"id": "a",
"personIds": [
"P1"
],
"direction": "in",
"amount": 950000,
"currency": "USD",
"postedDate": "2026-11-02"
},
{
"id": "b",
"personIds": [
"P1"
],
"direction": "in",
"amount": 950000,
"currency": "USD",
"postedDate": "2026-11-04"
},
{
"id": "c",
"personIds": [
"P1"
],
"direction": "in",
"amount": 950000,
"currency": "USD",
"postedDate": "2026-11-06"
}
]
}Response exampleJSON
{
"alerts": [
{
"personId": "P1",
"windowStart": "2026-11-02",
"windowEnd": "2026-11-08",
"count": 3,
"total": 2850000,
"transactionIds": [
"a",
"b",
"…"
],
"pattern": "repeated_just_below_threshold",
"noCtrTriggered": true
}
],
"params": {
"windowDays": 7,
"lowerRatio": 0.8,
"minCount": 3,
"minTotalRatio": 1
},
"sources": [
{
"source": "31 U.S.C. 5324 / 31 CFR 1010.311",
"url": "https://www.law.cornell.edu/uscode/text/31/5324",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Heuristic for review; structuring requires intent (31 U.S.C. 5324).",
"Not legal advice. Outputs are lookups or prechecks for human review."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/aml-monitoring/structuring-detect" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"transactions": [
{
"id": "a",
"personIds": [
"P1"
],
"direction": "in",
"amount": 950000,
"currency": "USD",
"postedDate": "2026-11-02"
},
{
"id": "b",
"personIds": [
"P1"
],
"direction": "in",
"amount": 950000,
"currency": "USD",
"postedDate": "2026-11-04"
},
{
"id": "c",
"personIds": [
"P1"
],
"direction": "in",
"amount": 950000,
"currency": "USD",
"postedDate": "2026-11-06"
}
]
}
JSONPOST
https://www.brainiac.software/api/v1/aml-monitoring/rapid-movement-detect$0.03 USDCRapid pass-through detection
Detect credits quickly followed by similar-sized debits as a money-mule pass-through indicator on caller data.
Body
| Field | Required | Notes |
|---|---|---|
accountId | Yes | string |
transactions | Yes | array; Array |
params | No | object; Default: {"maxHours":48,"minOutRatio":0.9,"minAmount":100000}; Object |
Request exampleJSON
{
"accountId": "A1",
"transactions": [
{
"id": "c1",
"direction": "in",
"amount": 500000,
"at": "2026-11-10T09:00:00Z"
},
{
"id": "d1",
"direction": "out",
"amount": 300000,
"at": "2026-11-10T12:00:00Z"
},
{
"id": "d2",
"direction": "out",
"amount": 170000,
"at": "2026-11-11T05:30:00Z"
}
]
}Response exampleJSON
{
"accountId": "A1",
"matches": [
{
"creditId": "c1",
"debitIds": [
"d1",
"d2"
],
"creditAmount": 500000,
"debitTotal": 470000,
"ratio": 0.94,
"hoursToExit": 20.5
}
],
"summary": {
"credits": 1,
"matched": 1,
"passThroughRatio": 0.94
},
"params": {
"maxHours": 48,
"minOutRatio": 0.9,
"minAmount": 100000
},
"sources": [
{
"source": "Caller-supplied ledger pass-through heuristic",
"url": "https://www.brainiac.software",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Indicator only.",
"Not legal advice. Outputs are lookups or prechecks for human review."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/aml-monitoring/rapid-movement-detect" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"accountId": "A1",
"transactions": [
{
"id": "c1",
"direction": "in",
"amount": 500000,
"at": "2026-11-10T09:00:00Z"
},
{
"id": "d1",
"direction": "out",
"amount": 300000,
"at": "2026-11-10T12:00:00Z"
},
{
"id": "d2",
"direction": "out",
"amount": 170000,
"at": "2026-11-11T05:30:00Z"
}
]
}
JSONPOST
https://www.brainiac.software/api/v1/aml-monitoring/sar-deadline$0.02 USDCSAR / DAML deadline calendar
Compute US bank SAR filing deadlines or UK POCA s.335 notice and moratorium periods from vendored holiday calendars.
Body
Send the JSON body shown in the request example.
Request exampleJSON
{
"regime": "US_BANK_SAR",
"initialDetection": "2026-11-02",
"suspectIdentified": false
}Response exampleJSON
{
"deadline": "2026-12-02",
"extendedDeadline": "2027-01-01",
"maxDeadline": "2027-01-01",
"reportingThresholdInfo": 500000,
"sources": [
{
"source": "31 CFR 1020.320(b)(3)",
"url": "https://www.ecfr.gov/current/title-31/subtitle-B/chapter-X/part-1020/subpart-C/section-1020.320",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"US bank SAR filing deadline computation only; does not assess whether a SAR is required.",
"Not legal advice. Outputs are lookups or prechecks for human review."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/aml-monitoring/sar-deadline" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"regime": "US_BANK_SAR",
"initialDetection": "2026-11-02",
"suspectIdentified": false
}
JSON