data payload contains either code (for email OTP) or url (for magic link).
This webhook is synchronous, so a non-2xx response fails the challenge.
Open the Email OTP or Email Magic Link authenticator in authenticator settings and set the email provider to Webhook. The URL you enter as part of provider setup is where this event is delivered.
Payload
string
required
The email address the OTP or magic link should be delivered to.
string
The email OTP code. Present for email OTP authenticators.
string
The URL of the magic link. Present for email magic link authenticators.
string
required
The ID of the user the challenge is for.
string
required
The idempotency key of the request that created the challenge.
string
required
The action code of the track request that created the challenge.
string
The user agent of the user who requested the challenge.
Only present if the user agent was captured when tracking an
action.
string
The timezone of the user who requested the challenge.
Only present if the IP address was captured when tracking an
action.
string
The IP address of the user who requested the challenge.
Only present if the IP address was captured when tracking an
action.
string
The locale of the user who requested the challenge.
Only present if the locale was captured when tracking an
action or set on the user via update
user.
object
Custom data points configured for the tenant, included when a matching value is present on the
action or user. Keys are prefixed by source (
action_ / user_). See custom template
variables.
