# Keycloak Integration for Email Validation

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

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

A step of your realm’s registration form checks the email address of every new self-registration and stops the ones you do not want, by default addresses that cannot receive mail and throwaway inboxes, before Keycloak creates the user. When a check cannot be made, the registration goes through as if the step were not there.

[Read the full setup guide](https://email-validation.org/docs/guides/keycloak/) [Get an API key](https://email-validation.org/signin/)

- Status: Setup guide
- One jar for Keycloak 26, no dependencies of its own

**The step’s settings** registration form, Required

Settings

```text
API key       your key, or a vault reference
Region        us, or eu for EU data residency
Stop          invalid, disposable  (the default)
Log only      off
Message       your own wording (optional)
```

## 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**: Realms that let people register themselves on Keycloak’s login page and want an address that cannot receive mail, or a throwaway inbox, turned away before the account exists.
- **You need**: Keycloak 26 with its `providers/` folder in your hands (a server or your own container image), a realm with user registration on, 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/keycloak/)

## Typical uses.

- **Stop dead addresses**: An invalid result shows the form again with a message under the email field, and adds Did you mean …? when the API suggests a correction.
- **Keep throwaway inboxes out**: Disposable addresses are stopped by default, with their own message asking for a permanent address.
- **Watch before you stop**: Turn on Log only and the step stops nothing: it writes each result to Keycloak’s log, so you can see what it would do first.

## Set it up. 4 steps.

The short version of the [full setup guide](https://email-validation.org/docs/guides/keycloak/), which stays the reference when a step does not match what you see.

1. **Download the jar**: It is not on a marketplace: download the jar from the guide and copy it into Keycloak’s providers folder, then run kc.sh build and restart Keycloak.
2. **Add the step**: In the admin console, open Authentication, Flows, duplicate the registration flow, and add the step email-validation.org address check to its registration form as Required.
3. **Add your key and bind the flow**: Open the step’s settings, give it an alias and paste your API key, or a vault reference. Then bind the flow for registration.
4. **Try it**: Register with `no_mailbox@sandbox.email-validation.org`: it is stopped, at no cost. Never register with a test address that goes through, such as `accepted@sandbox.email-validation.org`: with Verify email on, Keycloak would mail it, and the bounce hurts your sender.

## Good to know.

- Only registrations on the login page are checked: not users an admin creates, the first login through an identity provider such as Google, users from LDAP, or a later change of address.
- The step waits at most a few seconds and never retries. With no answer in time, a wrong key, no credits or any error, the registration goes through and Keycloak’s log line holds the reason, never the address.
- An unknown result caused by our side, a timeout or an internal error, never stops a registration, whatever you choose to stop.
- The step sends only the email address, to our US or EU host: not the person’s name or IP address.

## Related

- [The full Keycloak setup guide](https://email-validation.org/docs/guides/keycloak/)
- [Every setting of the step](https://email-validation.org/docs/guides/keycloak/#settings)
- [What happens when a check cannot be made](https://email-validation.org/docs/guides/keycloak/#fail-open)
- [Sign-up form validation](https://email-validation.org/docs/guides/signup-form-validation/)
- [Stytch integration](https://email-validation.org/integrations/stytch/)
- [Supabase integration](https://email-validation.org/integrations/supabase/)
- [WorkOS integration](https://email-validation.org/integrations/workos/)
- [Auth0 integration](https://email-validation.org/integrations/auth0/)
- [All integrations](https://email-validation.org/integrations/)
