Skip to main content
POST
/
v1
/
session
/
login
/
otp
Start login OTP
curl --request POST \
  --url https://{appId}.session.prelude.dev/v1/session/login/otp \
  --header 'Content-Type: application/json' \
  --data '
{
  "identifier": {
    "type": "phone_number",
    "value": "<string>"
  },
  "login_config_id": "<string>",
  "dispatch_id": "<string>"
}
'
{
  "code": "bad_request",
  "type": "bad_request"
}

Body

application/json
identifier
object
required

The verification target. Either a phone number or an email address. To use the email verification feature contact us to discuss your use case.

login_config_id
string

The identifier of the login config to use.

Required string length: 31
Example:

"lcfg_01jqebhswje1ka1z7ahr9rfsgt"

dispatch_id
string

The identifier of the dispatch that came from the front-end SDK.

Required string length: 36
Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

No Content