Operate
Errors
When a request fails, the API answers with an HTTP status and a JSON body that names the problem. No credit is ever used for a request that ends in an error.
The error body
{
"error": {
"code": "insufficient_credits",
"message": "Not enough credits. Buy a pack to continue.",
"request_id": "req_7Hq2LmX9cV4bN8tR1zK6wD"
}
}codeis stable and machine-readable: branch on it.messageis for people and may change: do not parse it.request_ididentifies the request (also in theX-Request-Idheader). Keep it in your own logs, and quote it in a billing or legal dispute sent to legal@email-validation.org, which a person reads. The AI support assistant cannot look requests up.
429 and 503 answers also carry Retry-After: the number of seconds to wait before trying again. A bulk list refused for its size (abuse_throttled) has none: it waits for a purchase, not for time.
One answer has no body: a 416 from a results download whose Range lies outside the file. Its Content-Range: bytes */<size> header gives the file's size, and X-Request-Id, as on every answer, our ID for the request.
Which error comes first
The API checks a request in this order: the method (a 405 with an Allow header), then the form of the API key (401 when it is missing or not a key of ours, 400 when it is in the URL), then the body. So a request with a mistyped key and a malformed body gets the 401. Whether a well-formed key is still active and has the scope can be checked after the body. /mcp differs: it checks the key before the method, so without a well-formed key any method but POST gets the 401 first, and the 405 only with one.
Every error code
| Code | HTTP | When it happens | What to do | Retry? |
|---|---|---|---|---|
invalid_request | 400, 405 | A parameter is missing, has the wrong type or is out of range, the Authorization header is not Bearer <key>, Authorization and X-Api-Key carry two different keys, or the API key was sent in the URL (a query parameter named api_key in any spelling, such as apiKey or API-KEY, or any query value that looks like a key). The message may name the fields at fault. A method the path does not take (such as GET /v1/bulk) is a 405 with an Allow header that lists the methods it does take, sent before the key is checked; /a2a does the same with Allow: POST. /mcp checks the key first: with a valid key, any method but POST gets its 405 with Allow: POST and a JSON-RPC body instead. | Correct the request. Send the key in the Authorization header, never in the query string. On a 405, use a method from Allow. | No: fix the request |
unauthorized | 401 | No valid API key or OAuth access token was sent: none, or one that is unknown, revoked, expired or replaced by a roll. | Send a current key as Authorization: Bearer <key> (or X-Api-Key), or renew the OAuth token. Create a new key in the dashboard if needed. | No: fix the request |
insufficient_credits | 402 | The account has no credits left for this request (or not enough for a bulk job). | Buy a credit pack in the dashboard, then retry. Nothing was charged for the failed request. | After you fix the account |
forbidden | 403 | The key lacks the scope this endpoint needs (for example bulk), the account is suspended or on a billing hold, or the account has EU-only processing turned on and the request went to https://api.email-validation.org. GET /v1/latency, which takes no key, answers it to a browser request made by another website: it serves our website only. | Use a key with the right scope, or check the notices in your dashboard. With EU-only processing, send requests to https://api-eu.email-validation.org. For GET /v1/latency, call it from a server or a terminal, not from another website's page. | After you fix the account |
forbidden_origin | 403 | The key is restricted to a list of browser origins and the request came from another Origin. | Call the API from an allowed origin, or update the allowed origins of the key. | No: fix the request |
not_found | 404 | The resource does not exist or belongs to another account. | Check the id. Ids are only visible to the account that created them. | No: fix the request |
conflict | 409 | The request does not fit the current state of the resource, such as starting a bulk job that is still being analyzed or was canceled, failed or expired, canceling a job that has finished, or downloading results before a job has finished. Starting a job that is already queued, running or completed is not a conflict: the job is returned as it is and charged once. POST /v1/bulk also answers it when an account without a purchase already has 2 lists that are analyzing or ready; then no job was created. | Read the job again and act on its current status. For a refused upload, start or cancel one of the waiting lists first, or buy credits: the limit ends with the first purchase. | No: fix the request |
length_required | 411 | A bulk upload was sent without a Content-Length header (for example as a chunked stream). | Send the file with a known length. Most HTTP clients do this when you pass the whole file. | No: fix the request |
payload_too_large | 413 | The request body is over the limit: 100 MB for a CSV or TXT bulk upload, 100,000 addresses or 4 MB for a JSON list, 4 MB for an MCP message, 256 KB for a POST /a2a message, 4 KB for a POST /v1/validate body. A bulk upload also gets it when it would take the account's stored lists over their quota: 2 GB without a purchase, 20 GB with one. | Split the list, or upload large files in the dashboard, which takes files up to 1 GB (the 1,000,000-row limit still applies). Over the storage quota, cancel lists that are waiting to start, or wait until older lists expire, before you upload again; splitting does not help. | No: fix the request |
rate_limited | 429 | The account or key sent more requests per second than its limit allows, the IP address sent more than 5,000 requests in 10 seconds (requests with a key or access token from Cloudflare Workers, which all share one address, are left out), or the IP address sent more than 20 requests with an invalid key in a minute (its further invalid keys get this for up to a minute; valid keys keep working). GET /v1/latency has its own limit instead, 20 requests in 10 seconds per IP address, and test and malformed addresses, which do not count toward the per-second limit, have a separate, much higher safety limit per key. | Wait for the number of seconds in Retry-After, then retry. Spread requests evenly over time, and fix an invalid key instead of retrying it. | Yes, after Retry-After |
abuse_throttled | 429 | Too many recent requests ended without a definite answer (free outcomes) compared with charged ones, or an account without a purchase reached its daily number of checks (single checks, lists and the checker on our site together), so the account is slowed down or paused for the number of seconds in Retry-After (the message gives the time it ends when the pause is long). A bulk list larger than an account without a purchase may check in a day is refused with it and no Retry-After. | Wait for Retry-After. Avoid re-checking the same failing addresses in a tight loop. Without a purchase, wait for that time or buy credits. A list refused with a Retry-After stays ready (no error_code) and starts by itself when the pause ends; without one, start it again after a purchase. | Yes, after Retry-After when sent |
key_daily_cap | 429 | This key reached the daily credit cap set for it in the dashboard, or a bulk list would take it over that cap: a list is started only when the cap still covers all of it. | Raise or remove the cap for this key in the dashboard, use another key, or wait until the cap resets the next UTC day. A list it refused does not start by itself: start it again. | After the cap resets (next UTC day) |
internal_error | 500 | Something failed on our side. No credit was used. | Retry later. If it keeps happening, check https://email-validation.org/status/. | Yes, with backoff |
service_unavailable | 503 | Validation is paused for a short time, for example while a dependency recovers. No credit was used. GET /v1/status answers it while no status information is available, and GET /v1/latency while its test answer is not in the cache, both with Retry-After: 60. | Wait for Retry-After, then retry. In sign-up forms, accept the address and check it later. | Yes, after Retry-After |
upstream_capacity | 503 | A bulk job could not be admitted right now because validation capacity is limited. No credit was used. | Start the job again later; it stays in the ready state until then (it can be started until 27 days after upload). | Yes, after Retry-After |
EU data residency
- An account with EU-only processing turned on gets
403 forbiddenonhttps://api.email-validation.org, with the message "This account validates in the EU only. Send requests to https://api-eu.email-validation.org." Send its requests tohttps://api-eu.email-validation.org. Nothing is charged. - On
https://api-eu.email-validation.org, aGET /v1/validategets400 invalid_request: send the address in aPOSTbody. - When validation in the EU is unavailable for a moment,
https://api-eu.email-validation.organswers503 service_unavailablewithRetry-After. It never falls back to the United States.
See EU data residency.
Retrying safely
- Retry
429and503after the number of seconds inRetry-After, with a cap on attempts (three is plenty). These answers are never charged, so retrying them cannot double-charge. - Back off when there is no
Retry-After: wait about half a second, then one, then two, adding some randomness so many clients do not retry at the same moment. - Do not retry
key_daily_capor longabuse_throttledwaits in a loop: they last until 00:00 UTC or for the seconds inRetry-After. - Do not retry
4xxerrors other than429without changing the request: the same request will fail again. - Network failures: a check that timed out on your side may have completed on ours. Retrying a validation (
POSTorGET /v1/validate) is safe but may cost a second credit; other reads (GET) can always be retried. What each request does when sent again: idempotency.
The official SDKs (8 published, 6 coming soon) follow these rules for you.
Errors in sign-up forms
On a sign-up form, an error from us should never stop a real person. Treat 402 insufficient_credits, 429 and 503 (and network failures) like an unknown result: accept the address, store it, and check it again later. Only an actual invalid result should ask the person to correct their address. See the sign-up form guide.
Results that are not errors
A check that could not reach a definite answer is not an error: it is a normal 200 response with the status unknown (free). Handle it as a result; see the unknown status.