Verify Phone OTP and Connect
Verifies the OTP code and connects the phone number to the user profile.
POST
Verifies the OTP code and connects the phone number to the user profile.
Loading code example
Loading code example
Authorizations
apiKeyAuthstringheaderrequired
API key passed in the header.
Body
Body
phoneNumberstringrequiredPhone number in E.164 format (e.g., +14155552671)
Pattern:
^\+[1-9]\d{1,14}$codestringrequiredThe OTP code received via SMS
Length:
>= 4, <= 10websiteIdstring<uuid>The ID of the website
userIdstring<uuid>The ID of the user
walletAddressstringThe wallet address of the user
Response
application/json
200
dataobjectrequiredResponse payload after verifying the OTP code and connecting the phone number
data.successbooleanrequiredWhether the phone number was verified successfully
data.messagestringStatus message
data.errorstringError code if verification failed
data.accountLinkDatastringJWT-encoded data for resolving account link conflicts when the phone is already linked