API
Bulk jobs API
Bulk jobs check whole lists: you upload the addresses, we remove duplicates, check every unique address and give you a CSV with the results. Bulk endpoints need a key with the bulk scope.
The same endpoints on https://api-eu.email-validation.org store and validate the list in the EU (EU data residency). A job lives on the host that created it: read, start, cancel and download it there.
The reference pages list every field and every error of each endpoint and show the request in seven languages beside the response: create, read, start, cancel and download the results.
The dashboard calls a bulk job a list, and a completed job shows there as Done. See each dashboard name beside its API name.
Create a job
POST /v1/bulk accepts either:
- a CSV file (
Content-Type: text/csv) with any columns, or a plain-text file (text/plain) with one address per line, up to 100 MB and 1,000,000 rows; or - a JSON list (
application/json):{"emails": [...]}with up to 100,000 addresses and 4 MB (send larger lists as CSV).
The request must carry a Content-Length header (most HTTP clients add it when you send a whole file; streamed uploads without a length get 411 length_required). A larger body, or a JSON list of more than 100,000 addresses, gets 413 payload_too_large. Files larger than 100 MB, up to 1 GB, can be uploaded in the dashboard.
Until an account's first purchase it may have at most 2 lists that are analyzing or ready (jobs that start on their own count while they are analyzed); another upload gets 409 conflict until one of them starts or is canceled. Stored lists may take up to 2 GB without a purchase and 20 GB with one; an upload over that quota gets 413 payload_too_large.
| Query parameter | Description |
|---|---|
column | The email column: a 1-based index or the header name. Detected when omitted. |
has_header | true or false. Detected when omitted. |
start | true (default) starts as soon as the file is analyzed; false waits so you can check the cost first. |
webhook_endpoint_id | A webhook endpoint registered in the dashboard to notify when the job ends (it gets the event even if it did not subscribe to it). |
curl
# A CSV file with a header row; the email column is found automatically. The list starts at once and uses
# credits; add ?start=false to the URL to start it later.
curl https://api.email-validation.org/v1/bulk \
-H "Authorization: Bearer $EV_API_KEY" \
-H "Content-Type: text/csv" \
--data-binary @customers.csv
# Or a JSON list, without starting it yet:
curl "https://api.email-validation.org/v1/bulk?start=false" \
-H "Authorization: Bearer $EV_API_KEY" \
-H "Content-Type: application/json" \
-d '{"emails": ["accepted@sandbox.email-validation.org", "catch_all@sandbox.email-validation.org"]}'PowerShell
# Windows PowerShell 5.1 and PowerShell 7 (in 5.1, curl is a short name for another command).
$headers = @{ Authorization = "Bearer $env:EV_API_KEY" }
# A CSV file with a header row; the email column is found automatically.
$job = Invoke-RestMethod -Method Post -Uri 'https://api.email-validation.org/v1/bulk' -Headers $headers -ContentType 'text/csv' -InFile customers.csv
"$($job.id) $($job.status)"
# Or a JSON list, without starting it yet:
$body = @{ emails = @('accepted@sandbox.email-validation.org', 'catch_all@sandbox.email-validation.org') } | ConvertTo-Json
$job = Invoke-RestMethod -Method Post -Uri 'https://api.email-validation.org/v1/bulk?start=false' -Headers $headers -ContentType 'application/json; charset=utf-8' -Body $body
"$($job.id) $($job.status)"JavaScript
import { readFile } from 'node:fs/promises';
// The list starts at once and uses credits; add start=false to the query to start it later.
const csv = await readFile('customers.csv');
const res = await fetch('https://api.email-validation.org/v1/bulk?column=email&has_header=true', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.EV_API_KEY}`,
'Content-Type': 'text/csv',
},
body: csv,
});
const job = await res.json().catch(() => ({ error: { code: `HTTP ${res.status}`, message: 'not JSON' } }));
if (!res.ok || job.error) throw new Error(`${job.error.code}: ${job.error.message}`);
console.log(job.id, job.status);Python
import os
import requests # pip install requests
# The list starts at once and uses credits; add "start": "false" to params to start it later.
with open("customers.csv", "rb") as f:
resp = requests.post(
"https://api.email-validation.org/v1/bulk",
params={"column": "email", "has_header": "true"},
headers={"Authorization": f"Bearer {os.environ['EV_API_KEY']}", "Content-Type": "text/csv"},
data=f.read(),
timeout=120,
)
job = resp.json()
if not resp.ok:
raise RuntimeError(f"{job['error']['code']}: {job['error']['message']}")
print(job["id"], job["status"])The answer is 202 Accepted with the new job and a Location header:
{
"id": "job_3Fv8QpL2xM7nC1rT9kW4yB",
"status": "analyzing",
"filename": null,
"total_rows": null,
"unique_emails": null,
"duplicates": null,
"syntax_invalid": null,
"local_answered": null,
"processed": 0,
"credits_reserved": 0,
"credits_charged": 0,
"counts": {},
"error_code": null,
"webhook_endpoint_id": null,
"created_at": "2026-10-20T09:30:00.000Z",
"started_at": null,
"finished_at": null,
"expires_at": "2026-11-19T09:30:00.000Z"
}What happens next
Job lifecycle:
| Status | Meaning |
|---|---|
analyzing | Reading the file, removing duplicates and answering malformed addresses. |
ready | Analysis done. Waiting for a start (or for credits when error_code is insufficient_credits). |
queued | Started and waiting for its turn. |
running | Addresses are being checked. |
cancelling | A cancel was requested; work in flight is finishing. |
finalizing | Writing the result files. |
completed | Results are ready to download. |
failed | The job could not finish; see error_code. Unused credits are returned. |
cancelled | The job was canceled. Unused credits are returned. |
expired | The file and the results were deleted at expires_at. |
- Analysis. We read the file, normalize addresses, drop duplicates (they get the same result as the first occurrence) and answer malformed and test addresses for free.
- Start. One credit is held for every unique address that still needs a check. If your balance is too low, the job stays
readywitherror_code: insufficient_credits; buy credits and start it again. The credits count toward the daily credit cap of the API key that created the job (or of the key that starts it): when the cap does not cover it, the job staysreadywitherror_code: key_daily_cap(429on start). A list can be started until 27 days after upload. A job that staysreadywith anerror_codenever starts by itself, so stop polling it. A start refused with429 abuse_throttledand aRetry-Afterleaves the jobreadywith noerror_code: it starts by itself when that pause ends. One refused because the list is larger than an account without a purchase can check in a day (noRetry-After) starts only when you start it again after buying credits. - Checking. Every unique address is checked once; there is no second pass, so a job finishes as soon as the last check returns. Re-check
unknownrows later if you need a definite answer. - Results. When the job is
completed, credits for results that endedunknownare returned and the result files are ready. A job that fails after its addresses were checked is charged for those checks, like a canceled one; a file that cannot be read fails for free, and so does a list whose uploaded file was deleted 30 days after upload before its results were written.
Files and results are deleted 30 days after upload (a job that finishes in its last day keeps its results for 7 days after it finishes). The file of a failed or canceled job is deleted at once.
Follow, start, cancel
| Request | Does |
|---|---|
GET /v1/bulk/{id} | Returns the job with processed, counts and the credits held and charged. processed counts only the unique_emails, the addresses that need a mail-server check: sandbox addresses, malformed rows and duplicates are answered without one and never counted there, so a list of only sandbox addresses completes with processed 0. |
POST /v1/bulk/{id}/start | Starts a job that is ready (402 when credits are short, 429 key_daily_cap past the key's daily cap, 429 abuse_throttled while the account is slowed down or paused: with a Retry-After the job starts by itself when that pause ends, without one start it again after a purchase; the job stays ready either way). A job already queued, running or completed is returned as it is and charged once; a job still being analyzed, or one canceled, failed or expired, answers 409. |
DELETE /v1/bulk/{id} | Cancels the job. Work in flight finishes, unused credits are returned and the files are deleted. |
Poll every few seconds, or register a webhook and wait for bulk.completed.
curl
JOB=job_3Fv8QpL2xM7nC1rT9kW4yB # the id POST /v1/bulk returned
# Run each command on its own. --fail-with-body (curl 7.76+) prints an error answer and exits non-zero.
# Progress and counts
curl --fail-with-body https://api.email-validation.org/v1/bulk/$JOB -H "Authorization: Bearer $EV_API_KEY"
# Start a job that is waiting in "ready"
curl --fail-with-body -X POST https://api.email-validation.org/v1/bulk/$JOB/start -H "Authorization: Bearer $EV_API_KEY"
# Download only valid and catch-all rows, with the original columns, once the job is "completed".
# Only a whole 200 answer (curl exits 0) replaces results.csv; a cut-off download or an error answer never does.
if code=$(curl -sS -o results.csv.part -w '%{http_code}' "https://api.email-validation.org/v1/bulk/$JOB/results?filter=valid,catch_all" \
-H "Authorization: Bearer $EV_API_KEY") && [ "$code" = 200 ]; then
mv results.csv.part results.csv
else
[ "$code" = 200 ] || cat results.csv.part 2>/dev/null; rm -f results.csv.part # shows an error answer
fi
# Cancel (unused credits are returned)
curl --fail-with-body -X DELETE https://api.email-validation.org/v1/bulk/$JOB -H "Authorization: Bearer $EV_API_KEY"PowerShell
# Windows PowerShell 5.1 and PowerShell 7 (in 5.1, curl is a short name for another command).
$headers = @{ Authorization = "Bearer $env:EV_API_KEY" }
$job = 'job_3Fv8QpL2xM7nC1rT9kW4yB' # the id POST /v1/bulk returned
# Run each command on its own. An error answer stops the command and shows its code and message.
# Progress and counts
Invoke-RestMethod -Uri "https://api.email-validation.org/v1/bulk/$job" -Headers $headers
# Start a job that is waiting in "ready"
Invoke-RestMethod -Method Post -Uri "https://api.email-validation.org/v1/bulk/$job/start" -Headers $headers
# Download only valid and catch-all rows, with the original columns, once the job is "completed"
Invoke-RestMethod -Uri "https://api.email-validation.org/v1/bulk/$job/results?filter=valid,catch_all" -Headers $headers -OutFile results.csv
# Cancel (unused credits are returned)
Invoke-RestMethod -Method Delete -Uri "https://api.email-validation.org/v1/bulk/$job" -Headers $headersJavaScript
const headers = { Authorization: `Bearer ${process.env.EV_API_KEY}` };
const done = new Set(['completed', 'failed', 'cancelled', 'expired']);
const notJson = (res) => ({ error: { code: `HTTP ${res.status}`, message: 'not JSON' } });
// A job in "ready" with an error_code could not start, and one uploaded with start=false waits for
// POST /start: neither moves on by itself, so stop polling it.
async function waitForJob(id, { autoStart = true } = {}) {
for (;;) {
const res = await fetch(`https://api.email-validation.org/v1/bulk/${id}`, { headers });
const job = await res.json().catch(() => notJson(res));
if (!res.ok || job.error) throw new Error(`${job.error.code}: ${job.error.message}`);
if (done.has(job.status)) return job;
if (job.status === 'ready' && (job.error_code || !autoStart)) return job;
console.log(`${job.processed}/${job.unique_emails ?? '?'} done`);
await new Promise((resolve) => setTimeout(resolve, 5000));
}
}
const job = await waitForJob('job_3Fv8QpL2xM7nC1rT9kW4yB');
if (job.status === 'ready') {
console.log(`Not started: ${job.error_code ?? 'waiting for POST /start'}`);
} else if (job.status === 'completed') {
const res = await fetch(`https://api.email-validation.org/v1/bulk/${job.id}/results?filter=valid`, { headers });
if (!res.ok) {
const { error } = await res.json().catch(() => notJson(res));
throw new Error(`${error.code}: ${error.message}`);
}
console.log(await res.text());
}Python
import os
import time
import requests # pip install requests
API = "https://api.email-validation.org"
HEADERS = {"Authorization": f"Bearer {os.environ['EV_API_KEY']}"}
DONE = {"completed", "failed", "cancelled", "expired"}
def wait_for_job(job_id: str, auto_start: bool = True) -> dict:
# A job in "ready" with an error_code could not start, and one uploaded with start=false waits for
# POST /start: neither moves on by itself, so stop polling it.
while True:
resp = requests.get(f"{API}/v1/bulk/{job_id}", headers=HEADERS, timeout=10)
job = resp.json()
if not resp.ok:
raise RuntimeError(f"{job['error']['code']}: {job['error']['message']}")
if job["status"] in DONE:
return job
if job["status"] == "ready" and (job.get("error_code") or not auto_start):
return job
print(job["processed"], "of", job["unique_emails"], "done")
time.sleep(5)
job = wait_for_job("job_3Fv8QpL2xM7nC1rT9kW4yB")
if job["status"] == "ready":
print("Not started:", job.get("error_code") or "waiting for POST /start")
elif job["status"] == "completed":
# Only a whole 200 answer replaces results.csv: the download goes to a .part file, moved into place at the end.
with requests.get(
f"{API}/v1/bulk/{job['id']}/results", params={"filter": "all"}, headers=HEADERS, stream=True, timeout=60
) as r:
if not r.ok:
error = r.json()["error"]
raise RuntimeError(f"{error['code']}: {error['message']}")
if r.status_code != 200:
raise RuntimeError(f"HTTP {r.status_code}")
try:
with open("results.csv.part", "wb") as f:
for chunk in r.iter_content(chunk_size=1 << 20):
f.write(chunk)
os.replace("results.csv.part", "results.csv")
finally:
if os.path.exists("results.csv.part"):
os.remove("results.csv.part")Download results
GET /v1/bulk/{id}/results streams a UTF-8 CSV once the job is completed (before that: 409 conflict). It always starts with a header row: for an upload without one we add email over the address column and column_N (its position) over the others.
| Parameter | Description |
|---|---|
filter | all (default), one status, or several separated by commas, e.g. valid,catch_all. The old name risky still works and stands for catch_all,disposable, and so do deliverable (valid) and undeliverable (invalid); any other value is refused. |
columns | original (default) keeps every column of your file; email_only returns the address and our columns. |
escape_formulas | true (default) neutralizes cells from your file that start with =, +, - or @ (also after a comma, semicolon, tab or line break inside a cell, for spreadsheets set to another list separator), so spreadsheets do not run them. Our own columns and the address column are always neutralized. |
To resume an interrupted download with a Range header, ask for a stored file: columns=original with filter=all (with or without escape_formulas), or with a single status of valid, invalid or unknown and escape_formulas=false. Those answers carry Accept-Ranges: bytes, and a range request gets 206 Partial Content (or 416 when the range lies outside the file). Every other answer carries Accept-Ranges: none and returns the whole file with 200, whatever the Range header says, so check for 206 before you append.
Our columns are added after yours:
| Column | Meaning |
|---|---|
ev_status | Status: valid, invalid, catch_all, unknown or disposable. |
ev_reason | Reason for the status. |
ev_action | Recommended action. |
ev_free_email | true when the domain is a free consumer mailbox service. |
ev_role_account | true for team or function addresses. |
ev_disposable | true for throwaway inbox services. |
ev_catch_all_domain | true when the domain accepts mail for any address. |
ev_did_you_mean | Suggested correction for a likely typo. |
ev_mx_found | true when the domain publishes mail records. |
ev_mx_record | Preferred mail server of the domain. |
ev_smtp_provider | Mail provider of the domain (our list; other when unnamed). |
ev_domain_age_days | Domain age in days, when known. |
Job object
| Field | Type | Description |
|---|---|---|
id | string | Bulk job id. |
status | BulkJobStatus | Job lifecycle. |
filename | string or null | The file name of a dashboard upload; null via the API. |
total_rows | integer or null | Data rows in the file (header excluded). |
unique_emails | integer or null | Distinct addresses after normalization that need a mail-server check. Later rows repeating one of them (duplicates), malformed rows (syntax_invalid) and sandbox addresses (local_answered) are counted apart, so total_rows is the sum of the four. |
duplicates | integer or null | Rows that repeat an address seen earlier in the file. |
syntax_invalid | integer or null | Addresses that are not well formed (answered for free). |
local_answered | integer or null | Rows with a sandbox (test) address, <reason>@sandbox.email-validation.org, answered with its fixed result without a mail-server check, all free. Malformed rows are counted in syntax_invalid. |
processed | integer | Of unique_emails, the addresses with a final result so far; a completed job ends with processed equal to unique_emails. Sandbox addresses (local_answered), malformed rows and duplicates are never counted here, so a list of only sandbox addresses completes with processed 0. |
credits_reserved | integer | Credits held when the job started: one per unique address that needs a check. |
credits_charged | integer | Credits actually used. When the job ends, the difference to credits_reserved is returned. |
counts | object | Results so far by status. |
counts.valid (optional) | integer | |
counts.invalid (optional) | integer | |
counts.catch_all (optional) | integer | |
counts.unknown (optional) | integer | |
counts.disposable (optional) | integer | |
error_code | string or null | Why a job failed or is waiting in ready, for example insufficient_credits (the job stays ready) or invalid_csv. Every value: https://email-validation.org/docs/api/bulk/#errors |
webhook_endpoint_id | string or null | Registered webhook endpoint notified about this job. |
created_at | string (date-time) | When the job was created. |
started_at | string or null (date-time) | When checking started; null before. |
finished_at | string or null (date-time) | When the job ended; null before. |
expires_at | string (date-time) | When the uploaded file and the results are deleted (30 days after upload; results of a list that finishes in its last day are kept for 7 days after it finishes). |
Limits
| Item | API | Dashboard |
|---|---|---|
| Formats | CSV, plain text, JSON list | CSV, XLSX, plain text |
| Largest upload | 100 MB, or 100,000 addresses as JSON | 1 GB |
| Rows per file | 1,000,000 | 1,000,000 |
| Columns per row | 512 | 512 |
| Size of one row | 64 KB | 64 KB |
| Kept for | 30 days | 30 days |
A file with too many rows fails with error_code: too_many_rows; one with a row that is too long, too many columns or an unclosed quote fails with error_code: invalid_csv. Neither costs anything.
Error codes
When a job has failed, or waits in ready because it could not start, error_code says why. The bulk.failed webhook carries the same value:
error_code | Job status | When it happens | What to do |
|---|---|---|---|
invalid_csv | failed | The file could not be read: an unclosed quote, a row over 64 KB or more than 512 columns. | Fix the file (or export it again as CSV) and upload it again. Nothing was charged. |
too_many_rows | failed | The file has more than 1,000,000 rows. | Split the list into smaller files. Nothing was charged. |
empty_file | failed | The file has no data rows. | Check that you uploaded the right file. Nothing was charged. |
email_column_not_found | failed | The chosen email column does not exist in the file. | Upload again with the right column (a 1-based index or the header name). Nothing was charged. |
upload_missing | failed | The uploaded file was no longer available, for example because it expired before the job ran. | Upload the file again. Unused credits are returned; a list whose file was deleted 30 days after upload is not charged. |
pipeline_mismatch | failed | The results could not be matched to your file safely, for example after a service update during the job. | Upload the file again. Unused credits are returned. |
missing_results | failed | Some results could not be assembled into the result file. | Upload the file again. Unused credits are returned. If it repeats, check https://email-validation.org/status/. |
internal_error | failed | Something failed on our side. | Upload the file again. Unused credits are returned. If it repeats, check https://email-validation.org/status/. |
insufficient_credits | ready | The balance was lower than the number of unique addresses that need a check, so the job did not start. | Buy credits, then start the job with POST /v1/bulk/{id}/start. |
upstream_capacity | ready | Validation capacity was too low to admit the job right now, so it did not start. | Start the job again later with POST /v1/bulk/{id}/start. |
account_suspended | ready | The account is suspended, so the job did not start. | To contest the suspension, write to legal@email-validation.org with your account email. |
billing_hold | ready | A payment on the account is under review, so the job did not start. | Write to legal@email-validation.org with your account email. |
invalid_key | ready | The account could not be loaded when the job tried to start, or the API key that started it is no longer valid (revoked or expired). | Start the job again with a current key. |
forbidden_scope | ready | The API key that started the job no longer has the bulk scope. | Start the job again with a key that has the bulk scope. |
key_daily_cap | ready | The job would take the API key that started it over its daily credit cap, so it did not start. | Raise or remove the cap for this key in the dashboard, or start the job with another key or the next day. |
upload_expired | ready | The job was not started within 27 days of the upload; the file is deleted after 30 days. | Upload the file again. Nothing was charged. |