Skip to content

Mark phone as verified

Request

Indicates that the user's phone number was verified externally. A user's phone number is automatically marked as verified when used in a Transmit authentication or verification flow. If the phone number is a secondary one, the request can also be used to set it as the user's primary phone (by setting change_to_primary to true).

Required permissions: apps:edit, [appId]:edit, users:edit.

Security
ClientAccessToken
Path
phone_numberstringrequired

The phone number of the user that should be verified

user_idstringrequired

The ID of the user that should be updated

Bodyapplication/jsonrequired
change_to_primaryboolean
curl -i -X POST \
  'https://api.sbx.transmitsecurity.io/cis/v1/users/{user_id}/phone-numbers/{phone_number}/verify' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "change_to_primary": true
  }'

Responses

User phone number has been verified

Response
No content