# Check Mixmax Contacts Before You Send

URL: https://email-validation.org/docs/guides/mixmax/
Updated: 2026-11-29

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

Check the email addresses of your Mixmax contacts and write each result into four contact variables, so each contact
shows whether its address is worth mailing. A script you run on your own computer reads your contacts, checks the
addresses as one bulk list and writes the results back. It never deletes a contact, changes its address or name, or
touches a sequence. Download it:
[email-validation-mixmax.zip](https://email-validation.org/downloads/mixmax/email-validation-mixmax.zip) holds `mixmax.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 contacts.
- A personal Mixmax API token: in Mixmax, **Settings** → **Integrations** → **API**. An admin-managed API key cannot
  read contacts, so use a personal token. The script reads the contacts you own; contacts teammates share with you are
  left out.

## Try it free first

Every checked address uses one credit, so try it with a Mixmax user that owns only test contacts, never your real
ones. Give one test contact the address `no_mailbox@sandbox.email-validation.org` (sandbox checks are free; that domain
receives no mail, so send it nothing), then:

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

The contact's `ev_status` variable 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 contact.

## Run it

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

Up to 50 addresses are checked one by one; more go out as one bulk list. A contact 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-mixmax-<user id>.json`) lives in that folder. It
prints ids and counts, never an address or a token.

Mixmax allows 120 API requests a minute per user, so the script sends one a second (`--rate 2` sends two), about two
per contact it writes: thousands of contacts take hours. When Mixmax refuses for its rate limit, the script tries again
three times (after 2, 4 and 8 seconds, or the wait Mixmax 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.
- `--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 contacts 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 contact variables (Mixmax keeps them with the contact, beside variables such as `Company`):

| Variable | 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 contact id, and only while the contact still holds the address that was checked. Mixmax replaces
a contact's variables as a whole, so the script sends back every variable it read a moment before, as it read it, with
its four set; do not edit contact variables while it runs. Mixmax drops a variable named `cc` from every such write,
so a contact that has one is not written (rename it, and the next run writes the kept result). The first write of a
run is read back: if anything else of
that contact 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.

Mixmax marks the contacts part of its API as deprecated, with no replacement and no removal date. If Mixmax removes
it, the script stops with an error; nothing is checked once it cannot read your contacts.

## End the access

Delete the Mixmax API token where you created it, and our key on the [API keys page](https://email-validation.org/app/api-keys/). The four
variables stay on your contacts until you remove them in Mixmax.

## More on Mixmax

- [Mixmax integration](https://email-validation.org/integrations/mixmax/)
