user

Change user phone number

Request to change the authenticated user's phone number. A one-time password is sent via SMS to the new phone number; complete the change by calling /user/phone-number/change/verify with the OTP. The current phone_number is left unchanged until verification succeeds. Requires elevated permissions.

post/user/phone-number/change

Request body

newPhoneNumberstring required

New phone number to bind to the user once verified via SMS OTP

Example request

{
  "newPhoneNumber": "+123456789"
}

Response

Phone number change requested. An SMS with a verification code has been sent to the new phone number.

'OK' required

Changes

Changed in 1 of the 17 revisions of this API.1