ClearStaq
ClearStaq
Log inBook a DemoGet started

Plans from $99/month. True revenue, positions, and 27 fraud signals included.

Integrations

API & Webhooks

Everything the dashboard does, the REST API does too: submit statements, retrieve full analyses, and receive webhook callbacks the moment processing finishes. One endpoint in, structured JSON out.

API keys

Manage keys under Settings → Integrations → API & webhooks → API keys (Create API key):

API keys

  • Keys are prefixed cg_live_… and shown once at creation, so store them in your secrets manager.
  • Each key shows created and last used timestamps, so stale keys are easy to spot.
  • Revoke any key instantly; create as many named keys as you need (one per environment/integration is good practice).
  • Requests are limited to 120 per minute per key. Every /api/v1 response carries RateLimit-* headers, and a 429 carries Retry-After.
  • Test keys (cg_test_…) for the sandbox are created on the same page, under Sandbox (test) keys.

Submitting a statement

Every document belongs to a business (the merchant): create the business once with POST /api/v1/businesses, then send each of its documents to POST /api/v1/analyses with its business_id. A document sent without business_id returns 400 business_id_required, before anything is stored or billed.

The required document_kind field identifies the document: bank_statement, tax_return, or application_form. A missing or unknown value returns 400 invalid_document_kind.

Send one document to POST /api/v1/analyses. Add a callback_url to receive its result as a signed webhook:

curl -X POST https://app.clearstaq.com/api/v1/analyses \
  -H "Authorization: Bearer cg_live_YOUR_KEY" \
  -F "[email protected]" \
  -F "document_kind=bank_statement" \
  -F "business_id=<business_id>" \
  -F "callback_url=https://yourapp.com/webhooks/clearstaq" \
  -F "client_ref=deal-4821" \
  -F 'metadata={"loan_id":"LN-999"}' \
  -F "clearstaq_ai_enabled=true"

The endpoint returns 202 Accepted with an analysis id and the business's submission that received the document; the full result arrives asynchronously at your callback_url. clearstaq_ai_enabled opts that submission into the ClearStaqAI visual fraud second-pass (defaults to off; the metadata fraud score always runs). Maximum upload size 25 MB, application/pdf only.

Full request parameters, response schemas, and runnable cURL/Node/Python examples live in the API Reference.

Several statements for one merchant

When a merchant sends you 3 or 4 months of statements, file them under the merchant's business. You get each statement's own analysis and one total for the merchant (revenue, expenses, balances, negative days, MCA positions).

1. Create the business once

curl -X POST https://app.clearstaq.com/api/v1/businesses \
  -H "Authorization: Bearer cg_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"legal_name":"Acme LLC","ein":"12-3456789"}'

It answers 201 with the business's id and its open_submission (#1). Keep the id. An EIN you already have returns 409 business_exists with that business's business_id: use it. GET /api/v1/businesses?search= finds a business you created earlier.

2. Send each statement with its business_id

Send the statements one request each, as in Submitting a statement, all with the same business_id. They are filed into the business's open submission, and every response carries it:

{
  "id": "d1...",
  "status": "queued",
  "created_at": "2026-11-20T12:00:00.000Z",
  "is_duplicate": false,
  "submission": { "client_id": "8f1c...", "number": 1, "created": false },
  "...": "..."
}

Keep each id and the submission.client_id.

3. Get the total

Poll GET /api/v1/clients/{client_id} with the submission.client_id: it returns the merchant's total (profile), the list of documents with each one's status and failure reason, and counts. The total is ready when counts.completed + counts.failed equals counts.total and profile is not null.

To combine an exact set of statements instead (several accounts, or statements you uploaded earlier), send their ids to POST /api/v1/analyses/consolidate. They must belong to one business.

What the total contains (the profile object; every field is in the OpenAPI spec under ClientProfileRollup):

FieldMeaning
avg_monthly_revenue, annual_revenueDeposits, after subtracting transfers between the merchant's own accounts
avg_monthly_true_revenue, true_revenue_totalTrue revenue: deposits without transfers, ATM deposits, MCA and non-traditional-loan proceeds, interest, rewards redemptions and account-verification deposits
avg_monthly_expenses, monthly_profitWithdrawals (after the same subtraction), and deposits minus withdrawals
monthly_balanceAverage of the statements' average daily balances
total_days_negativeBusiness days on which the merchant's combined end-of-day balance was negative
nsf_count, deposit_count, month_countNSF items, deposits and months in the statements
mca_summaryMCA positions: one entry per lender (payments, fundings, frequency), monthly debt service, debt-to-revenue ratio and stacking risk
revenue_sources, payroll_intelligence, transfer_intelligenceDeposits by payer, payroll runs, and transfers between the merchant's own accounts
_metaHow it was computed: the statements counted, the window and the annualization method

