Parse, detect fraud, verify income — single REST API. Clean endpoints. Predictable responses.
curl -X POST https://api.clearstaq.com/v1/parse \ -H "Authorization: Bearer cs_live_..." \ -F "[email protected]" \ -F "include_fraud=true" \ -F "include_income=true"
Your language. Your framework. Our data.
Three steps. That's it.
export CLEARSTAQ_API_KEY="cs_live_your_key_here"
from clearstaq import ClearStaq
client = ClearStaq()
result = client.parse(
file="statement.pdf",
include_fraud=True,
include_income=True
)for transaction in result.transactions:
print(f"{transaction.date}: {transaction.amount}")
print(f"Fraud score: {result.fraud_score}")
print(f"Monthly income: ${result.income.monthly_avg}")Five endpoints cover everything you need.
/v1/parse/v1/documents/{id}/v1/documents/v1/batch/v1/banksReal-time notifications when documents are processed. Push, don't pull.
document.parsedDocument successfully parseddocument.failedParsing failed with errordocument.fraud_detectedHigh fraud score detectedbatch.completedAll batch documents processed{
"event": "document.parsed",
"timestamp": "2025-01-15T14:30:00Z",
"data": {
"document_id": "doc_8x7Kp2mN",
"status": "completed",
"bank": "Chase",
"transaction_count": 47,
"fraud_score": 0.12,
"processing_time_ms": 3200
},
"signature": "sha256=a1b2c3..."
}Official SDKs with TypeScript types, auto-retry, and streaming uploads.
pip install clearstaqfrom clearstaq import ClearStaq
client = ClearStaq()
result = client.parse("statement.pdf")npm install @clearstaq/sdkimport { ClearStaq } from '@clearstaq/sdk'
const client = new ClearStaq()
const result = await client.parse('statement.pdf')go get github.com/clearstaq/goimport "github.com/clearstaq/go"
client := clearstaq.New()
result, _ := client.Parse("statement.pdf")cs_live_Live keys
Production API access
cs_test_Test keys
Sandbox environment
Enterprise: IP allowlisting available