# Verify up to 100 emails in one call

Source: https://docs.rocketverifier.com/api/verify-batch
Endpoint: `POST https://api.rocketverifier.com/v1/verify/batch` (OAuth scope `verify:single`)

> Send 1 to 100 addresses to POST /v1/verify/batch and get the full /v1/verify result for each one in the same response, in input order, with your own ref and a duplicate flag. Each address with a real answer costs 1 credit; unknown results and repeated addresses are free. There is no job to poll.

cURL:

```bash
curl -X POST https://api.rocketverifier.com/v1/verify/batch \
  -H "Authorization: Bearer $ROCKETVERIFIER_API_KEY" \
  -H "Idempotency-Key: 4f0c7d2e-9b1a-4c3e-8d5f-6a2b1e0c9d47" \
  -H "Content-Type: application/json" \
  -d '{
    "emails": [
      "maya@northwind.io",
      { "email": "devon@northwind.io", "ref": "crm-1042" },
      "maya@northwind.io"
    ],
    "timeout": 20
  }'
```

Node.js:

```js
import RocketVerifier from "@rocketverifier/sdk";

const rv = new RocketVerifier(process.env.ROCKETVERIFIER_API_KEY);

const batch = await rv.verifyBatch(
  ["maya@northwind.io", { email: "devon@northwind.io", ref: "crm-1042" }, "maya@northwind.io"],
  { timeout: 20 },
);
for (const r of batch.results) {
  console.log(r.email, r.status, r.ref, r.duplicate);
}
console.log(batch.creditsCharged, batch.creditsRemaining);
```

Python:

```python
import os
from rocketverifier import RocketVerifier

rv = RocketVerifier(os.environ["ROCKETVERIFIER_API_KEY"])

res = rv.verify_batch(
    ["maya@northwind.io", {"email": "devon@northwind.io", "ref": "crm-1042"}, "maya@northwind.io"],
    timeout=20,
)
for r in res.results:
    print(r.email, r.status, r.ref, r.duplicate)
print(res.credits_charged, res.credits_remaining)
```

Response 200:

```json
{
  "results": [
    {
      "email": "maya@northwind.io",
      "action": "send",
      "action_reason": "The mailbox exists and accepts mail.",
      "status": "deliverable",
      "sub_status": "none",
      "score": 97,
      "smtp": { "code": 250, "enhanced_code": "2.1.5", "message": "250 2.1.5 OK" },
      "ref": null,
      "duplicate": false
    },
    {
      "email": "devon@northwind.io",
      "action": "remove",
      "action_reason": "The mail server says this mailbox does not exist.",
      "status": "undeliverable",
      "sub_status": "mailbox_not_found",
      "score": 2,
      "ref": "crm-1042",
      "duplicate": false
    },
    {
      "email": "maya@northwind.io",
      "action": "send",
      "action_reason": "The mailbox exists and accepts mail.",
      "status": "deliverable",
      "sub_status": "none",
      "score": 97,
      "ref": null,
      "duplicate": true
    }
  ],
  "count": 3,
  "credits_charged": 2,
  "credits_remaining": 9998
}
```

