Prerequisites
Before you start, make sure you have:- A Prelude account with access to the Session API
- An Application ID (
appID) — see Applications - Your Management API key for backend calls
- A configured Verify template for sending OTP codes
Set up OTP login
Create an OTP login configuration
| Field | Required | Description |
|---|---|---|
config_type | Yes | Must be "otp". |
channel_type | Yes | The channel used for OTP delivery ("sms" or "email"). |
is_default | Yes | Whether this is the default OTP login configuration. |
template_id | No | The ID of your Verify template. This controls the OTP message content and delivery settings. |
sender_id | No | The sender ID used for SMS delivery. |
grant_change_password | No | Whether this OTP configuration can be used to grant a password change to the user. Defaults to false. |