The total counts each statement once and leaves out a statement your team excluded from the analysis. Where two consecutive statements end more than 90 days apart, the older one and every statement before it are left out. It has no fraud score: each statement's fraud result is in its own analysis, and the merchant's fraud risk is analysis.fraud of GET /api/v1/clients/{id}/open-banking.

4. Get each statement's full analysis

Each document's analysis (bank, period, balances, transactions, MCA payments, fraud) comes from any of:

  • Its callback_url, when the upload carried one.
  • An analysis.completed subscription (and analysis.failed for failures), created with POST /api/v1/webhooks. analysis.completed needs included_phases, for example ["parse","metadata_fraud"]. It sends one event per document; its bank_statement_id is the id you kept. It hears every document of your organization, whatever channel it came in through (API, web upload, email, Salesforce), so match on the ids you sent.
  • Polling GET /api/v1/analyses/{id} with each id.

A subscription's analysis.completed is not the same shape as a callback_url delivery: it carries subscription_id, bank_statement_id and phases, and its fraud result is in result.metadata_fraud when that phase is subscribed.

In GET responses and both webhook delivery modes, result.transactions is ordered by date, oldest first. Within each date, rows follow their position on the printed statement (sequence, ascending). Rows without a sequence come after sequenced rows on the same date. The internal transaction ID (ascending) breaks ties. The result.mca_payments and result.mca_fundings arrays follow the same order.

Businesses & submissions

A business is a company your organization works with (legal name, DBA, EIN, address, industry). Its documents are grouped into submissions, numbered #1, #2, and so on:

  • A business has at most one open submission at a time, and new documents go into it.
  • When your team marks that submission funded or lost in the webapp, it stops receiving documents. The next document for the business opens the next number.

A submission is a client. Every submission has a client_id, and the client endpoints (GET /api/v1/clients/{id} for the aggregated profile, GET /api/v1/clients/{id}/open-banking for the open-banking envelope) work on it, including clients created earlier by POST /api/v1/clients. That endpoint, which created a client without a business, was removed in November 2026 and answers 410 endpoint_removed: create the business and send each document with its business_id instead.

EndpointScopeWhat it does
GET /api/v1/businessesanalyses:readLists your businesses, newest first, with each one's open submission and number of submissions. Supports page, per_page (up to 100), and search (legal name or DBA).
POST /api/v1/businessesanalyses:writeCreates a business and its submission #1. An EIN you already have returns 409 business_exists; without an EIN, the same name and address returns 409 possible_duplicate (retry with ?force=true to create it anyway).
GET /api/v1/businesses/{id}/submissionsanalyses:readLists every submission of a business, newest first, with its number, client_id, status, and source.
GET /api/v1/people/{id}analyses:readReturns an owner or officer with the businesses they are linked to.
POST /api/v1/analysesanalyses:writeTakes the required business_id. Files the document into the business's open submission, or opens the next one when none is open. The response carries submission with client_id, number, and created.

To send documents for a business you already have, find its id with GET /api/v1/businesses and pass it as business_id:

curl -X POST https://app.clearstaq.com/api/v1/analyses \
  -H "Authorization: Bearer cg_live_YOUR_KEY" \
  -F "[email protected]" \
  -F "document_kind=bank_statement" \
  -F "business_id=<business_id>"

An unknown business_id, or one from another organization, returns 404 business_not_found before anything is stored or billed. A key only ever sees its own organization: businesses and people of other organizations answer 404, like ids that do not exist. The full EIN is never returned, only its last four digits.

Consolidate saved statements

Send 1 to 25 completed bank statement IDs in analysis_ids to POST /api/v1/analyses/consolidate. Use the IDs returned by the original uploads and a key with the analyses:read scope.

The response calculates a separate report for just those statements: the accounts they belong to, one combined row per calendar month across accounts, internal transfers between the accounts, grouped MCA activity, combined balances and the source documents. Upload new statements once and combine their IDs with the saved IDs for the period you want. The request uses no analysis credits and leaves the existing client profile intact.

  • One business. Two or more IDs must all belong to the same business of your organization: upload the statements with business_id. Otherwise the request is refused with same_business_required, listing the statements without a business (unassigned_analysis_ids) and the IDs of each business (businesses). One ID needs no business. IDs of another organization answer 404, like IDs that do not exist.
  • Itemized and printed figures. Gross deposits, deposit counts and withdrawals are the sums of each statement's itemized transactions. Each entry of documents shows them beside the totals printed on the statement and says whether they match (reconciled); profile.reconciled is true when every statement matches. A statement that does not match is still consolidated from its transactions, as its own result is delivered with a warning. A request with one ID returns that statement's total true revenue, and its printed totals when reconciled is true. Monthly rows follow the calendar month of each transaction, so a statement that spans two calendar months can split its true revenue across them differently from its own monthly_summary; the totals are the same. A calendar month that no selected statement covers is left out.
  • Withheld true revenue. True revenue uses the same classification as each statement's own true_revenue and monthly_summary. When a statement's own analysis withheld true revenue (suspected tampering, or figures it could not trust), every month that statement touches has a null true_revenue, and so do the totals and averages that include it. The document says why (true_revenue_withheld_reason) and which months (true_revenue_withheld_months).
  • Internal transfers. A transaction whose description or counterparty names another selected account, and the same-amount transaction on that account it pairs with within 3 days, is an internal transfer whatever its category (advances and loans never are). Internal transfers are left out of true revenue, gross deposits and withdrawals, and reported as internal_transfer_in and internal_transfer_out.
  • Complete months. Totals cover every selected statement. avg_monthly_true_revenue and avg_monthly_gross_deposits are the mean of the complete months only: calendar months every selected account covers from the first to the last day (complete and coverage on each month, complete_month_count in the profile). For three complete months, select statements that cover those months in every account; statements that run mid-month to mid-month need one more statement per account.
  • Balances. Combined balances add the accounts' closing balances per day, on the days every selected account covers (balance_window_start to balance_window_end). Both the calendar-day and the business-day average are returned.

All statements must use one currency and have a statement period. Statements of one account may share their boundary day (a transaction both list counts once), but not overlap further, and must cover every business day between them: a gap of weekends and US federal holidays only is accepted. Two statements are the same account when their account numbers agree and their banks do not differ; when an account number is missing and the statements cannot be told apart, the request is refused with ambiguous_accounts: enter the account number on the statement in the ClearStaq app, or consolidate them separately. A statement that covers several accounts cannot be combined with a statement of one of those accounts for the same days (multi_account_statement_overlap), because its transactions would count twice: select one or the other for those days. Every refusal lists the IDs from your request that caused it.

Webhook events

