POST /v1/auth/phone/otp/start
POST
/v1/auth/phone/otp/startHeader parameters
x-request-idstringOptional caller-provided request identifier
x-correlation-idstringOptional caller-provided correlation identifier
Request body
requiredapplication/jsonStart a phone SMS OTP challenge
phonestringrequiredpurposestringrequiredResponses
200Phone OTP challenge started
challenge_idstringrequireddebug_codestring | nullexpires_atstring<date-time>requiredresend_afterstring<date-time>required400Request validation failed
codestringrequiredcorrelation_idstring | nulldetailstringrequirederrorsProblemErrorDetail[]requiredShow propertiesHide properties
Array of
ProblemErrorDetailfieldstring | nullreasonstringrequirednext_actionsstring[] | nullrequest_idstring | nullstatusinteger<int32>requiredmin 100 · max 599
titlestringrequiredtypestringrequired429Phone OTP start is rate limited
codestringrequiredcorrelation_idstring | nulldetailstringrequirederrorsProblemErrorDetail[]requiredShow propertiesHide properties
Array of
ProblemErrorDetailfieldstring | nullreasonstringrequirednext_actionsstring[] | nullrequest_idstring | nullstatusinteger<int32>requiredmin 100 · max 599
titlestringrequiredtypestringrequired500Internal server error
codestringrequiredcorrelation_idstring | nulldetailstringrequirederrorsProblemErrorDetail[]requiredShow propertiesHide properties
Array of
ProblemErrorDetailfieldstring | nullreasonstringrequirednext_actionsstring[] | nullrequest_idstring | nullstatusinteger<int32>requiredmin 100 · max 599
titlestringrequiredtypestringrequiredRequest
curl -X POST "/v1/auth/phone/otp/start" \
-H "Content-Type: application/json" \
-d '{
"phone": "string",
"purpose": "string"
}'const response = await fetch("/v1/auth/phone/otp/start", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"phone": "string",
"purpose": "string"
})
});import requests
response = requests.post(
"/v1/auth/phone/otp/start",
headers={
"Content-Type": "application/json"
},
json={
"phone": "string",
"purpose": "string"
},
)Response
{
"challenge_id": "string",
"debug_code": "string",
"expires_at": "2024-01-01T00:00:00Z",
"resend_after": "2024-01-01T00:00:00Z"
}{
"code": "string",
"correlation_id": "string",
"detail": "string",
"errors": [
{
"field": "string",
"reason": "string"
}
],
"next_actions": [
"string"
],
"request_id": "string",
"status": 0,
"title": "string",
"type": "string"
}{
"code": "string",
"correlation_id": "string",
"detail": "string",
"errors": [
{
"field": "string",
"reason": "string"
}
],
"next_actions": [
"string"
],
"request_id": "string",
"status": 0,
"title": "string",
"type": "string"
}{
"code": "string",
"correlation_id": "string",
"detail": "string",
"errors": [
{
"field": "string",
"reason": "string"
}
],
"next_actions": [
"string"
],
"request_id": "string",
"status": 0,
"title": "string",
"type": "string"
}