Errors
Every error uses the same JSON envelope. Branch on error.code: it is stable, while the
message can change and several conditions can share one HTTP status.
Error body
| Field | Type | Notes |
|---|---|---|
error.code | string | Stable machine-readable identifier. Branch on this, not on the message or the status. Example: QUOTA_EXCEEDED |
error.message | string | Human-readable explanation. May change without notice. |
error.details | object | Extra context, e.g. your_plan and upgrade_url on a plan-gated feature. |
401 Unauthorized
Missing or invalid API key (API_KEY_REQUIRED, API_KEY_INVALID).
403 Forbidden
Key valid but not permitted (PLAN_FEATURE_LOCKED, GATEWAY_FORBIDDEN).
PLAN_FEATURE_LOCKED carries your_plan and upgrade_url in details.
413 Payload Too Large
Image exceeds 12 MB (PAYLOAD_TOO_LARGE).
422 Unprocessable
Bad input (IMAGE_REQUIRED, IMAGE_INVALID, IMAGE_URL_INVALID,
IMAGE_URL_BLOCKED). Does not consume quota.
429 Rate Limited
Two distinct conditions share this status — branch on code:
RATE_LIMITED (per-minute burst, retry shortly, see Retry-After) and
QUOTA_EXCEEDED (monthly allowance gone until the 1st — retrying will not help).
| Header | Meaning |
|---|---|
Retry-After | Seconds to wait. Present on RATE_LIMITED. |
503 Engine Unavailable
Recognition backend is down, or has no index loaded yet (ENGINE_UNAVAILABLE).
Transient — retry with backoff, honouring Retry-After when present. Does not
consume quota.
504 Engine Timeout
Recognition did not finish inside the gateway's budget (ENGINE_TIMEOUT).
Usually means the engine is saturated rather than that the image was bad.
Retry with backoff; a smaller image also helps. Does not consume quota.
Plans
Scanning is included with the Flipzi Data API. At flipzi.io it is not sold on its own: a Data API plan that includes scans gives you a Scanner API key in…
Identify a card from a photo POST
Returns ranked catalog matches for the card in the supplied image. Consumes one scan from your monthly quota **only when recognition actually runs**. Validation failures (`422`), auth failures (`401`/`403`) and rate-limit rejections (`429`) do not consume quota.