Email platforms

Customer.io integration

A sync script you run on your own computer checks the people of a Customer.io segment as one bulk list and writes each person’s result into four attributes. A data-driven segment on ev_action leaves out the addresses you should not mail.

Read the full setup guideGet an API key

  • Setup guide
  • A script you download

customerio.mjsNode 22.18 or later

Terminal
export EV_API_KEY=…  CUSTOMERIO_API_KEY=…
node customerio.mjs --segments
node customerio.mjs --segment <id> --dry-run
node customerio.mjs --segment <id>

At a glance.

Status
Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
For
Teams who run campaigns and broadcasts from Customer.io and want the people whose address will bounce, or should not be mailed at all, marked so a segment can leave them out.
You need
Node 22.18 or later, an API key of ours with Bulk lists (off by default), and a Customer.io private key (sk_us_ or sk_eu_) from Account Settings → API Credentials.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses and test addresses on sandbox.email-validation.org.
Full guide
Read the full setup guide

Typical uses.

  • Leave out the addresses to remove

    Each person gets ev_status, ev_reason, ev_action and ev_checked_at. A data-driven segment “ev_action is equal to remove” holds everyone you should not mail.

  • Trust ev_action

    Spam traps and complainers are valid with the action remove, so filter on ev_action, not ev_status.

  • Check new people daily

    Customer.io’s reporting webhooks send no event when a person is added, so run the sync on a schedule: each run checks only people without a result.

Set it up. 3 steps.

The short version of the full setup guide, which stays the reference when a step does not match what you see.

Read the full setup guide

  1. Download and unzip

    It is not on a marketplace: download email-validation-customerio.zip from the guide. It holds customerio.mjs and the licence.

  2. Pick a segment

    node customerio.mjs --segments shows each segment’s id, kind and size. To clean everyone, make a data-driven segment such as “Email exists”.

  3. Dry run, then run

    node customerio.mjs --segment <id> --dry-run counts what it would check and spends nothing. Run it again without --dry-run: it does not ask before it spends.

Good to know.

  • It sends only its four attributes, to the people it read from the segment, naming each by Customer.io’s own id: it never unsubscribes, suppresses or deletes anyone.

  • A new attribute value can move people between data-driven segments and start a campaign triggered by one: look at your triggers before the first run.

  • Run the same command again after any stop and it resumes the same bulk list without paying twice (within the 30 days a list is kept). It prints ids and counts, never an address or a key.

  • --region eu checks and keeps the list in the EU, with the same key; an sk_eu_ key uses Customer.io’s EU hosts by itself.

Connect Customer.io
in a few minutes.

Test it on our sandbox addresses for free, then on your own contacts.

Create your accountRead the full setup guide

Updated · Maintained by: Email Validation LLC