Integrations · Sales outreach

Validate your Outreach prospects

Check your Outreach prospects' email addresses before your sequences send to them. One module with no dependencies, run on your own server: it receives Outreach's signed prospect webhooks, checks each new or changed prospect's first address and writes the verdict into two custom fields of yours. A small tool does the same for all your prospects, and says where to resume when it stops. By default only an address that cannot receive mail (invalid) is blocked.

Before you start: it needs your own Outreach app, and Outreach reviews apps before production use. There is no shared app to install: you register an app on Outreach's developer portal and the module uses its OAuth tokens. Outreach gives every app development credentials at once, "intended to be used during application development and testing" (usable by up to 10 people of your organization; anyone else must authorize the app again every week), and production credentials only "after the app goes through the publishing process and eventually a review" (Outreach's OAuth docs, read November 29, 2026). Try it with development credentials; plan for Outreach's review before you run it on your team's prospects.

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

What you need

  • An API key of ours from the API keys page with Validate addresses (on by default), made as a server key: a key limited to browser origins is refused.
  • Your Outreach app, with OAuth scopes to read and write prospects, to create webhooks and, if you want blocked prospects' sequences finished, to read and write sequence states. An Outreach user authorizes it once; keep the client secret and the refresh token on your server.
  • For the receiver: a public HTTPS endpoint in anything with fetch and Web Crypto (Node 22.18 or later, Bun, Deno, Cloudflare Workers). For the list tool: Node 22.18 or later.
  • Two unused prospect custom fields (for example custom20 and custom21), labelled in Outreach's prospect field settings, say "EV status" and "EV address". The first gets the status, the second a fingerprint of the address it judged (never the address), so an old verdict never decides for a new address.

Our key goes only to our API; the Outreach tokens and client secret only to api.outreach.io. Nothing is logged.

New and changed prospects: the webhook

import { createOutreachConnection, createOutreachHook } from './email-validation-outreach.ts'; // or .mjs

// The user's tokens, shared by every instance of your app (Workers KV, Redis, a table): seed it once with
// { accessToken, refreshToken, expiresAtMs } from the user's authorization. Outreach issues a new refresh token
// with every access token: every new pair is stored.
const tokens = {
  get: () => kv.get('outreach-tokens', 'json'),
  set: (t) => kv.put('outreach-tokens', JSON.stringify(t)),
};
const outreach = createOutreachConnection({
  tokens,
  clientId: process.env.OUTREACH_CLIENT_ID,
  clientSecret: process.env.OUTREACH_CLIENT_SECRET,
});
const hook = createOutreachHook({
  apiKey: process.env.EV_API_KEY,
  secret: process.env.OUTREACH_WEBHOOK_SECRET,
  outreach,
  fields: { verdict: 'custom20', fingerprint: 'custom21' },
  optOut: true, // optional: a blocked prospect gets optedOut
});
// Next.js, Remix, Hono, Bun, Deno: export const POST = hook;
// Cloudflare Workers: fetch: (request, env, ctx) => hook(request, ctx)

On a serverless host, give it waitUntil (Cloudflare Workers: pass ctx as above; Vercel: the waitUntil option with Vercel's own waitUntil), so the work after the answer is not cut off. Outreach's refresh tokens last 14 days: a receiver that refreshes nothing for longer needs the user to authorize the app again.

Then, as the same Outreach user, create the webhook with POST https://api.outreach.io/api/v2/webhooks:

{ "data": { "type": "webhook", "attributes": {
  "url": "https://your.server/outreach", "resource": "prospect", "action": "*", "secret": "<a long random secret>" } } }

The receiver refuses a delivery whose Outreach-Webhook-Signature does not match, answers 200 at once (Outreach waits 5 seconds and does not send a delivery again after an answer) and does the work after it. It reads the prospect fresh, checks its first address, reads it again and writes only while the prospect still holds that address. With optOut: true a blocked prospect is opted out in the same write, which stops all mailings to it; finishSequences: true also finishes its active sequences. It never deletes anything.

Try it free first

With development credentials, add one test prospect whose email is no_mailbox@sandbox.email-validation.org, and take it out of every sequence until you delete it. Its webhook delivery writes invalid into your status field. Sandbox checks are free and that domain receives no mail: never send to it, or to an address you made up, from Outreach. A send to an address that cannot receive mail bounces and hurts your sending reputation.

Every prospect: the list tool

cd email-validation-outreach                    # the unzipped folder
export EV_API_KEY=…  OUTREACH_ACCESS_TOKEN=…
node outreach.mjs --fields custom20,custom21                      # report only: changes nothing
node outreach.mjs --apply --fields custom20,custom21 --opt-out    # writes the verdicts

It reads every prospect in id order (or one --tag), checks each distinct address once and prints the id to resume after (--after-id). An access token lasts 2 hours; for a longer run, use --token-file tokens.json (a JSON file holding at least {"refresh_token": "…"}) with OUTREACH_CLIENT_ID and OUTREACH_CLIENT_SECRET: the tool rewrites the file after every refresh. Run it after a large import, or now and then: a delivery the receiver could not finish (Outreach's rate limit, a failed write) is not sent again, and the list picks up every prospect with no verdict for its address. The same is in your code as checkProspects(options).

Good to know

  • Each check uses one credit; unknown results, malformed and sandbox addresses are free. A report checks every distinct address not already judged, so it costs the same as --apply.
  • A verdict your fields already hold for the prospect's current address is never paid twice, by the receiver or the list.
  • A timeout, a network error or an unknown writes nothing and changes nothing: the prospect keeps what it had.
  • block: ['invalid', 'disposable'] (or --block invalid,disposable) blocks more statuses; region: 'eu' (or --region eu) checks in the EU.
  • Outreach allows 10,000 API calls an hour per user. The list waits out its limit; the receiver checks nothing while it lasts.
  • Exit codes of the tool: 0 done (or stopped by our API: the report says where to resume), 1 Outreach refused or failed, or new tokens could not be saved, 2 wrong arguments, a missing key or an unusable token file.

More on Outreach

Updated · Maintained by: Email Validation LLC

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