url
variable that refers to the URL that the user will have to click. You will use it in the Message field to create a link that the user can follow.
success
with value true
or false
indicating whether the email verification was successful
message
with an additional description of the outcome. Some possible values are:
Your email was verified. You can continue using the application.
(with success=true
)This URL can be used only once
(with success=false
)Access expired.
(with success=false
)User account does not exist or verification code is invalid.
(with success=false
)This account is already verified.
or Your email address could not be verified.
(with success=false
)PATCH /api/v2/email-templates/reset_email { "includeEmailInRedirect": false } }
or,
PATCH /api/v2/email-templates/verify_email { "includeEmailInRedirect": false }}
The target URL handler should be prepared to gracefully handle other possible messages as well.
organization.id
organization.display_name
organization.name
organization.metadata
organization.branding.logo_url
organization.branding.colors.primary
organization.branding.colors.page_background
url
: URL that the user will select to change their password. You can use it in the Message field to create a link that the user can follow, as in this example:
<a href="/docs/{{ url }}">Click here to change your password</a>
organization.id
organization.display_name
organization.name
organization.metadata
organization.branding.logo_url
organization.branding.colors.primary
organization.branding.colors.page_background
success
with value true
or false
indicating whether the password change was successful
message
with an additional description of the outcome. Some possible values are:
You can now login to the application with the new password.
(with success=true
)This URL can be used only once
(with success=false
)Access expired.
(with success=false
)The operation cannot be completed. Please try again.
(with success=false
)user.source_ip
user.city
user.country
organization.id
organization.display_name
organization.name
organization.metadata
organization.branding.logo_url
organization.branding.colors.primary
organization.branding.colors.page_background
url
variable that should be used to create the link that the user needs to follow. For example:
<a href="/docs/{{ url }}">Click here to unblock your account</a>
email
indicating the email of the user
success
with value true
or false
indicating whether the account unblocking was successful
message
with an additional description of the outcome. Some possible values are:
Your account has been unblocked.
(with success=true
)This URL can be used only once
(with success=false
)Access expired.
(with success=false
)organization.id
organization.display_name
organization.name
organization.metadata
organization.branding.logo_url
organization.branding.colors.primary
organization.branding.colors.page_background
link
variable is available in this email type, containing the URL that you will use to construct the link for this action, as in this example:
<a href="/docs/{{ link }}">Enroll your MFA device</a>
Unlike other email templates, the correct variable name is link
and not url
. Also, the connection.name
variable is not available on this email template type.
code
variable to render the code used for MFA verification. For example:
<div>Your code is: {{ code }}</div>
inviter.name
app_metadata
user_metadata
roles.id
roles.name
roles.description
organization.id
organization.display_name
organization.name
organization.metadata
organization.branding.logo_url
organization.branding.colors.primary
organization.branding.colors.page_background
locale
to be sent in user_metadata
when creating an invitation. To learn more, see Customize Email Templates: Multilingual Email Templates.
invitation
: ID of the invitation ticketorganization
: ID of the organization to which the user is being invitedorganization_name
: Name of the organization to which the user is being invitedhttps://myapp.com/login
, then the link sent in the email invitation that an end-user receives will be: https://myapp.com/login?invitation={invitation_ticket_id}&organization={organization_id}&organization_name={organization_name}
.
The target login route should initiate a transaction to /authorize
that contains the provided invitation
and organization
key-value pairs. It should also be prepared to gracefully handle other possible messages.
send
, which will contain a value of link
, link_ios
, link_android
or code
depending on the type of passwordless email requested.code
with the one-time-use code to access the applicationlink
with the link that can be clicked by the user to gain access to the application (only for link-type passwordless emails)operation
, which will be change_email
if this is a passwordless email change operation.email
property of the user
object is available.