DocPeeldocs

Error Codes

DocPeel uses standard HTTP status codes plus a machine-readable error.codeyou can branch on safely. Human-readable error.message may change between versions — never match against it.

HTTP statuses

StatusMeaning
200Success.
400Validation failed (missing field, wrong format).
401Missing or invalid API key.
403Authenticated, but not allowed (insufficient scope or workspace mismatch).
404Resource not found.
413File exceeds the 20 MB limit.
429Rate limit exceeded.
500Unexpected server error — safe to retry with exponential backoff.
503Extraction engine temporarily unavailable.

Error codes

CodeDescription
missing_authorizationNo Authorization or x-api-key header present.
invalid_api_keyThe provided key was not recognised or has been revoked.
insufficient_scopeKey is valid but does not have the required scope.
missing_fileThe file form field was not present.
invalid_fileFile format is unsupported.
file_too_largeFile exceeds 20 MB.
insufficient_creditsWorkspace has no remaining credits.
not_foundThe requested resource does not exist or is in another workspace.
extraction_failedThe extraction engine could not parse the document. Credits are refunded automatically.
rate_limitedToo many requests for the current plan's per-minute or per-day quota. Inspect Retry-After and the X-RateLimit-* headers, or upgrade your plan.
internal_errorServer-side error. Retry with backoff and contact support if it persists.

Retry policy

Idempotent retries are safe for 5xx and 429. Use exponential backoff with jitter (e.g. 1 s, 2 s, 4 s, 8 s, …). Do not retry 4xx errors — fix the request first.