Skip to main content
With email verification on, Bludia emails new users a short code when they register. Their account status is pending until they confirm it, then it becomes active.

Set it up

1

Create an email channel

Add an SMTP email channel in Messaging → Channels. See Channels.
2

Create a verification template

Create an email template that includes the {{token}} variable:
3

Enable it on the guard

In the guard settings, turn on Email verification and select the channel and template.

The flow

Verify

POST /auth/{guard}/email/verify — API key only.
An unknown or already used code returns 401 invalid_or_expired_token.

Resend

POST /auth/{guard}/email/resend — needs the user’s Bearer token. Issues a new code.
Beta: resent codes are not emailed automatically yet. The code sent at registration is delivered by email.

Check verification status

GET /auth/{guard}/me includes verified_at in the user’s data once verified, and the record status is active.
Registration returns a session, and pending users can log in. If your app needs verified users only, check verified_at from /me and show a “verify your email” screen, or add a row policy or hook that blocks unverified users from key actions.
The code is sent to the value of the guard’s login field, so use an email login field when you enable verification.