Skip to main content
PUT
/
v2
/
verification
/
management
/
phone-numbers
/
sandbox
Add a sandbox phone number
curl --request PUT \
  --url https://api.prelude.dev/v2/verification/management/phone-numbers/sandbox \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone_number": "<string>",
  "attempt_code": "<string>"
}
'
{
  "phone_number": "<string>",
  "attempt_code": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
phone_number
string<phone_number>
required

An E.164 formatted phone number to add to the sandbox list.

Example:

"+30123456789"

attempt_code
string
required

The fixed attempt code that will validate verification attempts for this phone number.

Example:

"123456"

Response

OK

phone_number
string<phone_number>
required

The E.164 formatted phone number that was added to the sandbox list.

Example:

"+30123456789"

attempt_code
string
required

The fixed attempt code associated with the sandbox phone number.

Example:

"123456"