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>", "signature": "<string>" } '
{ "status": "<string>" }
Sends an OTP to the specified number
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Details for sending an OTP
Service for which the OTP is requested
Phone number to send the OTP to
Channel for which the OTP is requested (sms or whatsapp)
The sender's signature
OTP sent successfully
The status of the OTP