# Check ReachInbox Leads Before You Send: Setup Guide

URL: https://email-validation.org/docs/guides/reachinbox/
Updated: 2026-12-04

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

Check the email addresses of a ReachInbox campaign's leads and write each result into four custom fields, so each lead
shows whether its address is worth mailing. A script you run on your own computer reads the campaign's leads, checks
the addresses as one bulk list and writes the results back. It never deletes, pauses or moves a lead, changes its
address or interest status, or touches the campaign's sequence. Download it:
[email-validation-reachinbox.zip](https://email-validation.org/downloads/reachinbox/email-validation-reachinbox.zip) holds `reachinbox.mjs` (the
script) and the MIT licence.

## What you need

- **A computer** with Node 22.18 or later. Nothing to install: the script has no dependencies.
- An API key of ours from the [API keys page](https://email-validation.org/app/api-keys/) with **Validate addresses**, and the permission **Bulk
  lists** (off by default: turn it on when you create the key) for more than 50 leads.
- Your ReachInbox API key: in ReachInbox, **Settings** → **Integrations** → **API**.
- The id of the campaign to check, given as `REACHINBOX_CAMPAIGN_ID`: ReachInbox keeps leads per campaign, so one run
  checks one campaign. To list your campaigns with their ids:

```bash
curl -s -H "Authorization: Bearer $REACHINBOX_API_KEY" https://api.reachinbox.ai/api/v1/campaigns/all
```

Each campaign in `rows` has its `id` and `name`, newest first, 50 at a time: add `?contains=<part of its name>` to find
one, or `?limit=50&offset=50` for the next 50.

## Try it free first

Each checked address can use one credit, so try it with a test campaign that holds only test leads, never your real
ones. Give one test lead the address `no_mailbox@sandbox.email-validation.org` (sandbox checks are free; that domain
receives no mail, so keep the campaign paused and send it nothing), then:

```bash
cd email-validation-reachinbox             # the unzipped folder
export REACHINBOX_API_KEY=… REACHINBOX_CAMPAIGN_ID=… EV_API_KEY=…
node reachinbox.mjs --dry-run              # checks nothing, writes nothing: only counts
node reachinbox.mjs                        # checks and writes
```

In Windows PowerShell (5.1 or 7):

```powershell
cd email-validation-reachinbox             # the unzipped folder
$env:REACHINBOX_API_KEY = "…"; $env:REACHINBOX_CAMPAIGN_ID = "…"; $env:EV_API_KEY = "…"
node reachinbox.mjs --dry-run              # checks nothing, writes nothing: only counts
node reachinbox.mjs                        # checks and writes
```

The lead's `ev_status` field says `invalid` and `ev_reason` says `no_mailbox`. Run it once more: it reports nothing to
check, because every result was written. Then delete the test campaign.

## Run it

```bash
node reachinbox.mjs --dry-run     # how many leads would be checked; free
node reachinbox.mjs               # checks and writes
```

Up to 50 addresses are checked one by one; more go out as one bulk list. A lead whose address already has a result is
skipped (an `unknown` result is checked again), so a daily run checks only new and changed addresses. If a run stops,
run the same command again from the same folder: it resumes the same bulk list and never pays twice (within the
30 days a list is kept). The state file (`.ev-reachinbox-<campaign id>.json`) lives in that
folder, one per campaign. It prints ids and counts, never an address or a key.

ReachInbox allows five API requests a second, so the script keeps each request at least 250 ms after the one before:
one per lead it reads and two more per lead it writes. A campaign of 1,000 leads takes about 21 minutes at the
default rate, about 13 with `--rate 4`. When
ReachInbox refuses for its rate limit or is briefly unavailable, the script tries again three times (after 2, 4 and 8
seconds, or the wait ReachInbox names, up to a minute), then stops; run the same command again, which resumes without
paying twice.

Options:

- `--region eu`: checked in the EU, lists and results kept there, with the same key.
- `--revalidate`: check again addresses that already have a result.
- `--state FILE`: a state file of your own choosing.
- `--rate N`: run steps a second (default 2, at most 4); the 250 ms between ReachInbox requests holds at any rate.
- `--wait-minutes N`: how long to wait for a bulk list to finish (default 240); past it the script stops with exit
  code `75`, and the same command run later collects the list.
- `--new-job`: drop the saved bulk list (once it is no longer running) and start a new one for the leads that still
  have no result; their addresses are charged again.

Exit codes: `0` done; `1` a write failed or the run stopped (run it again: nothing is paid twice); `2` wrong options;
`75` the bulk list was still being checked when the script stopped waiting (run it again later to collect it).

## What it writes

Four custom fields on the lead (nothing to create first):

| Custom field | Holds |
|---|---|
| `ev_status` | `valid`, `invalid`, `catch_all`, `unknown` or `disposable` |
| `ev_reason` | the reason, for example `no_mailbox` or `accepted` |
| `ev_checked_at` | when it was checked |
| `ev_address_hash` | a hash of the address the result belongs to, so a changed address is checked again |

Spam traps and complainers are `valid` with a warning reason: see [what each status means](https://email-validation.org/docs/statuses/). Each
result is written by lead id, and only while the lead still holds the address that was checked. ReachInbox replaces a
lead's custom fields as a whole, so the script sends back every custom field it read a moment before, as it read it,
with its four set; do not edit the campaign's lead fields while it runs. It never sends the lead's interest status,
which would change how the campaign treats the lead. The first write of a run is read back: if anything else of that
lead changed, the script stops there and says so. A result that could not be written is kept in a file next to the
state file and written by the next run without a new check.

## End the access

Delete our key on the [API keys page](https://email-validation.org/app/api-keys/): the script then checks nothing. The ReachInbox API key is your
workspace's own; if it may have been exposed, replace it in ReachInbox (**Settings** → **Integrations** → **API**). The
four custom fields stay on your leads until you remove them in ReachInbox.

## More on ReachInbox

- [ReachInbox email validation integration](https://email-validation.org/integrations/reachinbox/)
