Skip to main content
Send Verification Email
Sends a verification email to the authenticated user’s registered email address. The token or link expires after 5 minutes. Requires a valid user access token. Returns immediately with { success: true } if the user is already verified.

Body Parameters

All parameters are optional.
"code" | "link"
default:"\"code\""
Delivery mode.
  • "code" — The email contains a short token the user types into your app. Call the Verify Email endpoint to complete verification.
  • "link" — The email contains a button that opens a Sublay page where the user confirms; confirming verifies the email, then shows a success page that sends them on to redirectUrl (or stays there if none was given). See Verify Email Link.
"hex" | "numeric" | "alpha" | "alphanumeric"
default:"\"hex\""
Character set used to generate the token.
number
default:"6"
Length of the generated token. Must be an integer between 4 and 12. Ignored when tokenFormat is "hex".
string
A URL to redirect the user to after they click the verification link. Only used when mode is "link".Must be an http or https address; any other kind isn’t followed. On success verified=true is added to its query string. An invalid or expired link shows the hosted error page instead of redirecting.If omitted, the server renders a hosted success/error page.

Response

boolean
true when the request is processed without a server error (including when the user is already verified).

Error Codes

Each call generates a new token. A previous unused token remains valid in Redis until it either expires or the new one is consumed first.

See Also