Error reference

The API uses standard HTTP status codes. Every error response has the same JSON shape, so you can branch on the machine-readable error code rather than parsing the human-readable message.

Response format

  • success — always false on errors
  • error — stable, snake_case code (the values in the table below)
  • message — explanation for humans; wording may change, so don't match on it
  • Optional: hint, upgrade_url, upgrade_required and recommended_plan when an upgrade would resolve the error

403Feature not in your plan

json
{
  "success": false,
  "error": "plan_required",
  "message": "OTP extraction requires Startup plan ($29/mo) or above.",
  "upgrade_url": "https://freecustom.email/api/pricing"
}

Error codes

HTTPerrorWhen
400missing_field / missing_fieldsA required body field is missing (e.g. inbox, domain, url)
400invalid_inboxThe inbox is not a valid email address
400invalid_domainThe domain is not a valid domain name
400invalid_tokenOTP token URL called without a valid fceotp_ token
400batch_limit_exceededBulk generation asked for more inboxes than your plan allows per call
400limit_reachedCustom-domain limit for your plan reached
400not_verifiedMX upgrade requested on a domain that isn't verified yet
401unauthorizedNo API key sent (use the Authorization header or ?api_key=)
401invalid_api_keyThe key is unknown or has been revoked
401invalid_ext_tokenBrowser-extension token is invalid or expired; sign in again
401user_not_foundThe account that owned this key no longer exists
403plan_required / plan_restrictionFeature not included in your plan (OTP extraction, WebSocket, testing inboxes, IMAP...)
403inbox_not_ownedInbox isn't registered to your account; register it with POST /v1/inboxes first
403inbox_limit_reachedYour plan's maximum number of registered inboxes is reached
403domain_not_allowedThe inbox uses a domain that isn't a platform or custom domain
403domain_not_verifiedThe inbox uses a custom domain you haven't verified
403limit_reachedWebhook limit reached (20 per account)
403trial_expiredYour trial ended; upgrade to keep using the feature
403disposable_email_blockedTrial access isn't available to accounts registered with a disposable email
404inbox_not_foundInbox not registered under this account
404domain_not_foundCustom domain not added to this account
404token_not_foundOTP token URL is unknown or expired
409test_already_waitingA testing session is already waiting for email on this inbox
422verification_failedCustom-domain DNS check failed (TXT or MX record not found yet)
429rate_limit_exceededPer-second limit hit; retry after the Retry-After header
429monthly_quota_exceededMonthly quota used up and no credits left
429daily_limit_exceededDaily inbox-generation limit reached (resets at midnight UTC)
429mcp_rate_limit_exceededMCP operations-per-minute limit for your plan exceeded
429trial_concurrency_limitToo many concurrent Wait/MCP calls during a trial (max 3)
500server_error / internal_errorSomething failed on our side; safe to retry with backoff

Handling errors

  • 400, 401, 403, 404, 409, 422 — fix the request or account state; retrying the same request won't help.
  • 429 rate_limit_exceeded — wait for the number of seconds in the Retry-After header, then retry.
  • 429 monthly_quota_exceeded — buy credits or upgrade; access is restored as soon as either completes.
  • 500 — retry with exponential backoff (for example 1s, 2s, 4s), then contact support if it persists.

See rate limits for per-plan limits and the rate-limit headers returned on every response.