Generates a one-time password and sends it to the given mobile number using the provided message template. The %m placeholder in the message template is replaced with the generated OTP before sending. The OTP can later be verified using the Verify OTP API.
Response Codes
| Code | Meaning | |------|---------| | 1701|MSISDN|MessageID | OTP message sent successfully | | 1702 | One of the parameters is missing, or OTP length is not numeric | | 1703 | Authentication failed | | 1705 | Message does not contain the %m placeholder | | 1706 | Given destination is invalid | | 1707 | Invalid source | | 1710 | Some error occurred | | 1715 | Response timed out | | 1025 | Insufficient user credit | | 1026 | Insufficient reseller credit | | 1027 | Insufficient distributor credit |
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Bad request — one or more parameters are missing or invalid.
401Unauthorized — invalid username or password.
500Internal server error.