# Validate Drip Subscribers

URL: https://email-validation.org/docs/guides/drip/
Updated: 2026-11-26

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

Check the addresses of your Drip subscribers and write each subscriber's result into four custom fields, so your
segments, workflows and broadcasts can leave out the addresses you should not mail. Two pieces, use either or both: a
sync script you run on your own computer checks a whole group as one bulk list, and a small relay you deploy to your
own Cloudflare account checks each new subscriber as they sign up. Neither one deletes, unsubscribes or re-subscribes
anyone. Download them: [email-validation-drip.zip](https://email-validation.org/downloads/drip/email-validation-drip.zip) holds `drip.mjs` (the
sync script), `relay.mjs` (the relay), `webhook.json` and the MIT licence.

## What you need

- **Browser or computer.** The relay needs only a browser ([dashboard steps](#relay-dashboard)). The sync script
  needs a computer with Node 22.18 or later; it has no browser-only option. Nothing to install: it has no
  dependencies.
- An API key of ours from the [API keys page](https://email-validation.org/app/api-keys/): with the permission **Bulk lists** for the sync (off
  by default: turn it on when you create the key), with **Validate addresses** for the relay (on by default). One key
  can have both.
- Your Drip API token: in Drip, your user settings → API Token. It reaches every Drip account your user can open,
  with your rights, so keep it like a password.
- For the relay only: a Cloudflare account to run it in (and Cloudflare's `wrangler` command, `npx wrangler`, if
  you deploy it from a terminal).

## Before the first run: Drip automations

Each result is written as a custom field change (and, with `--tag-remove`, an applied tag), and Drip workflows and
rules can start on those. Before the first run, look at your workflows and rules for triggers on a custom field change
or on any applied tag, and pause or narrow them. A trigger on `ev_action` being `remove` is the intended use.

## Run the sync

```bash
cd email-validation-drip                                # the unzipped folder
export EV_API_KEY=…  DRIP_API_TOKEN=…
node drip.mjs --accounts                                # the Drip accounts your token reaches: id, name
export DRIP_ACCOUNT_ID=…
node drip.mjs --groups                                  # the groups you can clean, with their counts
node drip.mjs --group "tag:Customer" --dry-run          # what it would check; spends nothing, writes nothing
node drip.mjs --group "tag:Customer"                    # checks and writes the fields
node drip.mjs --group all --tag-remove                  # every subscriber; also tags the remove ones ev:remove
```

A group is every subscriber of the account (`all`), one tag's subscribers (`tag:<name>`, named exactly as in Drip) or
one email series campaign's (`campaign:<id>`). Drip's API cannot read the members of a segment or a workflow: clean
the tag, or the whole account, the segment is built from. Only active subscribers are checked, and subscribers that
already have a result (other than `unknown`) are skipped; `--revalidate` checks them again. `--region eu` checks and
keeps the list in the EU, with the same key.

The sync does not ask before it spends: run it with `--dry-run` first to see how many subscribers it would check.
Each distinct address uses one credit; `unknown` results, duplicates and malformed addresses are free.

## What it writes

| Custom field | Value |
|---|---|
| `ev_status` | `valid`, `invalid`, `catch_all`, `unknown` or `disposable` ([statuses](https://email-validation.org/docs/statuses/)) |
| `ev_reason` | why, for example `accepted`, `no_mailbox`, `spamtrap` |
| `ev_action` | `send`, `send_with_caution`, `remove` or `retry_later` |
| `ev_checked_at` | when the check ran, in UTC |

Build a segment on "ev_action is remove" to leave out the subscribers you should not mail: spam traps and
complainers are `valid` with the action `remove`. Drip creates each field with the first value written, so there is
nothing to set up first (`node drip.mjs --setup` checks the token and says which fields exist yet).

`--tag-remove` also applies the tag `ev:remove` to the subscribers whose action is `remove`. It only adds the tag:
a subscriber checked again later with another result keeps it, so `ev_action` is the field to trust. Remove the tag
in Drip at any time.

The sync writes by subscriber id, never by address, so it can only update a subscriber that exists; it sends no
status, so it never re-subscribes anyone, and no field but these four. It reads each subscriber again right before
writing: one whose address changed since the check is not written (the next run checks the new address), and one
who unsubscribed meanwhile gets nothing. If Drip's answer to the first write shows that anything else changed, the
run stops before a second subscriber is written; such an answer to a later write stops it at once.

## How long it takes

Each written subscriber takes two Drip requests, and the sync paces them to stay under Drip's hourly request limit for
your token, which your other apps using that token share: a large group takes hours to write back. `--rate N` sets
how many Drip requests a minute it sends (50 by default, at most 60). The check itself runs on our side and is not
slowed by Drip.

## The relay: new subscribers as they sign up

The relay is a Cloudflare Worker in your own account. No terminal? [Deploy it from the Cloudflare
dashboard](#relay-dashboard) instead. Or deploy it from the unzipped folder:

```bash
npx wrangler deploy relay.mjs --name ev-drip-relay --compatibility-date 2026-10-01 --var DRIP_ACCOUNT_ID:<account id>
npx wrangler secret put EV_API_KEY --name ev-drip-relay          # our API key
npx wrangler secret put DRIP_API_TOKEN --name ev-drip-relay      # your Drip API token
openssl rand -hex 32                                             # a new secret for the relay's address
npx wrangler secret put DRIP_RELAY_SECRET --name ev-drip-relay   # paste that secret
```

Add `--var EV_REGION:eu` to the deploy command to have addresses validated in the EU and their results stored there.

Then add a webhook in Drip (Settings → Webhooks) whose address is the relay's address with the secret as its path,
`https://ev-drip-relay.<your subdomain>.workers.dev/<secret>`, for the one event **`subscriber.created`**. Or send
`webhook.json`, with that address filled in, as the body of `POST https://api.getdrip.com/v2/<account id>/webhooks`
with your API token. Name that one event: Drip sends almost every event to a webhook that names none.

### Deploy the relay from the Cloudflare dashboard

No terminal and nothing to install: every step happens in your browser.

1. In the [Cloudflare dashboard](https://dash.cloudflare.com/), open **Workers & Pages → Create** and choose
   **Create Worker** (the "Hello World" starter). Name it `ev-drip-relay` and select **Deploy**.
2. Select **Edit code**, delete the starter code, paste the whole of `relay.mjs` from the box below (**Copy** takes
   all of it) and select **Deploy**.
3. In the Worker's **Settings → Variables and Secrets**, select **Add** for each value below, then **Deploy**:
   - type **Text**: `DRIP_ACCOUNT_ID` = your Drip account id (and `EV_REGION` = `eu` to have addresses validated
     in the EU and their results stored there);
   - type **Secret**: `EV_API_KEY` (our API key), `DRIP_API_TOKEN` (your Drip API token) and `DRIP_RELAY_SECRET`
     (32 or more random letters and digits).
4. The relay's address, such as `https://ev-drip-relay.<your-subdomain>.workers.dev/`, is on the Worker's page.
   Then add the webhook in Drip as described above, with your `DRIP_RELAY_SECRET` as the address's path.

For a random secret without a terminal, use your password manager's generator: 32 or more letters and
digits.

Open [relay.mjs as plain text](https://email-validation.org/downloads/drip/relay.mjs.txt), select all of it and copy it.

### Who can call the relay

Drip does not sign its webhooks, so the relay protects itself in two ways. It answers only on the secret path, so
treat the webhook's address as a secret (if it leaks, make a new secret and change the webhook). And it trusts
nothing in a delivery but the event, the account and the subscriber's id: it reads the subscriber from Drip with your
token and checks the address Drip holds, only for an active subscriber without a result. Each checked subscriber
costs three Drip requests from the same hourly limit, so for a large import run the sync instead.

Try it once with a test subscriber at `no_mailbox@sandbox.email-validation.org` (test addresses cost nothing), added
to no campaign or workflow: the sandbox domain receives no mail. Within seconds it should have `ev_status` `invalid`
and `ev_action` `remove`. Then delete the test subscriber in Drip.

## Run it again

Run the same sync command again after any stop (no credits, a closed laptop, Drip's rate limit, the bulk list still
running): it resumes the same bulk list and never pays twice (within the 30 days a list is kept). Run it from the same folder each time (or pass the same
`--state FILE`): the file it keeps there holds the bulk list it is working on, never an address or a key. When every
subscriber is written, the file is removed and the next run checks only subscribers without a result (or with `unknown`), such
as new ones, so you can run it on a schedule, for example daily with cron.

If one subscriber's write keeps failing, each run resumes the same bulk list and exits `1`, and subscribers added
since wait. Once you have looked at that subscriber in Drip, `--new-job` starts a new bulk list: it checks, and
charges, only the subscribers that still have no result (or `unknown`).

Exit codes: `0` done, `1` a write failed or the run stopped (run it again), `2` wrong arguments, `75` the bulk list
was still running when the script stopped waiting (run it again later).

The sync prints subscriber ids, job ids and counts, never an address or a key; the relay logs nothing.

## More on Drip

- [Drip integration](https://email-validation.org/integrations/drip/)
- [Cleaning a Drip subscriber list](https://email-validation.org/guides/clean-email-list-drip/)
