Skip to main content
POST
/
users
/
{user_id}
/
phonenumber
Verify phone number
curl --request POST \
  --url {schemes}://api.upsun.com/users/{user_id}/phonenumber \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel": "sms",
  "phone_number": "<string>"
}
'
{
  "sid": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string<uuid>
required

The ID of the user.

Example:

"d81c8ee2-44b3-429f-b944-a33ad7437690"

Body

application/json
channel
enum<string>
required

The channel used to receive the verification code.

Available options:
sms,
whatsapp,
call
phone_number
string
required

The phone number used to receive the verification code.

Response

OK

sid
string

Session ID of the verification.

Last modified on March 25, 2026