Docs
Errors
One error shape, a stable code, and what to do about each.
Every error has the same shape. Branch on error.code, which is stable; the message is written for a person and may change.
{
"error": {
"code": "INVALID_PARAMETER",
"message": "Unknown game \"one-piece\". Available: battlespirits, cyberpunk, digimon, dragoborne, dragonball-fw, dragonball-masters, fab, fftcg, fow, gundam, lorcana, onepiece, pokemon, riftbound, swdestiny, swu, vanguard, weissschwarz, yugioh.",
"details": { "param": "game", "allowed": ["battlespirits", "cyberpunk", "digimon", …, "yugioh"] },
"request_id": "6e1237ead44557646331e2c99fb3c3be"
}
}Quote request_id when you ask for help: it identifies the request in our logs.
Codes
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_PARAMETER | An unknown parameter, a repeated one, or a value outside its vocabulary. details.param names it. |
| 400 | LIMIT_EXCEEDED | limit is above 250. The request is refused, never truncated. |
| 400 | INVALID_CURSOR | The cursor is malformed or was issued for a different list. |
| 401 | MISSING_API_KEY | No key was sent. |
| 401 | INVALID_API_KEY | The key is unknown or has been revoked. |
| 401 | INVALID_CREDENTIALS | Sign-in with an email and password that do not match. |
| 403 | TRIAL_EXPIRED | Trial credits are used up. They do not renew: choose a plan. |
| 403 | IMAGE_URL_INVALID | An image URL with no signature, a wrong one, or one past its expiry. Read the object again for a fresh image_url. |
| 403 | INSUFFICIENT_SCOPE | The key lacks the scope the route needs, such as account:write. |
| 404 | KEY_NOT_FOUND | No key with that id on your account. |
| 404 | CARD_NOT_FOUND · SET_NOT_FOUND · SEALED_NOT_FOUND | No object with that id. Refunded. |
| 404 | ROUTE_NOT_FOUND | No such route. details.did_you_mean suggests the closest one. |
| 409 | ACCOUNT_EXISTS | An account already uses that email. Sign in or recover access. |
| 409 | IDEMPOTENCY_CONFLICT | The Idempotency-Key was already used with a different request body. |
| 429 | RATE_LIMITED | Too many requests in the current second or minute. Wait Retry-After seconds. |
| 429 | CONCURRENCY_LIMIT | Too many requests in flight at once. |
| 429 | QUOTA_EXCEEDED | Not enough credits left in the period, or the daily cap is reached. |
| 503 | METER_UNAVAILABLE | Usage metering is briefly unreachable. Retry in a few seconds. |
| 503 | FEATURE_NOT_CONFIGURED | A part of the service, such as payments, is not switched on yet. |
Unknown parameters are errors
A misspelled filter is refused, not ignored. Ignored, it would return the whole catalogue as if it were filtered, and you would find out after paying for the pages.