Snag Docs logo

Send Phone Verification Code

Initiates phone number verification by sending an OTP code via SMS using Twilio Verify.

POSThttps://admin.snagsolutions.io/api/phone_verifications
Loading code example
Loading code example

Authorizations

apiKeyAuthstringheaderrequired

API key passed in the header.

Body

Body

phoneNumberstringrequired

Phone number in E.164 format (e.g., +14155552671)

Pattern: ^\+[1-9]\d{1,14}$
websiteIdstring<uuid>

The ID of the website

userIdstring<uuid>

The ID of the user

walletAddressstring

The wallet address of the user

Response

application/json

200

dataobjectrequired

Response payload after initiating phone verification via OTP

data.successbooleanrequired

Whether the phone number verification was successful

data.messagestringrequired

Status message

data.userIdstring<uuid>required

The ID of the user

POST /api/phone_verifications