# AML Monitoring Thresholds & Deadlines API > CTR cash aggregation, structuring heuristics, rapid pass-through detection, and US SAR / UK POCA DAML deadline calendars on caller-supplied transaction and date inputs. Each paid operation uses a fixed USDC price on Base with the x402 exact scheme. Unpaid GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result. HTTP 4xx/5xx are not charged. Coverage bodies with status complete, partial, or failed all return HTTP 200 and are charged at the full listed price. Settled 2xx responses include a payment-response header; 4xx/5xx do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/aml-monitoring - Docs: https://www.brainiac.software/api/aml-monitoring/docs - OpenAPI: https://www.brainiac.software/api/aml-monitoring/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/aml-monitoring/ctr-aggregate $0.03 USDC. Aggregate cash-in and cash-out per person per US business day and list totals that trigger a Currency Transaction Report. Inputs: transactions, businessDays?, regime?, threshold?, nearRatio? Docs: https://www.brainiac.software/api/aml-monitoring/docs#aml-monitoring-ctr-aggregate Example request: ```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" } ] } ``` Example response: ```json { "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.", "…" ] } ``` ### POST /api/v1/aml-monitoring/structuring-detect $0.03 USDC. Flag repeated just-below-threshold cash deposits as a structuring heuristic for analyst review. Inputs: transactions, params? Docs: https://www.brainiac.software/api/aml-monitoring/docs#aml-monitoring-structuring-detect Example request: ```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" } ] } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/aml-monitoring/rapid-movement-detect $0.03 USDC. Detect credits quickly followed by similar-sized debits as a money-mule pass-through indicator on caller data. Inputs: accountId, transactions, params? Docs: https://www.brainiac.software/api/aml-monitoring/docs#aml-monitoring-rapid-movement-detect Example request: ```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" } ] } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/aml-monitoring/sar-deadline $0.02 USDC. Compute US bank SAR filing deadlines or UK POCA s.335 notice and moratorium periods from vendored holiday calendars. Inputs: regime, initialDetection, suspectIdentified Docs: https://www.brainiac.software/api/aml-monitoring/docs#aml-monitoring-sar-deadline Example request: ```json { "regime": "US_BANK_SAR", "initialDetection": "2026-11-02", "suspectIdentified": false } ``` Example response: ```json { "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." ] } ```