# WorkOS Integration: Email Validation

URL: https://email-validation.org/integrations/workos/
Updated: 2026-11-29

> Documentation index: https://email-validation.org/llms.txt

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 guide](https://email-validation.org/docs/guides/workos/) [Get an API key](https://email-validation.org/signin/)

- Status: Setup guide
- TypeScript with no dependencies

**Server variables** never in browser code

Environment

```text
EV_API_KEY              your API key
WORKOS_ACTIONS_SECRET   the action endpoint’s secret from the WorkOS Dashboard
```

## At 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](https://email-validation.org/app/api-keys/) made for it, with a [daily credit cap](https://email-validation.org/docs/authentication/#limits).
- **Costs**: 1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org and, in a bulk list, repeats of an address (charged once).
- **Full guide**: [Read the full setup guide](https://email-validation.org/docs/guides/workos/)

## 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](https://email-validation.org/docs/guides/workos/), which stays the reference when a step does not match what you see.

1. **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.
2. **Host the endpoint**: For example a Next.js route that exports `createWorkosRegistrationAction(optionsFromEnv(process.env))`, with `EV_API_KEY` set on the server.
3. **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_SECRET` and enable it.
4. **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=eu` to our [EU host](https://email-validation.org/docs/eu-data-residency/).

## Related

- [The full WorkOS setup guide](https://email-validation.org/docs/guides/workos/)
- [What gets checked](https://email-validation.org/docs/guides/workos/#scope)
- [Settings](https://email-validation.org/docs/guides/workos/#settings)
- [Test addresses](https://email-validation.org/docs/test-addresses/)
- [Auth0 integration](https://email-validation.org/integrations/auth0/)
- [Auth.js integration](https://email-validation.org/integrations/authjs/)
- [Better Auth integration](https://email-validation.org/integrations/better-auth/)
- [Clerk integration](https://email-validation.org/integrations/clerk/)
- [All integrations](https://email-validation.org/integrations/)