ClearStaq sends webhooks two ways:

  • callback_url: only POST /api/v1/analyses takes one, and only with an API key (an OAuth token gets 400 callback_url_not_supported). That document's result is POSTed to it when the document finishes. It is signed with the API key's webhook secret (whsec_…, shown when the key is created).
  • Subscriptions: POST /api/v1/webhooks with an event_type and a target_url (HTTPS). A subscription hears the event across your organization (an API key's application events: only the applications that key created), from the moment it is created, and is signed with its own secret, returned once when you create it. Creating a subscription needs a paid plan: on the Free plan POST /api/v1/webhooks answers 402 plan_excluded.
EventSent toWhenPayload includes
analysis.completedcallback_url or subscriptionA statement was analyzedanalysis ID, bank, period, balances, true revenue, transactions, MCA payments and fundings; fraud score (callback_url) or the subscribed fraud phases (subscription)
analysis.failedcallback_url or subscriptionA document could not be analyzed (unreadable PDF, unsupported bank, internal error); for subscriptions, also a fraud check that failederror code + human-readable reason
batch.completedsubscription (retired)Only for requests to the removed POST /api/v1/clients, so no new uploads send it. New subscriptions get 400 event_type_retired; existing ones keep working. Use analysis.completed and the submission's total insteadbatch_id, client_id, document counts, the merchant's total (profile)
tax_return.extractedcallback_url or subscriptionA tax return was extractedone item per return or form (see below)
application_form.extractedcallback_url or subscriptionAn application form was extractedthe form's fields (see below)
submission.completedsubscriptionAvailable when the client portal launches: every owner signed and the application PDF was generatedidentifiers and status only
application.created, application.signed, application.funded, application.lostsubscription (Deal-flow add-on)An application's status changedidentifiers, numbers, statuses and amounts
partner_send.status_changed, partner_offer.receivedendpoints added in Settings › Integrations › API & webhooks (Deal-flow add-on)A partner send changed status or an offer arrivedidentifiers, statuses and the offer

In analysis.failed (and in GET /api/v1/analyses/{id} for a failed document), branch on error.code: parser_error, invalid_pdf, INSUFFICIENT_CREDITS, parser_timeout, result_not_saved, tax_returns_disabled_after_submission or application_forms_disabled_after_submission. error.message is a sentence to show people (for example "This is not a bank statement (Tax return)."), and its wording can change.

A tax return with no extracted rows is sent to its callback_url as analysis.completed instead (a tax_return.extracted subscription gets data: []). The application and partner events are described in the API Reference.

Tax return and application form fields

tax_return.extracted carries one item in data per return or form found in the document. The key fields:

  • Which return: form_type (1040, 1120, 1120S, 1065, or a standalone form such as W-2), tax_year, entity_name, ein (business returns only), amended.
  • Income: gross_receipts, cogs, gross_profit, total_income; ordinary_business_income (1120-S and 1065), adjusted_gross_income and filing_status (1040).
  • Deductions and result: officer_compensation, salaries_wages, rents, depreciation, total_deductions, taxable_income, total_tax.
  • Payments: total_payments, amount_owed, overpayment, refunded.

application_form.extracted carries one item with the business (legal_name, dba, ein, entity_type, industry, start_date, address, phone, email, website), the request (requested_amount, use_of_funds, stated annual_revenue and monthly_revenue, existing_advance_balance), up to two owners (name, title, ownership percentage; phone and email for the first), the bank (bank_name, account_number_last4, routing_number_last4) and the signature. Owners' SSNs, dates of birth and home addresses, and full account and routing numbers are never sent.

The OpenAPI spec lists every field: 78 for a tax return (TaxReturnExtraction) and the application form's (ApplicationFormExtraction).

Signature verification

Every delivery carries X-ClearStaq-Signature: sha256=<hex>, the HMAC-SHA256 of the exact raw body. Use the API key's webhook secret for callback_url deliveries and the subscription's secret for subscription deliveries. Verify it before trusting the payload:

import hmac, hashlib

def verify(payload_bytes, signature_header, secret):
    expected = "sha256=" + hmac.new(secret.encode(), payload_bytes, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, signature_header)

Delivery monitoring

Settings → Integrations → Webhook Deliveries lists the latest 100 documents submitted to POST /api/v1/analyses with the state of their callback_url delivery. It's your first stop when a callback "didn't arrive." (If the log shows a delivery and your endpoint has nothing, the problem is on the receiving side.) Subscription deliveries are not listed there.

Retrieving results without webhooks

Poll GET /api/v1/analyses/{id} by ID, or pull any analysis as JSON from the dashboard. For a business's statements, poll GET /api/v1/clients/{client_id} with the response's submission.client_id for the total and GET /api/v1/analyses/{id} for each document. For a completed bank statement, the API returns the analysis.completed shape with status and result; for a completed tax return or application form, it returns the corresponding extraction shape when its persisted rows are available. A completed tax return with no extracted rows follows the same analysis.completed callback envelope backed by its persisted tax analysis anchor; it does not return a fabricated empty extraction event. A successful application-form callback persists one extraction row even when all fields are null. If that row is unavailable later, the terminal API fallback is application_form.extracted with data: [].

For analysis.completed and analysis.failed, polling and the per-request callback_url report the same completed_at. This is when the document reached its final status. Older records without a stored terminal timestamp return null. Subscription events report the completion times of their included phases.

MCA payments and fundings. In a completed bank statement, result.mca_payments lists the MCA and non-traditional-loan payments (withdrawals), one row per transaction with the lender, payment_date, amount and the lender's frequency (Daily, Weekly, Monthly or Irregular, from the average gap between the lender's payments: across all the client's statements when the statement belongs to a client with a position for that lender, otherwise across this statement; absent when the lender has a single payment in the statement and no position frequency, which a position with only one payment doesn't have). result.mca_fundings lists the advance proceeds the lenders deposited into the account, one row per deposit with the lender, funding_date and amount. Before November 2026 the funding deposits were included in mca_payments; they now come only in mca_fundings, so a total of mca_payments is the payments alone.

