Bind Phone Send
Changed onMint + send an OTP to the target phone for the caller to verify.
Pre-flight rejects if the phone is already bound to a DIFFERENT user (409). Re-binding the SAME phone the caller already owns is allowed — useful as a "re-verify" affordance.
Shares the phone_otp_codes table + 60s per-phone cooldown with /api/auth/sms/send; the OTP minted here can also be consumed by that endpoint and vice versa. The /confirm endpoint below is the only thing that enforces who-owns-what at verify time, so cross- flow OTP use is benign.
post/api/user/profile/bind-phone-send
Request
- Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
- URL: https://api.omicos.cn/api/user/profile/bind-phone-send
- Auth: none declared
Headers
authorizationstring nullable
x-omicos-devicestring nullable
x-omicos-device-kindstring nullable
x-omicos-device-namestring nullable
Request body
Response
Successful Response
object required
Changes
- info
added the new optional
headerrequest parameterx-omicos-device - info
added the new optional
headerrequest parameterx-omicos-device-kind - info
added the new optional
headerrequest parameterx-omicos-device-name
- info