Skip to main content

Contexts

ContextPurposeNext Step
EMAIL_VERIFICATIONVerify email after sign-up (also used for resend)Email Verification
MAGIC_AUTHPasswordless loginSign In Magic Auth
RESET_PASSWORDReset passwordReset Password

Flow

1

Send OTP

Call Send OTP with recipient and context. Returns otpId.
2

Validate OTP

Call Validate OTP with otpId in path, plus recipient, context, and code. Returns 204.
3

Complete Action

Call the context-specific endpoint with otpId and code to complete the flow.

Recipient

The recipient field accepts either an email address or phone number.