# POST /v1/bulk: Create a Bulk Job | API Reference

URL: https://email-validation.org/docs/api-reference/create-bulk-job/
Updated: 2026-11-27

> Documentation index: https://email-validation.org/llms.txt

`POST https://api.email-validation.org/v1/bulk`

Uploads a list and creates a job. Send either a CSV or plain-text file (one address per line) as the raw body with `Content-Type: text/csv` or `text/plain` (up to 100 MB and 1,000,000 rows), or a JSON body `{"emails": [...]}` with up to 100,000 addresses. `Content-Length` is required.  The job starts in `analyzing`: we read the file, remove duplicates and answer malformed addresses for free. Then it either starts on its own (`start=true`, the default) or waits in `ready` until you start it. Credits are held for every unique address that needs a check when the job starts, and anything not used is returned when it ends. Files and 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). Needs a key with the `bulk` scope.  Quotas: an account without a purchase may have at most 2 lists that are `analyzing` or `ready` (jobs that start on their own count while they are analyzed); another upload is a `409 conflict` until one starts or is canceled. Stored lists may take up to 2 GB without a purchase and 20 GB with one; an upload over the quota is a `413 payload_too_large`.

Also served at `https://api-eu.email-validation.org/v1/bulk` (EU data residency: validated and stored in the EU).

## Authentication