Every document's Raw Output tab offers four views (Full Response, Transactions Only, Fraud Report, Income Summary) with one-click Copy and Download JSON. The Raw Output of a real document is the best living reference for payload shapes while you build.

Raw output

Sandbox

Build and test your integration against https://sandbox.clearstaq.com/api/v1. It is the same API as production: the same endpoints, request and response shapes, error codes and signed webhooks. Only the keys, the results and the limits differ.

Test keys

  • Create them in Settings → Integrations → API & webhooks → Sandbox (test) keys → Create test key. Owners, admins and members with access to integrations can create them.
  • A test key starts with cg_test_ and comes with its own webhook secret (whsec_…). Both are shown once.
  • An organization can have up to 5 active test keys. Revoke one in the same card to make room; a revoked key gets 401 revoked_api_key.
  • Test keys have the analyses:write and analyses:read scopes.
  • Test keys work only in the sandbox, and the sandbox accepts only test keys:
Sent toWithResponse
Productiona test key (cg_test_…)401 test_key_in_production
Sandboxa live key (cg_live_…), a teaser key or an OAuth token401 live_key_in_sandbox

What the sandbox does with your files

  • Nothing is stored or analyzed. The file is discarded on arrival. Instead, each upload gets realistic sample results for one of eight fictional businesses, with fictional banks, people and figures.
  • Which sample depends on the document_kind, the filename suffix (below) and the file's content. The same file always gets the same result; different files get different samples.
  • One submission, consecutive months. Statements sent with the same business_id (one submission) all come from one fictional business. The first is the most recent month and each next one the month before, up to six months. Tax returns for one client go back a year at a time, over two tax years.
  • Any PDF works, even one production couldn't read. Production's upload checks still apply: application/pdf, a valid PDF header, 25 MB at most.
  • Timing: results arrive about 6 to 12 seconds after the upload.
  • ClearStaqAI (clearstaq_ai_enabled=true) works too. It returns points to review only on __fraud statements.
  • No credits are used and nothing is billed.
  • Send test data only. Filenames, client_ref and metadata are kept with the results until they are deleted (see Data retention).

Simulating outcomes

End the filename with a suffix before .pdf, for example Acme March__nsf.pdf. Suffixes are not case-sensitive. A suffix that belongs to another document kind, or any other __word, counts as part of the name, and the file gets its kind's default result.

document_kindSuffixSimulatesResult
bank_statementnoneA clean statementanalysis.completed (status: completed)
bank_statement__mca_stackDaily debits from three MCA lenders and one funding deposit (mca_payments, mca_fundings)analysis.completed
bank_statement__nsfNSF fees and negative daysanalysis.completed
bank_statement__fraudAn edited statement: high or critical fraud risk, with metadata fraud factorsanalysis.completed
bank_statement__oldThe business's statement from a year before its most recent month. In a client with recent statements, the profile leaves it out (_meta.dropped_statement_ids)analysis.completed
bank_statement__not_bank_statementA document that is not a bank statementanalysis.failed (status: failed)
bank_statement__encryptedA password-protected PDF that can't be readanalysis.failed
bank_statement__missing_pagesA statement uploaded without its last page. Its client lists it with failure_reason missing_pages, pages_present, pages_expected and detected_bankanalysis.failed
tax_returnnoneForm 1120-Stax_return.extracted
tax_return__1120Form 1120 (C corporation)tax_return.extracted
tax_return__1065Form 1065tax_return.extracted
tax_return__1040cForm 1040 with Schedule Ctax_return.extracted
tax_return__not_tax_returnA document that is not a tax returnanalysis.failed
tax_return__poor_scanA scan too poor to readanalysis.failed
application_formnoneA completed funding applicationapplication_form.extracted
application_form__unreadableA form that can't be readanalysis.failed
any__slowThe same result, about 90 seconds later, to test polling and timeoutsas without __slow
  • Combine __slow with another suffix in either order: Acme March__nsf__slow.pdf.
  • Every failure has error.code parser_error and an error.message giving the reason, as in production.
  • Extraction results have no status: polling returns the same envelope as the webhook, with event and data.

Webhooks

  • callback_url and subscriptions (POST /api/v1/webhooks) work as in production: the same events, payloads, signatures and retries. A callback_url delivery is signed with the test key's whsec_…; a subscription delivery with the subscription's own secret.
  • The receiving URL must be reachable from the internet. A callback_url must be a public HTTP or HTTPS URL (otherwise 422 invalid_callback_url), and a subscription's target_url a public HTTPS URL (otherwise 400 invalid_target_url). Local and private addresses are refused.
  • POST /api/v1/webhooks/test works with a test key.

