Send OTP
Send an OTP to a mobile number using a predefined OTP template. You can customize the OTP length, expiry, and provide values for variables in your DLT template.
post/dev/otp/send
Request
- Base URLhttps://www.fast2sms.com
- URLhttps://www.fast2sms.com/dev/otp/send
- Authnone declared. Required headers: Authorization
Headers
Authorizationstring required
Provide "YOUR_API_KEY".
Request body
Example request
{
"mobile": "9999999999",
"otp_id": "your_otp_id_here",
"otp": "123456",
"variables_values": "value1|{otp}"
}Response
OTP sent successfully
Example response
{
"return": true,
"status_code": 200,
"request_id": "lwdtp7cjyqxvfe9",
"message": "OTP sent successfully"
}Changes
No recorded changes to this operation across all 1 revision of this API.