Integrations · CRM

Validate emails of new Workable candidates

Check the email address of each new candidate in Workable. A small relay you deploy to your own Cloudflare account gets every new candidate from Workable's webhook, checks the candidate's address a few seconds later and tags the candidate with the result, such as email-invalid or email-valid, so recruiters see a mistyped or dead address before they write to it. Download it: email-validation-workable.zip holds relay.mjs (the relay) and the MIT licence.

What you need

  • An API key of ours with Validate addresses, from the API keys page. Give it a daily credit cap a little above your busiest day.
  • A Workable API access token: open Integrations from the menu at the top right and pick Generate new token, with the scopes r_candidates (read candidates, and subscribe to them) and w_candidates (tag them). Workable shows the token once.
  • Your account's subdomain: acme when Workable opens at acme.workable.com.
  • A Cloudflare account to run the relay in.

Deploy the relay

From the unzipped folder:

npx wrangler deploy relay.mjs --name ev-workable-relay --compatibility-date 2026-10-01
npx wrangler secret put EV_API_KEY --name ev-workable-relay          # our API key, with Validate addresses
npx wrangler secret put WORKABLE_TOKEN --name ev-workable-relay      # the Workable token
npx wrangler secret put WORKABLE_SUBDOMAIN --name ev-workable-relay  # acme, for acme.workable.com
openssl rand -hex 32                                                 # a new secret for the relay's address
npx wrangler secret put RELAY_TOKEN --name ev-workable-relay         # paste that secret

No terminal? In the Cloudflare dashboard, create a Worker, paste the whole of relay.mjs into its code editor and deploy, then add the values above under its Settings → Variables and Secrets (the key and the token as type Secret). For a random RELAY_TOKEN without a terminal or on Windows, use your password manager's generator: 32 or more letters and digits.

RELAY_TOKEN must be at least 32 letters, digits, - or _. Optional settings, each added to the deploy command as --var NAME:value (or as a dashboard variable):

SettingWhat it does
EV_REGIONeu to have addresses validated in the EU and their results stored there (default us)
TAG_PREFIXWhat each tag starts with (default email-; 1 to 30 letters, digits, spaces, -, _, : or .)
EVENTSA KV namespace binding (recommended): each checked candidate is remembered by every relay instance

Subscribe it to new candidates

Workable sends new candidates to a webhook you register through its API, once. With your token and subdomain:

curl -X POST "https://acme.workable.com/spi/v3/subscriptions" \
  -H "Authorization: Bearer $WORKABLE_TOKEN" -H "Content-Type: application/json" \
  -d '{"target":"https://ev-workable-relay.<your subdomain>.workers.dev/<RELAY_TOKEN>","event":"candidate_created","args":{"account_id":"acme","job_shortcode":"","stage_slug":""}}'

In Windows PowerShell (5.1 or 7):

$body = '{"target":"https://ev-workable-relay.<your subdomain>.workers.dev/<RELAY_TOKEN>","event":"candidate_created","args":{"account_id":"acme","job_shortcode":"","stage_slug":""}}'
Invoke-RestMethod -Method Post -Uri "https://acme.workable.com/spi/v3/subscriptions" `
  -Headers @{ Authorization = "Bearer $env:WORKABLE_TOKEN" } -ContentType 'application/json; charset=utf-8' -Body $body

An empty job_shortcode sends the candidates of every job; a job's shortcode sends only that job's. Workable answers with the subscription's id (keep it: DELETE /spi/v3/subscriptions/<id> ends it), or 409 when that address is already subscribed.

Then add a candidate by hand to a test job with the address no_mailbox@sandbox.email-validation.org. A few seconds later the candidate has the tag email-invalid. Test addresses cost nothing and receive no mail: do not move a test candidate to a stage that emails them.

The tags

Each checked candidate gets one tag: the prefix and one of our five statuses: email-valid, email-invalid, email-catch_all, email-unknown or email-disposable. Filter candidates by tag in Workable to find the addresses to fix before you write. Act on what the status means rather than on valid alone: spam traps and known complainers are valid with the action remove, and the relay's log line shows the reason and the action.

Workable's tag call replaces all of a candidate's tags, so the relay reads the candidate's tags again right before it writes and keeps every tag that is not one of its own five; an older tag of its own is replaced. A tag someone adds in the second between that read and the write can still be lost, because Workable's API has no call that adds one tag.

Who can call the relay

Workable signs each delivery, but its documentation does not say how the signature is written, so the relay does not rely on it: the secret part of the relay's address is what keeps others out, so keep it like a key. Anything sent to another address gets 401. The relay trusts only the event and the candidate's id in a delivery: it reads the candidate from Workable with your token and checks the address Workable holds. It answers Workable at once and does the rest a moment later. A candidate is checked once (with the EVENTS namespace bound, also across relay instances), and one created more than a day ago is not checked at all.

When our API runs no check (a rate limit, no credits, the daily cap) or Workable cannot be read, nothing is written: the candidate stays untagged, the log line says failed, and the relay does not check it again on its own. The relay never changes anything about a candidate but its tags, and logs one line per candidate with ids and the result, never an address.

Try it on a test job first

Workable's documentation shows a delivery of another candidate event, not of a new candidate, and does not say how often Workable sends a delivery again. If a delivery does not carry the candidate's id where the documented example does, the relay refuses it (400) and checks nothing; if that id is not the candidate's, it logs not_found. Try it on a test job with the sandbox address above before you rely on it. It has not run against a real Workable account yet.

More on Workable

Updated · Maintained by: Email Validation LLC

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