`POST /v1/verify/batch` verifies up to 100 addresses in one real-time call. Every address goes through the same engine as [`POST /v1/verify`](https://docs.rocketverifier.com/api/verify), in parallel, and the response holds one full result object per entry, in the order you sent them. The example above is shortened: each result carries every field of a single verification.

## Send a batch

Send a JSON body with 1 to 100 entries. An entry is an address, or an object with the address and your own `ref`, such as a CRM id or a row number, which comes back on its result. Authenticate with an API key, or with an OAuth token that has the `verify:single` scope.

- `Authorization` (string, required):

`Bearer <API key or access token>`. An API key also works as `X-API-Key: <key>`. See [authentication](https://docs.rocketverifier.com/authentication).

- `Idempotency-Key` (string):

Any unique string, such as a UUID. Retrying with the same key within 24 hours returns the original response and never charges again.

- `RocketVerifier-Version` (string):

`2026-11-01` or `2025-01-01`. Picks how catch-all results map onto `status`, the same way as on single verifications. See [result versions](https://docs.rocketverifier.com/versioning).

**Body**

| Field | Type | Description |
| --- | --- | --- |
| `emails` | array of strings or objects | 1 to 100 addresses, as strings or `{email, ref}` objects (mixing is fine). A repeated address is verified once. required; 1 to 100 items |
| `timeout` | integer | Deadline for the whole call in seconds. Addresses still waiting for their mail server then are `unknown` and free. 3 to 60; default 30 |

**Entry object**

| Field | Type | Description |
| --- | --- | --- |
| `email` | string | required; up to 320 characters |
| `ref` | string or null | Your own id for this row (a CRM id, a row number), returned on its result. up to 200 characters |

- **Timeout:** `timeout` is the deadline for the whole call, from 3 to 60 seconds (default 30). An address whose mail server has not answered by then comes back `unknown` and free, so the call always returns on time.
- **Repeats:** addresses are compared case-insensitively, and Gmail addresses that differ only by dots or a `+tag` count once. Each unique address is verified and charged once; every repeat still gets its own result, marked `duplicate: true`, with its own `ref`.
- **Rate limits:** one batch call counts as one request. See [rate limits](https://docs.rocketverifier.com/rate-limits).

## Read the results

The response holds one item per entry, in input order, plus the call's cost and your remaining balance. The `RV-Credits-Charged` and `RV-Credits-Remaining` response headers carry the same two numbers.

| Field | Type | Description |
| --- | --- | --- |
| `results` | array of objects | One per entry, in input order. |
| `results.email` | string | The address as verified, trimmed and with a lowercased domain. |
| `results.status` | enum | The field to branch on. `deliverable`: the mail server confirmed the mailbox. `undeliverable`: the address will bounce or is disposable. `risky`: it accepts mail but carries a risk such as a catch-all domain, role address, full mailbox or trap signals. `unknown`: no conclusive answer, never charged. With result version `2025-01-01`, catch-all addresses are reported as `unknown` instead of `risky`. one of `deliverable`, `undeliverable`, `risky`, `unknown` |
| `results.reason` | enum | Legacy reason code derived from `sub_status`. Kept for older integrations. Use `sub_status` in new code. one of `accepted_email`, `rejected_email`, `invalid_syntax`, `invalid_domain`, `no_mx_record`, `disposable_email`, `role_based`, `catch_all`, `timeout`, `blocked`, `account_disabled`, `mailbox_full`, `spam_trap`, `known_complainer`, `suppressed`, `toxic`, `unknown` |
| `results.sub_status` | enum | The precise reason behind `status`. See the sub_status reference for what each value means and costs. one of `none`, `alias`, `forwarder`, `mailbox_not_found`, `account_disabled`, `does_not_accept_mail`, `invalid_syntax`, `invalid_domain`, `disposable`, `catch_all`, `role_based`, `mailbox_full`, `possible_trap`, `toxic`, `do_not_mail`, `accepts_then_bounces`, `privacy_relay`, `parked_domain`, `possible_typo`, `dns_error`, `greylisted`, `blocked`, `smtp_timeout`, `no_connect`, `smtp_unavailable` |
| `results.catch_all_verdict` | enum or null | Send recommendation for this exact address when the domain accepts every address. Null for other domains. one of `send_safe`, `send_with_caution`, `avoid` |
| `results.verified_at` | string (date-time) or null | When the result was produced, in UTC. Earlier than the request when the result came from cache. |
| `results.domain` | object | Facts about the domain. Yes and no values are strings. |
| `results.domain.name` | string | The domain part of the address. |
| `results.domain.acceptAll` | enum | Whether the domain accepts every address (catch-all). one of `yes`, `no`, `unknown` |
| `results.domain.disposable` | enum | Whether the domain belongs to a disposable inbox provider. one of `yes`, `no` |
| `results.domain.free` | enum | Whether the domain is a free mailbox provider such as Gmail or Outlook.com. one of `yes`, `no` |
| `results.domain.acceptAllConfidence` | integer or null | Confidence that this mailbox is real on a catch-all domain. Set only when `acceptAll` is `yes`. 0 to 100 |
| `results.domain.acceptAllVerdict` | enum or null | Legacy catch-all verdict kept for older integrations. Prefer the top-level `catch_all_verdict`. one of `send_safe`, `risky_catch_all`, `unlikely` |
| `results.account` | object | Facts about the mailbox. Yes and no values are strings. |
| `results.account.role` | enum | Whether this is a role address such as info@ or admin@. one of `yes`, `no` |
| `results.account.disabled` | enum | Whether the mailbox is disabled. one of `yes`, `no`, `unknown` |
| `results.account.fullMailbox` | enum | Whether the mailbox is over quota. one of `yes`, `no`, `unknown` |
| `results.dns` | object | The mail route found in DNS. |
| `results.dns.type` | enum | Record type used for delivery. one of `MX`, `A`, `CNAME` |
| `results.dns.record` | string or null | The record value, such as the MX host. |
| `results.provider` | string or null | Mailbox provider domain, such as `google.com`, `outlook.com` (consumer Outlook and Hotmail) or `microsoft365.com` (Microsoft 365 business mail). Null for other mail servers. |
| `results.score` | integer | A 0 to 100 deliverability score built from the mailbox check, domain signals and real bounce outcomes. Higher is better. 0 to 100 |
| `results.authentication_score` | integer | How well the domain is set up for sending, from its SPF, DKIM and DMARC records. 0 to 100 |
| `results.deliverability_tier` | enum | The score grouped into a tier for simple segmenting. one of `excellent`, `good`, `fair`, `poor`, `unknown` |
| `results.toxic` | enum | Whether the address is linked to abuse, complaints or bot signups. A string, not a boolean. one of `yes`, `no` |
| `results.abuse` | enum | Whether the address is a known complainer. A string, not a boolean. one of `yes`, `no` |
| `results.spam_trap` | enum | Whether the address matches spam trap signals. A string, not a boolean. one of `yes`, `no` |
| `results.did_you_mean` | string or null | Suggested correction when the domain looks like a typo, such as `gmail.com` for `gmial.com`. |
| `results.activity` | object or null | How often and how consistently your own account has verified this address. |
| `results.activity.verification_count` | integer | How many times your account verified this address in the last 90 days (up to 50). |
| `results.activity.activity_score` | integer | How active the address appears. 0 to 100 |
| `results.activity.stability_score` | integer | How consistent its results have been over time. 0 to 100 |
| `results.evidence` | object or null | The raw checks behind the verdict (DNS, MX, SMTP replies) and, on catch-all domains, the reasoning behind the plausibility score. Use it for audits and debugging. Its shape varies by path, so do not parse it in application logic. |
| `results.smtp_provider` | string or null | Mail system behind the MX records, such as `gmail`, `google_workspace`, `outlook`, `microsoft_365`, `yahoo`, `icloud`, `zoho`, `protonmail` or `custom`, or the gateway's name when one sits in front. The download's `smtp_provider` column has the same values. Null when the domain has no MX. |
| `results.gateway` | string or null | Security gateway in front of the mailbox provider, such as `proofpoint`, `mimecast` or `barracuda`. |
| `results.mx_found` | boolean or null | Whether the domain publishes MX records or an implicit MX. |
| `results.mx_record` | string or null | Highest priority MX host. |
| `results.catch_all` | object or null | Catch-all details. Null unless the domain accepts every address. |
| `results.catch_all.verdict` | enum or null | Same value as `catch_all_verdict`. one of `send_safe`, `send_with_caution`, `avoid` |
| `results.catch_all.score` | integer or null | Plausibility that this mailbox is real. 0 to 100 |
| `results.catch_all.method` | enum | How the score was reached. one of `pattern`, `heuristic` |
| `results.catch_all.reasons` | array of strings | Plain language reasons behind the score. |
| `results.retry_after` | integer or null | For `unknown` results only. Seconds to wait before checking again; a greylisting server's stated wait when it gives one. |
| `results.verdict_source` | enum or null | Which step decided the result. `domain_checks` means the domain and address checks before the mailbox check. one of `cache`, `syntax`, `list`, `dns`, `smtp`, `domain_checks` |
| `results.engine_version` | string or null | Version of the verification engine and verdict rules that produced the result, such as `2.2`. |
| `results.mx_records` | array of strings | Every MX host of the domain, best first. |
| `results.smtp` | object or null | The mail server's answer to the mailbox check. Null when no mail server answered. |
| `results.smtp.code` | integer or null | Basic reply code, such as 250 or 550. |
| `results.smtp.enhanced_code` | string or null | RFC 3463 enhanced status code, such as `5.1.1`. |
| `results.smtp.message` | string or null | The server's reply text. |
| `results.domain_age_days` | integer or null | Days since the domain was registered, when known. |
| `results.recheck` | object or null | Set when a greylisted address will be checked again; the settled result arrives as `email.verified`. |
| `results.recheck.scheduled` | boolean |  |
| `results.recheck.after_seconds` | integer | When the re-check runs, in seconds from now. |
| `results.action` | enum | What to do with the address, in one field. `send`: the mailbox is confirmed. `remove`: it will bounce or is disposable. `review`: it accepts mail with a risk (catch-all, role address, full mailbox, trap or abuse signals) or got no conclusive answer yet. The same mapping as the dashboard, CRM write-backs and the Zapier app. one of `send`, `review`, `remove` |
| `results.action_reason` | string | One plain sentence behind `action`, written for people and AI agents, such as "The mail server says this mailbox does not exist." |
| `results.is_privacy_relay` | boolean | A privacy relay alias (Apple Hide My Email, Firefox Relay, DuckDuckGo, SimpleLogin, addy.io and others) that its owner can switch off at any time. Reported even when `sub_status` names a stronger reason. |
| `results.is_alias` | boolean | The address carries a `+tag` subaddress of another mailbox, such as `jane+promo@company.com`. |
| `results.is_agent_inbox` | boolean | A programmatic inbox made to be created and read by software and AI agents (inbox APIs and test mail services). Useful for signup protection. |
| `results.canonical_email` | string or null | The mailbox this address delivers to, without a `+tag` and, for Gmail, without dots. Two addresses with the same `canonical_email` reach the same inbox, so use it to spot repeat signups. Null when the syntax is invalid. |
| `results.processing_time_ms` | integer or null | Time spent on a live check, in milliseconds. Null for cached and sandbox results. |
| `results.ref` | string or null | The entry's `ref`, if it had one. |
| `results.duplicate` | boolean | True for a repeat of an earlier entry's address (same result, never charged). |
| `count` | integer |  |
| `credits_charged` | integer | Final cost of the call. |
| `credits_remaining` | integer |  |

Each item is the full [verification result](https://docs.rocketverifier.com/api/verify#response), with `action`, `action_reason`, `status`, `sub_status`, `score`, `smtp`, `mx_records`, the [address flags](https://docs.rocketverifier.com/results#address-flags) and every other field, plus the two fields below. The [reading results guide](https://docs.rocketverifier.com/results) explains how to act on each value.

| Field | Type | Description |
| --- | --- | --- |
| `ref` | string or null | The entry's `ref`, if it had one. |
| `duplicate` | boolean | True for a repeat of an earlier entry's address (same result, never charged). |

## Credits

- **1 credit** for every unique address with a real answer: `deliverable`, `undeliverable` or `risky`.
- **Free:** `unknown` results, repeated addresses, addresses on your own suppression list and [sandbox addresses](https://docs.rocketverifier.com/sandbox).
- **Charged up front, settled at once:** the call reserves 1 credit per unique address and returns the credits for free results before it responds, so `credits_charged` is the final cost. The balance must cover the unique addresses when the call starts.
- **Sandbox keys:** an `rv_test_` key accepts batches made only of sandbox addresses, works with an empty balance and never charges.

Each real address verified in the call also fires an [`email.verified`](https://docs.rocketverifier.com/api/webhooks#emailverified) event, and greylisted addresses are [checked again](https://docs.rocketverifier.com/api/verify#re-check-greylisted-addresses) for you when you listen for it.

## Errors

| Status | `error.code` | When it happens |
| --- | --- | --- |
| 400 | `no_emails` | The list is empty, or every entry is blank. |
| 400 | `too_many_emails` | More than 100 entries. `details.max` is 100 and `details.provided` is the number sent. Use a [bulk job](https://docs.rocketverifier.com/api/batch) for larger lists. |
| 401 | `unauthorized`, `api_key_expired` | The key is missing, invalid, revoked or expired. |
| 402 | `insufficient_credits` | The balance does not cover the unique addresses. `details.required` and `details.available` say by how much. |
| 402 | `api_key_spend_cap_reached` | The call would pass this key's monthly spend cap. |
| 403 | `sandbox_key_restricted` | An `rv_test_` key was sent real addresses. `details.non_sandbox_count` says how many. |
| 403 | `insufficient_scope` | The credential lacks `verify:single`. |
| 409 | `idempotency_in_progress` | A retry with the same `Idempotency-Key` arrived while the first call was still running. Retry after `Retry-After`. |
| 422 | `idempotency_key_reused` | The `Idempotency-Key` was already used for a different request. Use a new key. |
| 422 | `validation_error` | The body is not valid JSON, an entry is neither a string nor an object with `email`, a `ref` is longer than 200 characters, or `timeout` is outside 3 to 60. |
| 429 | `rate_limited` | Too many requests. Wait for the `Retry-After` seconds. |
| 500 | `verification_failed` | The call could not be completed. Every reserved credit is returned; retry with the same `Idempotency-Key`. |

Every error uses the [standard error shape](https://docs.rocketverifier.com/api#handle-errors).

## Frequently asked questions

### When should I use the batch call instead of a bulk job?

Use POST /v1/verify/batch when a person or a process is waiting for up to 100 answers, such as a CRM import screen or a form with several addresses. Use a bulk job for lists, which take up to 100,000 addresses as JSON or 500,000 as a file.

### How long does a batch call take?

The addresses are verified in parallel, so a call takes about as long as its slowest mail server, up to the timeout. Set timeout from 3 to 60 seconds (default 30). Addresses whose mail server has not answered by then come back unknown and free.

### Am I charged for repeated addresses?

No. Each unique address is verified and charged once. A repeat comes back as its own result with duplicate set to true and costs nothing.

### Does a batch call count against my rate limit once?

Yes. One batch call is one request, whatever the number of addresses in it.
