POST
/
api
/
v1
/
send
/
otp
cURL
curl --request POST \
  --url https://api-v2.dexchange-sms.com/api/v1/send/otp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "service": "<string>",
  "number": "<string>",
  "channel": "<string>"
}'
{
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Details for sending an OTP

service
string
required

Service for which the OTP is requested

number
string
required

Phone number to send the OTP to

channel
string

whatsapp or sms

Response

OTP sent successfully

status
string

The status of the OTP