Limits

  • Per minute: 120 requests per key, as in production (429 rate_limited, RateLimit-* headers).
  • Per day: 1,000 requests per organization per UTC day.
    • Every request made with a valid test key counts, including polling and requests that end in an error such as 403, 404 or 422.
    • Requests refused for their key (401) and requests over the per-minute limit don't count.
    • Over the limit, the response is 429 daily_limit_reached. Retry-After gives the seconds until 00:00 UTC; X-Daily-Limit and X-Daily-Remaining (0) come with it.
    • If the day's count can't be taken, the response is 503 daily_limit_unavailable. Retry.

Access

  • The sandbox is available while your workspace has a running ClearStaq trial or a paid plan.
  • When that ends, requests with your test keys get 403 sandbox_access_ended, with a reason: trial_ended, no_plan or org_not_found.
    • A change takes effect within about a minute; a trial stops at its exact end time.
    • The keys aren't revoked: they work again once you subscribe.
  • If the sandbox can't confirm your access for a moment, requests get 503 sandbox_access_unavailable. Retry.

Data retention

  • Sandbox data (documents, results, clients, businesses and request records) is deleted after 30 days. Test keys and webhook subscriptions are kept.
  • About 7 days after your workspace loses sandbox access, its test keys are revoked and all its sandbox data is deleted.

Not in the sandbox

  • The applications API (Deal-flow): test keys get 403 scope_required there.
  • OAuth tokens (Zapier) and the MCP server.
  • The web app, the client portal, email intake and Salesforce.

The sandbox runs a version that production already runs. API changes reach it shortly after they reach production.

Quick start

  1. Create a test key (see Test keys). Keep the key and its webhook secret.
  2. Create a business once and keep its id:
curl -X POST https://sandbox.clearstaq.com/api/v1/businesses \
  -H "Authorization: Bearer cg_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"legal_name":"Acme Test LLC"}'
  1. Send any PDF with that business_id and name the outcome in the filename. ;filename= sets the name curl sends:
curl -X POST https://sandbox.clearstaq.com/api/v1/analyses \
  -H "Authorization: Bearer cg_test_YOUR_KEY" \
  -F "[email protected];filename=Acme March__nsf.pdf" \
  -F "document_kind=bank_statement" \
  -F "business_id=BUSINESS_ID" \
  -F "callback_url=https://yourapp.com/webhooks/clearstaq"

The response is 202 Accepted with the analysis id.

  1. About 6 to 12 seconds later, analysis.completed arrives at your callback_url. Verify its X-ClearStaq-Signature with the test key's whsec_…, as in Signature verification. Or poll until status is completed or failed:
curl https://sandbox.clearstaq.com/api/v1/analyses/ANALYSIS_ID \
  -H "Authorization: Bearer cg_test_YOUR_KEY"

Once it works, swap the base URL for https://app.clearstaq.com/api/v1 and the test key for a live key.


FAQ

Does an API-submitted statement cost the same? Yes, 1 credit per analyzed document, identical to web upload.

How fast is the webhook after submission? Analysis completes in under 5 seconds for most statements (~15s with visual fraud analysis), and the webhook fires immediately after.

What happens if my endpoint is down? For the analysis and extraction events, a 5xx, 408, 429 or a timeout is retried after 1, 1, 5 and 15 minutes (5 attempts, about 22 minutes); any other 4xx is not retried. Build your endpoint to return 2xx quickly (enqueue, then process) and use the analysis ID to fetch anything you missed.

Can I tell which key made which calls? Each key tracks last-used; use one key per integration for clean attribution and painless rotation.

Is there a sandbox? Yes: https://sandbox.clearstaq.com/api/v1, with test keys and sample results, and no credits used. See Sandbox. To check only that your endpoint receives and verifies a delivery, POST /api/v1/webhooks/test with a callback_url (or Send test on the API docs page under Settings → Integrations) sends it one signed sample analysis.completed with fake data, signed with the API key's webhook secret. It analyzes nothing, stores nothing, and does not send subscription events.

Plans from $99/month

Take back your time and automate loan underwriting

Join the lending teams using ClearStaq to parse statements, catch fraud, and verify income, all in under 5 seconds.

True revenue, positions, and 27 fraud signals included.