Integrations · Email platforms

Check Vero users’ addresses

Check your Vero users' addresses three ways: a sign-up on your own server before Vero gets it, each new user Vero tells you about through its User created webhook, and a list you export from Vero before a send. One module with no dependencies, copied into your own server, plus a small tool for the export. By default only a definite invalid is blocked: that user is kept out of Vero at sign-up, or tagged ev-blocked so your segments and journeys can leave them out. Everything else stays as before, and nothing is ever deleted.

Download it: email-validation-vero.zip holds the module as TypeScript (email-validation-vero.ts) and as JavaScript (email-validation-vero.mjs), the export tool (vero.mjs) and the MIT licence.

What you need

  • An API key of ours from the API keys page with Validate addresses (on by default).
  • Your Vero Tracking API key (called the auth token in Vero 1.0). In Vero 2.0: Settings → Project → API Keys → Tracking Keys; in Vero 1.0: Settings, the Track API Keys section. Vero's free trial is enough to try it: the module uses only this key, Vero's Track API and a reporting webhook.
  • For the module: your server's code, in anything with fetch and Web Crypto (Node 22.18 or later, Bun, Deno, Cloudflare Workers). Copy email-validation-vero.ts into a TypeScript project, or email-validation-vero.mjs into a JavaScript one.
  • For the export tool: Node 22.18 or later. It needs the Vero key only with --apply.

Our key goes only to our API, the Vero key only to api.getvero.com. Vero takes that key in the address of each call (?auth_token=), the only form its reference documents: if your server runs an APM, OpenTelemetry or an error tracker that records outgoing request URLs, leave api.getvero.com out of that capture, or the key ends up in your traces. The module logs nothing.

A sign-up on your own server

Instead of calling Vero's POST /users/track yourself, hand the user to identifyChecked:

import { identifyChecked } from './email-validation-vero.ts'; // .mjs in JavaScript; no extension in TypeScript under a bundler

const { outcome } = await identifyChecked(
  { id: user.id, email: form.email, data: { first_name: form.firstName } },
  {
    apiKey: process.env.EV_API_KEY,
    vero: { authToken: process.env.VERO_AUTH_TOKEN },
    verdictField: 'ev_status', // optional: a user property to hold the answer
  },
);
// 'identified' | 'blocked' | 'not_an_address'

It checks the address, then identifies the user in Vero (with their id, email and your data) unless it is blocked. A blocked address, and anything that is no address at all, never reaches Vero. With verdictField, a definite answer goes into that user property, and the address's fingerprint (a short hash, never the address) into ev_status_for beside it. A timeout, a failure or an unknown writes nothing there, so the property keeps what it held. Vero refusing the key or the request throws a VeroError; a check we could not make never does.

A new user: the User created webhook

For users who reach Vero some other way (its JavaScript snippet, an import, another tool), a receiver for Vero's User created reporting webhook checks each new user's address after Vero has it:

import { createVeroHook } from './email-validation-vero.ts';

// Next.js route handler, Remix, Hono, Bun, Deno: export const POST = hook;
// Cloudflare Workers: export default { fetch: (request, env, ctx) => hook(request, ctx) };
const hook = createVeroHook({
  apiKey: process.env.EV_API_KEY,
  token: process.env.VERO_HOOK_TOKEN, // a long random secret of yours
  vero: { authToken: process.env.VERO_AUTH_TOKEN },
  verdictField: 'ev_status', // optional
});

Make the token with openssl rand -hex 32 or your password manager's generator (at least 24 letters and digits). In Vero 2.0: Settings → Project → Reporting Webhooks → Add webhook, the URL https://your.server/vero?token=<the same token>, the event User created. Vero signs nothing, so that URL is the only credential: the receiver answers 401 to a delivery whose token is missing or wrong, before it reads the body. Every other event type is answered 200 and ignored.

It answers at once (Vero asks for an answer within 5 seconds and does not retry) and works after; on a serverless host hand it Workers' ctx (or the waitUntil option) so the work keeps running. For each new user it checks the address, writes a definite answer to verdictField first (only to a user Vero already has), then tags a blocked user ev-blocked. action: 'unsubscribe' unsubscribes them instead, action: 'none' writes only the verdict, and without vero nothing is written (the answer goes only to onResult). The same user with the same address sent again within a day starts nothing more on that server, unless the first delivery could not be checked or written.

