When a request can't be completed, the API returns an HTTP error status and a JSON error object. This page lists every error and what to do about it.
{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded (10 requests per minute). Retry in 42 seconds.",
"request_id": "req_8f2c1a9b7d3e4f5a6b7c8d9e"
}
}
| Field | Description |
|---|---|
code |
Stable, machine-readable error code. Branch on this. |
message |
A sentence for people. Its wording may change. |
request_id |
Id of the request. Include it when you contact support. |
| HTTP | code |
What it means | What to do | Charged? |
|---|---|---|---|---|
| 400 | invalid_json |
The request body is not valid JSON. | Send a JSON body such as {"email":"someone@example.com"}. |
No |
| 401 | invalid_api_key |
The API key is missing, malformed, unknown or revoked. | Check the Authorization: Bearer … header. Rotate the key if needed. |
No |
| 402 | subscription_required |
Your account has no active Email Verification plan. | Choose a plan. | No |
| 402 | quota_exceeded |
Your allowance for this period is used up and couldn't be raised automatically. | Upgrade your plan, fix your payment method, or wait for the next period. | No |
| 403 | account_suspended |
The account is suspended. | Contact support. | No |
| 403 | product_access_denied |
This account doesn't have the Email Verification API product. | Choose a plan for the Email Verification API. | No |
| 422 | invalid_request |
The email field is missing, too long or not a valid address. |
Fix the input. The message says what is wrong. |
No |
| 429 | rate_limited |
Too many requests in the current minute. | Wait for the number of seconds in Retry-After, then retry. |
No |
| 503 | verification_unavailable |
The verification couldn't be completed this time. | Retry after a short wait. | No, the verification is refunded |
invalid_request messages#message |
Cause |
|---|---|
Enter an email address. |
The email field is missing or empty. |
Enter a valid email address. |
The value isn't a usable email address, or contains spaces or control characters. |
That email address is too long. |
The address is longer than 254 characters, or one of its parts is too long. |
Only retry 429 and 503, and wait between attempts:
Retry-After header.Don't retry 4xx errors other than 429 without fixing the cause first. They will fail again.
Note
A verification that returns status: "unknown" is not an error. It is a successful, charged request with HTTP 200. Verifying the same address again within 30 days returns the stored answer and is charged again. See Checking the same address again.