A valid request URL is required to generate request examples
{ "sid": "<string>" }
Starts a phone number verification session.
cURL
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>" } '
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the user.
"d81c8ee2-44b3-429f-b944-a33ad7437690"
The channel used to receive the verification code.
sms
whatsapp
call
The phone number used to receive the verification code.
OK
Session ID of the verification.
Was this page helpful?