Email platforms
beehiiv integration
Save each beehiiv subscription’s validation result in four custom fields, so a segment on ev_action shows every address you should not mail. A sync script you run on your own computer checks a publication as one bulk list, and a relay on your own Cloudflare account checks each new subscription as it is created.
Read the full setup guideGet an API key
- Setup guide
- A sync script and a relay
export EV_API_KEY=… BEEHIIV_API_KEY=…
node beehiiv.mjs --publications # lists the publications
node beehiiv.mjs --publication <publication id> --dry-run # counts what it would check
node beehiiv.mjs --publication <publication id> # checks and writes the fieldsAt 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
- Newsletter writers and teams who publish on beehiiv and want the subscriptions that will bounce, or should not be mailed at all, marked so a segment can find them.
- You need
- A beehiiv API key (Settings, Workspace Settings, API; for a workspace Owner or Admin, after beehiiv’s identity verification) and an API key of ours. The sync script needs Node 22.18 or later and our key’s Bulk lists permission (off by default); the relay needs beehiiv’s Lite plan or above (its webhooks) and a Cloudflare account of yours.
- 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.
Find the addresses to remove
Each subscription gets ev_status, ev_reason, ev_action and ev_checked_at. Spam traps and complainers are valid with the action remove, so trust ev_action.
Clean a publication
The sync script checks the active subscriptions without a result in one bulk list, and writes only its four fields: nothing is unsubscribed and no mail is sent.
Check new subscriptions
The relay receives beehiiv’s signed webhook for a new subscription and writes the result within seconds. The sync script checks only subscriptions without a result, so it can also run daily.
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.
Create a beehiiv API key
In beehiiv, open Settings, Workspace Settings, API, and create a new API key. beehiiv shows it once.
Try it free
In a publication used only for testing, add
no_mailbox@sandbox.email-validation.orgwith the guide’s create call (no welcome or confirmation email) and run the script on it: it gets ev_status invalid and ev_action remove, at no cost. Then delete it.Clean your publication
Download email-validation-beehiiv.zip from the guide and run beehiiv.mjs with --dry-run first: it does not ask before it spends.
Add the relay
Deploy
relay.mjsto your Cloudflare account for one publication, add a webhook in beehiiv forsubscription.created, and give the relay its signing secret.
Good to know.
Only the four fields change: no subscription is created, unsubscribed or deleted. Sending to a segment needs a paid beehiiv plan; on the free plan, unsubscribe the ones to remove yourself.
Run the same command again after any stop and the script 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.
beehiiv’s limit is 30 to 800 requests a minute by plan; the script starts at 25 a minute, then uses 80 % of the limit beehiiv reports. The check itself is not slowed.
--region euchecks and keeps the list in the EU, with the same key.
Connect beehiiv.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC