Sales outreach

Mailshake integration

A script you run on your own computer checks the recipients of a Mailshake campaign as one bulk list and writes each status to a result file, since Mailshake’s API cannot update a value on a recipient already in a campaign. When you ask for it, it also pauses the recipients you should not mail.

Read the full setup guideGet an API key

  • Setup guide
  • One file you download and run with Node

mailshake.mjsNode 22.18 or later

Terminal
export EV_API_KEY=…  MAILSHAKE_API_KEY=…
node mailshake.mjs --lists
node mailshake.mjs --campaign <id> --dry-run
node mailshake.mjs --campaign <id>
node mailshake.mjs --campaign <id> --pause

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 cold email campaigns in Mailshake and want to know which recipients will bounce, or should not be mailed at all, before the next step goes out.
You need
Node 22.18 or later, an API key of ours with the Bulk lists permission (off by default: turn it on when you create the key), and a Mailshake API key. Mailshake answers its API only for a team with an active, paid subscription.
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.

  • A result file to sort by

    mailshake-results-<campaign id>.csv has a row per recipient with email_validation_status, email_validation_action and the reason. Leave out the rows whose action is remove.

  • Pause the recipients to remove

    With --pause, each recipient whose action is remove is paused in the campaign. Unpausing it in Mailshake undoes that, and the script never pauses it again.

  • Look first, pause later

    Run once without --pause and read the file, then run with --pause: the recipients the file marks remove are paused with no new check and no credits.

Set it up. 4 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-mailshake.zip from the guide. It holds mailshake.mjs, one file with nothing to install, and the licence.

  2. Create both keys

    Create an API key of ours with Bulk lists, plus Read balance and usage if you want your balance shown before it asks. In Mailshake, Extensions, API.

  3. Find the campaign

    Set EV_API_KEY and MAILSHAKE_API_KEY, then run node mailshake.mjs --lists for your campaigns and their ids.

  4. Dry run, then run

    node mailshake.mjs --campaign <id> --dry-run shows the recipients, the distinct addresses and the most credits it would use. Run it without --dry-run and confirm.

Good to know.

  • It never deletes or unsubscribes a recipient and never changes a campaign or a lead: pausing, only when you ask, is the one change it makes in Mailshake.

  • The result file holds your campaign’s addresses: the script writes it readable by you alone and never prints an address or a key.

  • Mailshake counts quota units per hour for your whole team. The script prints the units it used, waits when they run out, and stops with a time to run again when the wait would be long.

  • 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); the next run checks the recipients not in the file yet, those it holds as unknown and those whose address changed.

Connect Mailshake.

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