Skip to Content
APIGeineAPIGeine

Errors and limits

Error codes, HTTP statuses, file types and limits.

Subscribe on RapidAPI
{
  "success": false,
  "error": {
    "code": "UNSUPPORTED_FILE_TYPE",
    "message": "Upload PDF, JPEG, PNG or WebP files.",
    "details": { "field": "last_page", "index": 1, "supported": ["application/pdf", "image/jpeg", "image/png", "image/webp"] }
  }
}

When an error concerns one file, details.field names it (front_page or last_page).

CodeHTTPMeaning
INVALID_CONTENT_TYPE400The request is not multipart/form-data
MISSING_FILE400No file in the front_page field
EMPTY_FILE400A file is empty
UNEXPECTED_FIELD400A field other than front_page and last_page was sent; details.field names it
TOO_MANY_FILES400More than one file in a field
UNAUTHORIZED401No valid credentials: call the API through your RapidAPI subscription
FILE_TOO_LARGE413A file is over 8 MB; details.max_bytes gives the limit
REQUEST_TOO_LARGE413The files are over 16 MB in total
UNSUPPORTED_FILE_TYPE415A file is not a PDF, JPEG, PNG or WebP (checked from its content, not its name)
UNREADABLE_FILE422A file cannot be read; details.reason is encrypted (password-protected PDF) or no_text (PDF without selectable text)
NOT_A_PASSPORT422The front_page file does not appear to show a passport's photo/data page
EXTRACTION_FAILED422The data could not be read reliably; details.reason is invalid_output or inconsistent_dates (expiry not after issue). Try a clearer image
NOT_FOUND404Unknown endpoint
INTERNAL_ERROR500Unexpected error
UNAVAILABLE503Extraction is temporarily unavailable; details.reason is timeout or unavailable. Retry shortly

A missing or unreadable field is never an error: it is returned as null.

Limits

LimitValue
Files per requestfront_page (required) and last_page (optional), one file each
File typesPDF (with selectable text), JPEG, PNG, WebP
File size8 MB per file, 16 MB in total (MCP: 5 MB in total)
Response timePDFs with selectable text: usually under 10 seconds. Images: usually 30–40 seconds per request. Allow at least 90 seconds before timing out on your side. When processing takes too long, the request returns UNAVAILABLE with reason timeout; retry shortly

On this page