Get started
Authentication
Every API request carries an API key in a header, or for an app you connected with OAuth its access token in Authorization. The public endpoints need neither: GET /v1/status, GET /v1/latency, /openapi.json, /openapi.yaml, the agent card, GET /a2a and the OAuth metadata at /.well-known/oauth-protected-resource and /.well-known/oauth-protected-resource/mcp. Keys never go in URLs: a request with a key in the query string is refused with 400 invalid_request, because URLs end up in logs, browser history and Referer headers.
Send the key
Use the Authorization header with the Bearer scheme:
POST /v1/validate HTTP/1.1
Host: api.email-validation.org
Authorization: Bearer ev_live_…
Content-Type: application/jsonIf your tool cannot set Authorization, send the same key in X-Api-Key instead. Sending both with different values is an error.
API keys work the same on the EU endpoint, https://api-eu.email-validation.org (EU data residency). An OAuth access token works on the host it was issued for.
Key format
A key is ev_live_ followed by 79 letters and digits (87 characters in total). The last characters are a checksum, so a mistyped key fails fast with 401 unauthorized. The fixed prefix makes a key that leaked into code or logs easy to search for.
Create, roll and revoke keys
Manage keys under API keys in the dashboard. For safety, creating, rolling and revoking a key asks you to confirm it is you.
- Create: give the key a name you will recognize later. The full key is shown once; we store only a hash.
- Roll: replace a key with a new one. Choose how long the old key keeps working (immediately, 1 hour, 24 hours or 7 days) so you can deploy the new key without downtime.
- Revoke: checks that use credits stop, normally within about 5 seconds. Free answers, such as test addresses and malformed addresses, can follow for up to 10 seconds.
Each key shows when it was last used, so you can spot keys nobody needs any more.
Scopes
| Scope | In the dashboard | Allows |
|---|---|---|
validate | Validate addresses | Single checks (/v1/validate) and the MCP tool validate_email. |
account:read | Read balance and usage | Credit balance and usage (/v1/credits, /v1/usage, MCP get_credits). |
bulk | Bulk lists | Bulk jobs (/v1/bulk…, MCP create_bulk_job, get_bulk_job, start_bulk_job and cancel_bulk_job). |
New keys get validate and account:read. Turn on bulk only for the keys that need it. A key without the required scope gets 403 forbidden.
Limits per key
Each key can have its own safety limits, set in the dashboard:
- Daily credit cap: the most credits the key may use in a day, including the credits held by bulk jobs the key creates or starts. Past the cap, requests get
429 key_daily_capuntil 00:00 UTC (right as the key reaches it, a few more can still be answered), and a bulk job that needs more than the key has left staysreadywitherror_code: key_daily_cap. - Rate limit: fewer requests per second than the account allows.
- Allowed origins: for a key used from browser code, the list of web origins (such as
https://app.example.com) it may be used from. Requests from any otherOriginget403 forbidden_origin.
We recommend calling the API from your server and keeping keys out of browser code altogether. If you must call it from a public web page, create a browser key (under API keys, "On a public web page"): it can only validate addresses and needs allowed origins and a daily credit cap, and the form guard accepts only such a key. Rolling a browser key keeps its limits. A key made before 16 November 2026 with these limits works with the API as before, but roll it to use it with the form guard.
OAuth for apps and AI agents
Apps and AI agents that support OAuth 2.1, such as MCP clients, can connect to your account without you copying a key. The app sends you to a page on our site where you sign in and see the app's name (as the app gives it; we do not verify it), the address it sends you back to and the permissions it asks for. Allow or deny it there.
- What the app gets: an access token that lasts one hour and a refresh token the app swaps for a new one each time. Both work only with the scopes you approved, and checks the app runs use your credits like a key does.
- Disconnect: under API keys, in Connected apps, disconnect an app and it stops within a few seconds. A connection also ends one year after you allowed it.
- For developers: the metadata is at
https://api.email-validation.org/.well-known/oauth-protected-resource, and for the MCP endpoint athttps://api.email-validation.org/.well-known/oauth-protected-resource/mcp(RFC 9728; the EU endpoint has its own, athttps://api-eu.email-validation.org/.well-known/oauth-protected-resourceand…/mcp) andhttps://email-validation.org/.well-known/oauth-authorization-server(RFC 8414). Clients register with dynamic client registration (RFC 7591) as public clients, use the authorization code flow with PKCE (S256only) and send the token asAuthorization: Bearer <token>. Redirect URIs must match the registered ones exactly (only a loopback address may use any port). We do not offer OpenID Connect sign-in.
Agent sign-in codes
An AI agent that has no browser of its own can connect with a code instead. It asks us for a sign-in code for your email address and shows you a link and a 6-digit code. Open the link, sign in with that address, check the agent's name (as the agent gives it; we do not verify it) and the permissions, type the code and allow it, confirming it is you once more. Type a code only if your own agent showed it to you just now.
- What the agent gets: the same as an app above (a one-hour access token and a refresh token), listed under Connected apps, where you can disconnect it.
- Nothing happens without you: asking for a code sends no email and creates no account. A code works for 10 minutes, and 5 wrong codes end the request.
- For developers: the flow is described step by step in auth.md (
agent_authin the authorization server metadata,service_auth).
If a key leaks
- Roll or revoke the key in the dashboard right away.
- Check Usage for traffic you do not recognize.
- Remove the key from wherever it was exposed (repository history, logs, tickets).
Report security problems to security@email-validation.org.
Errors you may see
| HTTP | Code | Cause |
|---|---|---|
| 400 | invalid_request | Key in the URL (a parameter named api_key in any spelling, or any value that looks like a key), malformed Authorization header, or two different keys. |
| 401 | unauthorized | No key, a mistyped key, or a revoked, expired or rolled key. |
| 403 | forbidden | The key lacks the scope, or the account is suspended or on hold. |
| 403 | forbidden_origin | The key is limited to other browser origins. |
| 429 | key_daily_cap | The key reached its daily credit cap; a bulk job it starts stays ready with error_code: key_daily_cap. |
| 429 | rate_limited | More than 20 requests with an invalid key or access token from your IP address within a minute: further requests with an invalid key are refused for up to a minute; valid keys keep working, on https://api.email-validation.org and https://api-eu.email-validation.org alike (Rate limits). |
All error codes are listed on Errors.
Team members and roles
An account can have several people. The owner or an admin invites someone by email under Team in the dashboard; someone new joins by signing in with that address from the invitation (email code or Google); someone who already has an account signs in and presses Join under Invitations for you on their Team page. Credits, API keys, bulk lists, billing and webhooks belong to the account, so the whole team shares them.
| Role | Can |
|---|---|
| Owner | Everything, including transferring ownership and deleting the account. Each team has exactly one. |
| Admin | Everything except transferring ownership and deleting the account. |
| Developer | API keys, bulk lists, webhooks, checks and usage. No billing, no team management. |
| Billing | Buy credits, turn auto top-up on or off, see invoices, receipts, the balance and usage. No API keys. |
| Viewer | Look, without changing anything. |
- Invitations expire after 7 days and can be resent or withdrawn. A person belongs to one team at a time.
- The owner or an admin can change a member's role or remove a member; anyone but the owner can leave. The owner can hand ownership to an admin.
- API keys keep working when the member who created them leaves; the key list shows who created each key.
- An action your role does not allow is refused with
403 forbidden.