Your API key, in one of these headers (a key in the URL is refused; see [Authentication](https://email-validation.org/docs/authentication/)):

- Your API key as a bearer token: `Authorization: Bearer ev_live_…`.
- Alternative header for clients that cannot set `Authorization`.

## Query parameters

- **`column`** · integer or string\
  The column that holds the addresses: a 1-based index (up to 512) or the header name. When omitted we detect it.
- **`has_header`** · boolean\
  Whether the first row is a header. When omitted we detect it.
- **`start`** · boolean\
  Start checking as soon as the file has been analyzed. Set `false` to review the cost first and call the start endpoint later. (default `true`)
- **`webhook_endpoint_id`** · string\
  Id of a webhook endpoint registered in the dashboard. We notify it when the job finishes, even if it did not subscribe to `bulk.completed` / `bulk.failed`, and only it: the endpoints subscribed to those events get nothing for this job, and a disabled endpoint gets nothing. A job created through the API without this parameter sends no webhook. (up to 64 characters)

## Header parameters

- **`Content-Length`** · integer · **required**\
  The size of the body in bytes. Required: a body without it (for example a chunked stream) is refused with `411 length_required`. Most HTTP clients send it on their own when you pass the whole file.

## Request body

Content type: `text/csv`, `text/plain`, `application/json`.

Fields of the `application/json` body:

- **`emails`** · array of string · **required**\
  Up to 100,000 addresses; the JSON body is at most 4 MB (send larger lists as CSV).

## Response

`202`: Job created and being analyzed.

**Headers**

- `X-Request-Id`: Our ID for the request (same as `request_id` in bodies).
- `Location`: URL of the new job.

**Body:** [BulkJob](https://email-validation.org/docs/api-reference/#schema-bulkjob)

- **`id`** · string · **always present**\
  Bulk job id.
- **`status`** · [BulkJobStatus](https://email-validation.org/docs/api-reference/#schema-bulkjobstatus) · **always present**\
  Job lifecycle.
- **`filename`** · string or null · **always present**\
  The file name of a dashboard upload; `null` via the API.
- **`total_rows`** · integer or null · **always present**\
  Data rows in the file (header excluded).
- **`unique_emails`** · integer or null · **always present**\
  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 · **always present**\
  Rows that repeat an address seen earlier in the file.
- **`syntax_invalid`** · integer or null · **always present**\
  Addresses that are not well formed (answered for free).
- **`local_answered`** · integer or null · **always present**\
  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 · **always present**\
  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 · **always present**\
  Credits held when the job started: one per unique address that needs a check.
- **`credits_charged`** · integer · **always present**\
  Credits actually used. When the job ends, the difference to `credits_reserved` is returned.
- **`counts`** · object · **always present**\
  Results so far by status.
- **`error_code`** · string or null · **always present**\
  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 · **always present**\
  Registered webhook endpoint notified about this job.
- **`created_at`** · string (date-time) · **always present**\
  When the job was created.
- **`started_at`** · string or null (date-time) · **always present**\
  When checking started; `null` before.
- **`finished_at`** · string or null (date-time) · **always present**\
  When the job ended; `null` before.
- **`expires_at`** · string (date-time) · **always present**\
  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).

## Errors

An error answer uses no credit. Branch on `code`, never on `message`.

- **`400`** · [`invalid_request`](https://email-validation.org/docs/errors/invalid-request/)\
  A parameter is missing, has the wrong type or is out of range, the `Authorization` header is not `Bearer <key>`, or the API key was sent in the URL (a query parameter named `api_key` in any spelling, such as `apiKey` or `API-KEY`, or any query value that looks like a key). The message names the fields at fault. A method the path does not take (such as `GET /v1/bulk`) is a `405` with an `Allow` header that lists the methods it does take, sent before the key is checked; `/a2a` does the same with `Allow: POST`. `/mcp` checks the key first: with a valid key, any method but `POST` gets its `405` with `Allow: POST` and a JSON-RPC body instead. **What to do:** Correct the request. Send the key in the Authorization header, never in the query string. On a `405`, use a method from `Allow`.
- **`401`** · [`unauthorized`](https://email-validation.org/docs/errors/unauthorized/)\
  No API key was sent, or the key is not valid: unknown, revoked, expired or replaced by a roll. **What to do:** Send a current key as `Authorization: Bearer <key>` (or `X-Api-Key`). Create a new key in the dashboard if needed.
- **`403`** · [`forbidden`](https://email-validation.org/docs/errors/forbidden/)\
  The key lacks the scope this endpoint needs (for example `bulk`), the account is suspended or on a billing hold, or the account has EU-only processing turned on and the request went to https://api.email-validation.org. `GET /v1/latency`, which takes no key, answers it to a browser request made by another website: it serves our website only. **What to do:** Use a key with the right scope, or check the notices in your dashboard. With EU-only processing, send requests to https://api-eu.email-validation.org. For `GET /v1/latency`, call it from a server or a terminal, not from another website's page.
- **`403`** · [`forbidden_origin`](https://email-validation.org/docs/errors/forbidden-origin/)\
  The key is restricted to a list of browser origins and the request came from another `Origin`. **What to do:** Call the API from an allowed origin, or update the allowed origins of the key.
- **`404`** · [`not_found`](https://email-validation.org/docs/errors/not-found/)\
  The resource does not exist or belongs to another account. **What to do:** Check the id. Ids are only visible to the account that created them.
- **`409`** · [`conflict`](https://email-validation.org/docs/errors/conflict/)\
  The request does not fit the current state of the resource, such as starting a bulk job that is still being analyzed or was canceled, failed or expired, canceling a job that has finished, or downloading results before a job has finished. Starting a job that is already queued, running or completed is not a conflict: the job is returned as it is and charged once. `POST /v1/bulk` also answers it when an account without a purchase already has 2 lists that are `analyzing` or `ready`; then no job was created. **What to do:** Read the job again and act on its current `status`. For a refused upload, start or cancel one of the waiting lists first, or buy credits: the limit ends with the first purchase.
- **`411`** · [`length_required`](https://email-validation.org/docs/errors/length-required/)\
  A bulk upload was sent without a `Content-Length` header (for example as a chunked stream). **What to do:** Send the file with a known length. Most HTTP clients do this when you pass the whole file.
- **`413`** · [`payload_too_large`](https://email-validation.org/docs/errors/payload-too-large/)\
  The request body is over the limit: 100 MB for a CSV or TXT bulk upload, 100,000 addresses or 4 MB for a JSON list, 4 MB for an MCP message, 4 KB for a `POST /v1/validate` body. A bulk upload also gets it when it would take the account's stored lists over their quota: 2 GB without a purchase, 20 GB with one. **What to do:** Split the list, or upload large files in the dashboard, which takes files up to 1 GB (the 1,000,000-row limit still applies). Over the storage quota, cancel lists that are waiting to start, or wait until older lists expire, before you upload again; splitting does not help.
- **`429`** · [`rate_limited`](https://email-validation.org/docs/errors/rate-limited/)\
  The account or key sent more requests per second than its limit allows, the IP address sent more than 500 requests per second (requests with a key from Cloudflare Workers, which all share one address, are left out), or the IP address sent more than 20 requests with an invalid key in a minute (its further invalid keys get this for up to a minute; valid keys keep working). `GET /v1/latency` has its own limit instead, 20 requests in 10 seconds per IP address, and test and malformed addresses, which do not count toward the per-second limit, have a separate, much higher safety limit per key. **What to do:** Wait for the number of seconds in `Retry-After`, then retry. Spread requests evenly over time, and fix an invalid key instead of retrying it.
- **`500`** · [`internal_error`](https://email-validation.org/docs/errors/internal-error/)\
  Something failed on our side. No credit was used. **What to do:** Retry later. If it keeps happening, check https://email-validation.org/status/.
- **`503`** · [`service_unavailable`](https://email-validation.org/docs/errors/service-unavailable/)\
  Validation is paused for a short time, for example while a dependency recovers. No credit was used. `GET /v1/status` answers it while no status information is available, and `GET /v1/latency` while its test answer is not in the cache, both with `Retry-After: 60`. **What to do:** Wait for `Retry-After`, then retry. In sign-up forms, accept the address and check it later.

## Examples

### Request

**curl**

```bash
curl https://api.email-validation.org/v1/bulk \
  -H "Authorization: Bearer $EV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"emails":["accepted@sandbox.email-validation.org","catch_all@sandbox.email-validation.org"]}'
```

**JavaScript**

```js
const res = await fetch('https://api.email-validation.org/v1/bulk', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.EV_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ emails: ['accepted@sandbox.email-validation.org', 'catch_all@sandbox.email-validation.org'] }),
  signal: AbortSignal.timeout(20_000),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

res = requests.post(
    "https://api.email-validation.org/v1/bulk",
    headers={"Authorization": f"Bearer {os.environ['EV_API_KEY']}"},
    json={"emails": ["accepted@sandbox.email-validation.org", "catch_all@sandbox.email-validation.org"]},
    timeout=20,
)
data = res.json()
```

**PHP**

```php
<?php
$ch = curl_init('https://api.email-validation.org/v1/bulk');
curl_setopt_array($ch, [
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('EV_API_KEY'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode(['emails' => ['accepted@sandbox.email-validation.org', 'catch_all@sandbox.email-validation.org']]),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 20,
]);
$data = json_decode(curl_exec($ch), true);
```

**Ruby**

```ruby
require 'json'
require 'net/http'

uri = URI('https://api.email-validation.org/v1/bulk')
req = Net::HTTP::Post.new(uri)
req['Authorization'] = "Bearer #{ENV.fetch('EV_API_KEY')}"
req['Content-Type'] = 'application/json'
req.body = JSON.generate({ 'emails' => ['accepted@sandbox.email-validation.org', 'catch_all@sandbox.email-validation.org'] })
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true, read_timeout: 20) { |http| http.request(req) }
data = JSON.parse(res.body)
```

**Go**

```go
package main

import (
	"encoding/json"
	"log"
	"net/http"
	"os"
	"strings"
	"time"
)

func main() {
	req, err := http.NewRequest("POST", "https://api.email-validation.org/v1/bulk", strings.NewReader(`{"emails":["accepted@sandbox.email-validation.org","catch_all@sandbox.email-validation.org"]}`))
	if err != nil {
		log.Fatal(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("EV_API_KEY"))
	req.Header.Set("Content-Type", "application/json")
	client := &http.Client{Timeout: 20 * time.Second}
	res, err := client.Do(req)
	if err != nil {
		log.Fatal(err)
	}
	defer res.Body.Close()
	var data map[string]any
	if err := json.NewDecoder(res.Body).Decode(&data); err != nil {
		log.Fatal(err)
	}
	log.Println(data)
}
```

### Response 202

Example:

```json
{
  "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"
}
```

### Error 400

```json
{
  "error": {
    "code": "invalid_request",
    "message": "The request is invalid.",
    "request_id": "req_7Hq2LmX9cV4bN8tR1zK6wD"
  }
}
```


## More

- Every endpoint and schema on one page: [API reference](https://email-validation.org/docs/api-reference/#createbulkjob).
- The full OpenAPI document: [JSON](https://api.email-validation.org/openapi.json) or [YAML](https://api.email-validation.org/openapi.yaml).
- Free test addresses for every status and reason: [test addresses](https://email-validation.org/docs/test-addresses/).
- Samples with retries and error handling: [code samples](https://email-validation.org/docs/code-samples/).