Anyone who learns the URL can send a delivery naming any user id and address: keep the token secret, change it if it leaks, and prefer the default tag, which changes nothing a send does not ask for. Vero's Test button sends a sample payload: try the URL against a receiver made without vero (it only reports), then add vero.

Calls to Vero with one key are spaced 250 ms apart. After a large import (many User created deliveries at once), a delivery whose write would not fit its time is left unchecked, with no credit paid: run the export tool on the imported users instead.

Try it free first

Check a sandbox address without sending anything and without touching Vero:

const { outcome } = await identifyChecked(
  { id: 'ev-test-1', email: 'no_mailbox@sandbox.email-validation.org' },
  { apiKey: process.env.EV_API_KEY, vero: { authToken: process.env.VERO_AUTH_TOKEN } },
);
console.log(outcome); // 'blocked': the address is invalid (no_mailbox), and Vero was not called

Sandbox checks are free, and that domain receives no mail: never send to it, or to any address you made up, through Vero. A send to an address that cannot receive mail bounces and counts against your sending reputation.

A list before a send

Vero's API cannot read users or segments, so the list comes from Vero itself. In Vero 2.0, open the segment, choose Export… → Subscribed Profiles, and download the CSV from the Exports page when it is ready. The tool finds the address column (email, email address or email_address, any case) and the Vero id column (id, user id, user_id, customer id or customer_id); name others with --email-column and --id-column.

cd email-validation-vero                    # the unzipped folder
export EV_API_KEY=…
node vero.mjs --csv trial-users.csv                     # report only: changes nothing in Vero
export VERO_AUTH_TOKEN=…
node vero.mjs --csv trial-users.csv --apply             # tags the blocked users ev-blocked

In Windows PowerShell (5.1 or 7):

cd email-validation-vero                    # the unzipped folder
$env:EV_API_KEY = "…"
node vero.mjs --csv trial-users.csv                     # report only: changes nothing in Vero
$env:VERO_AUTH_TOKEN = "…"
node vero.mjs --csv trial-users.csv --apply             # tags the blocked users ev-blocked

To try it first, export a segment holding two test users, no_mailbox@sandbox.email-validation.org and accepted@sandbox.email-validation.org (the tool refuses to set aside every address of an export, so one must pass), and keep them out of every message and journey until you have deleted them.

With --apply, every user in the export who carries a blocked address is tagged, one at a time, by their Vero id; the user stays subscribed, so leave the tag out in your segment's or journey's conditions. --tag NAME picks another tag, and --action unsubscribe unsubscribes those users instead (Vero then sends them no more messages; undo it with Vero's resubscribe). Running it again tags the same users again, which changes nothing. A row without an id, or a user Vero does not know, is counted and left as it is. The tool refuses to tag every address in the export, and changes nothing when our API refuses the key.

If the export holds the column your verdictField fills (with its _for column beside it), --verdict-column NAME lets an earlier definite answer decide when the new check gives none, but only for the address it judged. A report checks every distinct address in the export, so it costs the same as a clean: run it with --apply when you are ready. The report prints the blocked addresses to your terminal only; nothing is written to a file.

Exit codes: 0 done, 1 Vero refused or failed, or every address would go (the message says how many users were changed before it stopped), 2 wrong arguments, a missing key or a CSV that cannot be read.

Good to know

  • Fails open. No key, a timeout (6 seconds per check by default, timeoutMs), a network error, a rate limit or any error answer keeps the address: the user is identified, or left as they are. A problem on our side never stops a sign-up.
  • Credits. Each check uses one credit (unknown results, malformed and sandbox addresses are free). Each distinct address is checked once per call or export. Within one process a definite answer is remembered for a day, at most 1,000 answers per key (the oldest go first).
  • More statuses. block: ['invalid', 'disposable'] (--block invalid,disposable for the tool) blocks more; valid cannot be blocked. An unknown caused by our side (a timeout) is never blocked.
  • EU. region: 'eu' (--region eu) checks in the EU, with the same key.
  • Never deletes. Nothing here deletes a user in Vero. Remove the tag in Vero by hand to undo it.
  • Not tried on a real account yet. The calls follow Vero's API reference; if your export names its columns differently, give --email-column and --id-column.

More on Vero

Updated · Maintained by: Email Validation LLC

Need help? Contact support, or ask the help chat. Something wrong or missing on this page? Tell us