Start detecting financial crime
in minutes.
The CaseForge SDK wraps the CaseForge REST API into idiomatic Python and Node.js libraries. Create cases, screen transactions, file SARs, and manage watchlists โ without writing raw HTTP calls.
What you can do with the SDK
The CaseForge SDK covers the full AML case management lifecycle. You can automate high-volume transaction screening, integrate SAR filing into existing compliance workflows, and build real-time alerting on top of the CaseForge rules engine โ all from your own application code.
Supported languages
| Language | Package | Min version | Status |
|---|---|---|---|
| Python | caseforge-sdk | Python 3.9+ | Stable |
| Node.js | @caseforge/sdk | Node.js 18+ | Stable |
| Java | com.caseforge:sdk | Java 11+ (JDK) | Beta |
| cURL | โ | Any | REST reference |
Installation
Install the SDK for your language using your standard package manager. No additional system dependencies are required.
pip install caseforge-sdk
npm install @caseforge/sdk
<dependency>
<groupId>com.caseforge</groupId>
<artifactId>sdk</artifactId>
<version>2.0.0</version>
</dependency>
Your first API call
The following example authenticates with an API key and creates a new AML case. See the Quickstart for a fully annotated walkthrough.
import caseforge
client = caseforge.Client(api_key="cf_live_...")
case = client.cases.create(
subject_id="cust_7a2b4c",
case_type="transaction_monitoring",
priority="high",
summary="Structuring pattern detected โ 12 transactions below $10k threshold",
)
print(case.id) # case_9x4m1z
print(case.status) # open
import CaseForge from '@caseforge/sdk';
const client = new CaseForge({ apiKey: 'cf_live_...' });
const aCase = await client.cases.create({
subjectId: 'cust_7a2b4c',
caseType: 'transaction_monitoring',
priority: 'high',
summary: 'Structuring pattern detected โ 12 transactions below $10k threshold',
});
console.log(aCase.id); // case_9x4m1z
console.log(aCase.status); // open
curl -X POST https://api.caseforge.io/v2/cases \
-H "Authorization: Bearer cf_live_..." \
-H "Content-Type: application/json" \
-d '{
"subject_id": "cust_7a2b4c",
"case_type": "transaction_monitoring",
"priority": "high",
"summary": "Structuring pattern detected โ 12 transactions below $10k threshold"
}'
Core concepts
| Concept | Description |
|---|---|
| Cases | The primary unit of investigation. A case links a subject, a set of transactions or events, attached evidence, and a resolution outcome. |
| Subjects | The entity under investigation โ a customer, business, or account. A subject can be linked to multiple cases across product lines. |
| SARs | Suspicious Activity Reports. The SDK provides structured SAR creation that maps fields directly to FinCEN Form 111 requirements. |
| Alerts | System-generated signals from the CaseForge rules engine. An alert can spawn a case automatically or queue for analyst review. |
| Watchlists | Curated lists of entities with elevated risk classifications. You can screen new subjects and transactions against watchlists in real time. |
This SDK targets the CaseForge REST API v2. The base URL for all requests is https://api.caseforge.io/v2/. The v1 API is deprecated and will reach end-of-life on December 31, 2026. See the migration guide to upgrade.