Official client libraries for the FlowAI API — TypeScript-native and fully typed in both languages. MIT licensed, GitHub CI, copy-paste ready.
Node.js · TypeScript · v0.1.0
Quickstart
import { FlowAI } from '@flowai/node';
const client = new FlowAI({
apiKey: process.env.FLOWAI_API_KEY
});
const decision = await client.triage({
applicant_name: 'Jane Doe',
nationality: 'US',
id_document: '<base64>',
});
console.log(decision.decision); // APPROVE | ESCALATE | REJECT
console.log(decision.risk_score); // 0–100
Python 3.9–3.12 · requests + httpx · v0.1.0
Quickstart
from flowai import FlowAI, KYCCase
client = FlowAI(api_key="flw_test_...")
decision = client.triage(KYCCase(
applicant_name="Jane Doe",
nationality="US",
id_document="<base64>",
))
print(decision.decision) # APPROVE | ESCALATE | REJECT
print(decision.risk_score) # 0–100
npm install github:pedro-santiago/flowai-nodepip install git+https://github.com/pedro-santiago/flowai-python.git| Feature | @flowai/node | flowai (Python) |
|---|---|---|
| triage() | ✓ | ✓ |
| bulkTriage() / bulk_triage() | ✓ | ✓ |
| verifyWebhook() / verify_webhook() | ✓ | ✓ |
| Async variant | — native async/await | ✓ flowai.aio (httpx) |
| Full TypeScript / type hints | ✓ | ✓ |
| Error classes (RateLimit, Auth) | ✓ | ✓ |
| Examples (basic, bulk CSV, webhook) | ✓ | ✓ |
| GitHub Actions CI | ✓ Node 18/20/22 | ✓ Python 3.9–3.12 |
| MIT License + CODEOWNERS | ✓ | ✓ |
| Ruby / Go / Java SDKs | — | — roadmap |
Get a free sandbox key — 50 triage calls/day, no card required.