Skip to content
Browse API documentation

API / Webhooks & errors

Errors

API errors return a consistent JSON envelope. Use the code to decide what your application should do next.

Error response

402 · Payment required
{
  "error": {
    "type": "payment_required",
    "code": "insufficient_balance",
    "message": "Top up your API balance before creating this check.",
    "required_cents": 20,
    "balance_cents": 12
  }
}

Common error codes

HTTPCodeWhat to do
400invalid_requestRead the message and correct the request.
400document_too_short / document_too_longInput must contain 125–50,000 words.
400unsupported_file_type / empty_documentUse a supported document with readable text.
401invalid_key / revoked_keyUse an active API key from the dashboard.
402insufficient_balanceAdd funds to the API wallet.
404not_foundCheck the ID and owning account.
409not_readyWait for the report and try again.
413file_too_largeUse a direct upload for files larger than 4 MB.
429too_many_checksWait for a running check to finish.
429too_many_uploadsCreate checks from your waiting uploads, or let them expire.
5xxcheck_failed / unavailableRetry with backoff; keep the same idempotency key for a logical check.

When you need help

Include the check ID, HTTP status, error code, and approximate request time when contacting support. Never include your API key or webhook signing secret.