Sales outreach
lemlist integration
Run one script on your own computer and the leads of a lemlist campaign are checked as one bulk list, each lead’s result written back into three lead variables you can filter on. Before it spends, it shows the most it will cost and asks you to confirm.
Read the full setup guideGet an API key
- Setup guide
- One file you download and run with Node
export EV_API_KEY=… LEMLIST_API_KEY=…
node lemlist.mjs --lists
node lemlist.mjs --campaign <id> --dry-run
node lemlist.mjs --campaign <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 send outreach sequences from lemlist and want to see which leads of a campaign will bounce, or should not be mailed at all, before the first 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 lemlist API key. The lemlist key acts as the user who made it.
- 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.
Filter a campaign by result
Each lead gets the variables email_validation_status, email_validation_action, email_validation_checked_at and email_validation_address_hash (so a changed address is checked again). Leave out the leads whose action is remove, spam traps and complainers included.
Know the cost before it spends
A dry run counts the leads it would check and the distinct addresses, and shows the most credits it would use, without spending any. A real run shows the same and waits for your yes.
Keep a running campaign current
Run it again with --yes, for example on a schedule: once every lead is written, it checks only the leads without a status, such as new ones, with the status unknown, or whose address changed since.
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.
Download the script
It is not on a marketplace: download lemlist.mjs from the guide. It is one file with no dependencies.
Create both keys
Create an API key of ours with Bulk lists (add Read balance and usage to see your balance first). In lemlist, open Settings, Integrations, Generate a new API key.
List your campaigns
Set
EV_API_KEYandLEMLIST_API_KEY, then runnode lemlist.mjs --listsfor your campaigns and their ids.Dry run, then run
Run
node lemlist.mjs --campaign <id> --dry-runto see what it would cost, then again without--dry-runto check the leads and write their variables.
Good to know.
It never deletes a lead, never removes one from a campaign, and never pauses or unsubscribes one. It writes only its three variables, so every other variable keeps its value.
On a lead with no linked contact, lemlist itself creates the contact when a variable is written. If the key’s user lacks lemlist’s Create contacts permission, those leads are refused: the script writes the others and stops after ten refusals in a row, so you can grant it and run again.
Bounced and unsubscribed leads are skipped unless you add --all-leads, and --rate sets how many lemlist requests it sends a second, within lemlist’s limit for each key.
A stopped run resumes the same bulk list without paying twice (within the 30 days a list is kept). It prints counts, ids and the campaign’s name, never an address or a key.
--region euchecks and keeps the list in the EU, with the same key.
Connect lemlist.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC