Request a phone number change for the current identity
POST
/current-identity-phone
Starts the process of changing the phone number attached to the authenticated identity. Generates a single-use, 6-digit phone-change-otp code, stores the requested number as pending_auth_id on the identity's phone auth method record, and queues an SMS containing the code to the new phone number.The new phone number is not applied immediately — it only becomes the identity's verified phone number once the returned OTP is confirmed via the phone verification flow. If the identity has no existing phone auth method, one is created in a pending state; if one already exists, its pending_auth_id is overwritten with the newly requested number.Requests are rate-limited per auth method: if a phone-change-otp was already issued within the cooldown window (60 seconds by default, configurable via PHONE_CHANGE_OTP_COOLDOWN_MS), the request is rejected with a 429 instead of sending another SMS.Requires a JWT bearer token — the identity making the request is taken from the authenticated session (identity_id), not from the request body.
Request
Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/jsonRequired
Examples
Responses
🟢200
application/json
The phone change was accepted; a one-time verification code has been queued for delivery via SMS to the requested phone number.