One-time passcodes
Verify users with OTPs sent over SMS
The OTP endpoints generate, deliver and verify one-time passcodes, so you don’t have to store codes yourself.
Request a passcode
Call Request OTP with the recipient and how long the code should remain valid.
The response includes the messageId of the passcode message and when the code expiresAt.
Verify the passcode
When the user enters the code, send it to Verify OTP along with the same recipient.
Keep validitySeconds short (a few minutes) and rate-limit OTP requests per recipient to reduce fraud and cost.