Sign-up and auth
WorkOS integration
An endpoint you host runs as WorkOS AuthKit’s user registration action: before WorkOS creates a user, it checks the address with our API and answers a signed deny when the result is one you stop. Every check it cannot make is answered with allow.
Read the full setup guideGet an API key
- Setup guide
- TypeScript with no dependencies
EV_API_KEY your API key
WORKOS_ACTIONS_SECRET the action endpoint’s secret from the WorkOS DashboardAt 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
- Apps on WorkOS AuthKit that want registrations with an undeliverable or throwaway address denied before the user exists, for email and password, Magic Auth, SSO and social logins.
- You need
- A WorkOS environment with AuthKit, a public HTTPS URL for the endpoint (a Next.js route, a Cloudflare Worker or an Express route), and an API key made for it, with a daily credit cap.
- 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.
Deny before the user exists
WorkOS waits for the endpoint’s signed verdict before it provisions the user. A stopped address gets a deny with a message, and no user is created.
One check for every method
The same action runs for email and password, Magic Auth, SSO and social logins, so one endpoint covers them all.
Your own words
An invalid address and a disposable one each get their own sentence, the first with a suggested correction for a typo; other statuses share one. Set your own message instead if you prefer.
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 files
They are not on a registry yet: download the zip from the guide. It holds the endpoint, a Cloudflare Worker entry and the licence.
Host the endpoint
For example a Next.js route that exports
createWorkosRegistrationAction(optionsFromEnv(process.env)), withEV_API_KEYset on the server.Point WorkOS at it
In the WorkOS Dashboard, open Actions, set the endpoint’s URL for the user registration action, copy its secret into
WORKOS_ACTIONS_SECRETand enable it.Test it
Send a test action, then register with
no_mailbox@sandbox.email-validation.org: it is denied, for free.
Good to know.
If WorkOS cannot get a valid answer at all (the endpoint down, a wrong URL or secret, a host slower than WorkOS waits), WorkOS’s own default denies the registration. Set the secret before you enable the action.
No key, a timeout, no credits or any other error from our API is answered with allow within about 3 seconds. A check is never retried.
A request without WorkOS’s signature is refused and never checked.
The endpoint logs no address and sends it only to our US host, or with
EV_REGION=euto our EU host.
Connect WorkOS.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC