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 parameterDescription
columnThe email column: a 1-based index or the header name. Detected when omitted.
has_headertrue or false. Detected when omitted.
starttrue (default) starts as soon as the file is analyzed; false waits so you can check the cost first.
webhook_endpoint_idA 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:

StatusMeaning
analyzingReading the file, removing duplicates and answering malformed addresses.
readyAnalysis done. Waiting for a start (or for credits when error_code is insufficient_credits).
queuedStarted and waiting for its turn.
runningAddresses are being checked.
cancellingA cancel was requested; work in flight is finishing.
finalizingWriting the result files.
completedResults are ready to download.
failedThe job could not finish; see error_code. Unused credits are returned.
cancelledThe job was canceled. Unused credits are returned.
expiredThe file and the results were deleted at expires_at.
  1. 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.
  2. Start. One credit is held for every unique address that still needs a check. If your balance is too low, the job stays ready with error_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 stays ready with error_code: key_daily_cap (429 on start). A list can be started until 27 days after upload. A job that stays ready with an error_code never starts by itself, so stop polling it. A start refused with 429 abuse_throttled and a Retry-After leaves the job ready with no error_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 (no Retry-After) starts only when you start it again after buying credits.
  3. 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 unknown rows later if you need a definite answer.
  4. Results. When the job is completed, credits for results that ended unknown are 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

RequestDoes
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}/startStarts 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 $headers

JavaScript

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.

ParameterDescription
filterall (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.
columnsoriginal (default) keeps every column of your file; email_only returns the address and our columns.
escape_formulastrue (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:

ColumnMeaning
ev_statusStatus: valid, invalid, catch_all, unknown or disposable.
ev_reasonReason for the status.
ev_actionRecommended action.
ev_free_emailtrue when the domain is a free consumer mailbox service.
ev_role_accounttrue for team or function addresses.
ev_disposabletrue for throwaway inbox services.
ev_catch_all_domaintrue when the domain accepts mail for any address.
ev_did_you_meanSuggested correction for a likely typo.
ev_mx_foundtrue when the domain publishes mail records.
ev_mx_recordPreferred mail server of the domain.
ev_smtp_providerMail provider of the domain (our list; other when unnamed).
ev_domain_age_daysDomain age in days, when known.

Job object

FieldTypeDescription
idstringBulk job id.
statusBulkJobStatusJob lifecycle.
filenamestring or nullThe file name of a dashboard upload; null via the API.
total_rowsinteger or nullData rows in the file (header excluded).
unique_emailsinteger or nullDistinct 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.
duplicatesinteger or nullRows that repeat an address seen earlier in the file.
syntax_invalidinteger or nullAddresses that are not well formed (answered for free).
local_answeredinteger or nullRows 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.
processedintegerOf 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_reservedintegerCredits held when the job started: one per unique address that needs a check.
credits_chargedintegerCredits actually used. When the job ends, the difference to credits_reserved is returned.
countsobjectResults 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_codestring or nullWhy 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_idstring or nullRegistered webhook endpoint notified about this job.
created_atstring (date-time)When the job was created.
started_atstring or null (date-time)When checking started; null before.
finished_atstring or null (date-time)When the job ended; null before.
expires_atstring (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

ItemAPIDashboard
FormatsCSV, plain text, JSON listCSV, XLSX, plain text
Largest upload100 MB, or 100,000 addresses as JSON1 GB
Rows per file1,000,0001,000,000
Columns per row512512
Size of one row64 KB64 KB
Kept for30 days30 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_codeJob statusWhen it happensWhat to do
invalid_csvfailedThe 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_rowsfailedThe file has more than 1,000,000 rows.Split the list into smaller files. Nothing was charged.
empty_filefailedThe file has no data rows.Check that you uploaded the right file. Nothing was charged.
email_column_not_foundfailedThe 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_missingfailedThe 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_mismatchfailedThe 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_resultsfailedSome 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_errorfailedSomething failed on our side.Upload the file again. Unused credits are returned. If it repeats, check https://email-validation.org/status/.
insufficient_creditsreadyThe 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_capacityreadyValidation 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_suspendedreadyThe account is suspended, so the job did not start.To contest the suspension, write to legal@email-validation.org with your account email.
billing_holdreadyA payment on the account is under review, so the job did not start.Write to legal@email-validation.org with your account email.
invalid_keyreadyThe 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_scopereadyThe 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_capreadyThe 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_expiredreadyThe job was not started within 27 days of the upload; the file is deleted after 30 days.Upload the file again. Nothing was charged.

Updated · Maintained by: Email Validation LLC

Need help? Contact support, or ask the help chat. Something wrong or missing on this page? Tell us