Overview
This article describes how to create a custom email verification flow.
Applies To
- Email Verification
- Custom Flows
Solution
When implementing a custom verification flow using the email verification ticket, use the POST /api/v2/tickets/email-verification endpoint. Include the user_id
in the body, but the other values are optional.
{
"result_url": "string",
"user_id": "string",
"client_id": "string",
"organization_id": "string",
"ttl_sec": 0,
"includeEmailInRedirect": true,
"identity": {
"user_id": "string",
"provider": "google-oauth2"
}
}
The response will look something like the following:
{
"ticket": "https://<YOUR AUTH0 DOMAIN./u/email-verification?ticket=<TICKET ID>"
}
Include this as a link in the verification email, and the user will have to click on this link to be verified.