Error Codes

All errors return a consistent JSON envelope:

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "documentUrl must be a valid URL",
    "field": "documentUrl"
  }
}
CodeStatusDescriptionResolution
VALIDATION_ERROR400Invalid request body or parametersCheck the field and message in the error response
UNAUTHORIZED401Missing or invalid API keyVerify your key is correct and active
KEY_EXPIRED401API key has expiredCreate a new key in the dashboard
KEY_REVOKED401API key has been revokedCreate a new key in the dashboard
FORBIDDEN403Insufficient permissionsCheck your key's scope
NOT_FOUND404Resource does not existVerify the ID in your request
KEY_LIMIT_REACHED409Maximum 5 active keys per accountRevoke an unused key first
TRIAL_EXHAUSTED402Free tier limit of 100 checks/month reachedAdd a payment method in the dashboard
UNSUPPORTED_FORMAT422Invalid image formatUse JPEG, PNG, or PDF
FILE_TOO_LARGE422File exceeds 10MB limitReduce image size or resolution
IMAGE_TOO_SMALL422File too small for analysisProvide a higher quality image
RATE_LIMITED429Too many requestsWait for Retry-After seconds
CAP_EXCEEDED429Monthly spend cap reachedIncrease your cap in the dashboard
FETCH_FAILED422Could not fetch document from documentUrlVerify the URL is accessible and returns an image
BILLING_NOT_CONFIGURED400Billing account not set upContact support
INTERNAL_ERROR500Unexpected server errorRetry. If persistent, contact support.
INVALID_SIGNATURE400Webhook signature verification failedCheck your webhook secret