Prerequisites
Before you start, make sure you have:- A Prelude account with access to Prelude Auth
- 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. |
granted_scopes | No | List of session scopes attached to the session when a login completes through this OTP configuration (for example ["prld:pwd:write"] to grant a password change). Defaults to an empty list. |