Send update code
Update phone number
Send update code
Begin a two-step phone number change flow by requesting a verification code.
This endpoint starts verification only; it does not immediately change the stored phone number.
Flow:
- Call this endpoint with the target phone number.
- Read the verification code sent to that phone number.
- Call PUT /user/account/phone-number to verify and complete the update.
PATCH
Send update code
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Phone number used to trigger an SMS verification from Logto.
Phone number to verify
Response
204
A verification code was sent to the phone number