Get started
Quickstart
This guide takes you from a new account to your first validation result through the API. It uses a free test address, so it does not spend any of your free sign-up credits (500, or 100 with a free email provider, another personal mailbox or a relay or alias address: who gets which).
No code? You do not need the API to check addresses:
- one address: the free email checker (5 checks a day, no account), or Validate in the dashboard;
- a whole list: upload a CSV, XLSX or text file under Bulk lists in the dashboard (bulk lists guide);
- a tool you already use, such as Google Sheets, a form or a CRM: pick it on the integrations page.
Your first check in the dashboard: open Validate, type an address (try accepted@sandbox.email-validation.org, which is free) and press Validate. The result appears under the form with its status, reason and what to do next, and the check stays under Your checks on the same page for 30 days. API checks are not listed there, and neither are checks made with EU-only processing turned on.
Words used on this page:
- API key: a secret that tells the API which account a request is for, and which account pays for it.
- Credit: one credit pays for one result. Your balance is shown in the dashboard.
- Test address: an address on
sandbox.email-validation.orgthat always returns the same answer and costs nothing.
1. Create an account and an API key
- Open the sign-in page. New here? Choose Create an account under the form. There are no passwords: choose Continue with Google, or enter your email address and type the 6-digit code we email you (look in your spam folder if it does not arrive). Sign in with a passkey works once you have added a passkey under Settings in the dashboard. No card is needed.
- Open API keys in the dashboard and create a key; you may first confirm it is you with a passkey, a code we email you or your authenticator app. Copy it right away: we show it only once.
- Store it as an environment variable on the machine that will call the API:
macOS / Linux
# Paste the key, then press Enter.
read -rs EV_API_KEY && export EV_API_KEYPowerShell
# Windows PowerShell 5.1 and PowerShell 7. This window only. Paste the key, then press Enter:
$env:EV_API_KEY = [Net.NetworkCredential]::new('', (Read-Host -AsSecureString)).PasswordOptional: to keep the key for windows you open later, run setx EV_API_KEY $env:EV_API_KEY once after the line above. It saves the key in your Windows user environment. To remove it again, run [Environment]::SetEnvironmentVariable('EV_API_KEY', $null, 'User') and open a new window.
Keys start with ev_live_. Keep them on your server: anyone with the key can spend your credits. See Authentication for scopes, rotation and browser keys.
2. Send your first request
curl
curl https://api.email-validation.org/v1/validate \
-H "Authorization: Bearer $EV_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "accepted@sandbox.email-validation.org"}'PowerShell
# Windows PowerShell 5.1 and PowerShell 7. Not the curl tab: in Windows PowerShell 5.1,
# curl is a short name for another command, and \ at the end of a line does not continue it.
# Windows PowerShell 5.1 may offer only TLS 1.0, which the API refuses: allow TLS 1.2 (no effect in PowerShell 7).
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
$headers = @{ Authorization = "Bearer $env:EV_API_KEY" }
$body = @{ email = 'accepted@sandbox.email-validation.org' } | ConvertTo-Json
Invoke-RestMethod -Method Post -Uri 'https://api.email-validation.org/v1/validate' -Headers $headers -ContentType 'application/json; charset=utf-8' -Body $bodyJavaScript
// Node.js 22+ (save as first-request.mjs: top-level await needs an ES module) or Bun, as written.
// Deno: read the key with Deno.env.get('EV_API_KEY'). Cloudflare Workers: run it inside your fetch
// handler and read the key from env.EV_API_KEY.
const res = await fetch('https://api.email-validation.org/v1/validate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.EV_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ email: 'accepted@sandbox.email-validation.org' }),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
console.log(body.status, body.reason, body.action);Python
import os
import requests # pip install requests
resp = requests.post(
"https://api.email-validation.org/v1/validate",
headers={"Authorization": f"Bearer {os.environ['EV_API_KEY']}"},
json={"email": "accepted@sandbox.email-validation.org"},
timeout=20,
)
body = resp.json()
if not resp.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
print(body["status"], body["reason"], body["action"])To run checks and store their results in the EU, send the same request to https://api-eu.email-validation.org. Your key and credits stay the same (EU data residency).
The address accepted@sandbox.email-validation.org is a test address: it costs nothing.
3. Read the result
{
"email": "accepted@sandbox.email-validation.org",
"status": "valid",
"reason": "accepted",
"action": "send",
"account": "accepted",
"domain": "sandbox.email-validation.org",
"did_you_mean": null,
"free_email": false,
"role_account": false,
"disposable": false,
"catch_all_domain": false,
"mx_found": true,
"mx_record": "mx.sandbox.email-validation.org",
"smtp_provider": "other",
"domain_age_days": 3650,
"processed_at": "2026-10-20T09:30:00.000Z",
"credits_used": 0,
"request_id": "req_7Hq2LmX9cV4bN8tR1zK6wD"
}The three fields that matter most:
status: one of five, explained in the table below.reason: why the address got that status, for exampleacceptedorcatch_all.action: what we recommend:send,send_with_caution,removeorretry_later.
| Status | What it means | Action | Credit |
|---|---|---|---|
valid | The mailbox exists and accepted our check, so mail sent to it should arrive. | Depends on the reason: send (send) for accepted, alias, normalized, high_engagement, trusted_catch_all; send_with_caution (send with caution) for low_engagement, ai_agent, role_account; remove (remove) for abuse_linked, suppressed, trap_pattern, spamtrap, complainer. Read action. | 1 |
invalid | Mail sent to this address will not arrive, so it should come off your list. | remove (remove) | 1 |
catch_all | The domain accepts mail for every address, so we cannot confirm that this particular mailbox exists. | send_with_caution (send with caution) | 1 |
unknown | We could not get a definite answer this time, so no credit is used and a later retry often succeeds. | retry_later (retry later) | Free |
disposable | The address comes from a throwaway mail service whose inboxes are soon abandoned, so remove it. | remove (remove) | 1 |
Every reason has its own explanation: statuses and reasons.
credits_used tells you what the check cost. A completed check costs 1 credit whatever its status, except unknown. These are free: results with the status unknown, requests that end in an error, malformed addresses, test addresses and addresses on domains reserved for testing. Checking an address again later costs 1 credit again; duplicates inside one bulk list are charged once. Credits expire 24 months after they are added. All the rules: Credits and billing.
4. Try other answers
Swap the address for any <reason>@sandbox.email-validation.org, for example catch_all@sandbox.email-validation.org (catch_all) or timeout@sandbox.email-validation.org (unknown), to see how your code handles each case. The full list covers every reason.
5. Go further
- Handle errors and retries and respect the rate limits.
- Validate addresses as people sign up.
- Check whole lists with a bulk job.
- Questions? Ask the help chat or email support@email-validation.org: see Contact and support.
- Use an official SDK (8 published, 6 coming soon) or the code samples, which need no package. There are official SDKs for JavaScript/TypeScript, Python, Go, PHP, Ruby, C#, Rust and Swift; those for Java, Kotlin, Dart, Elixir, C and Perl are built and tested and coming soon to their package registries.