post https://api.verihubs.com/v2/otp/send/sandbox
SMS OTP version change is by introducing a new API version release.
Version changes usually need to be applied immediately to the latest version, in order to get a better API usage experience than the previous version.
The benefits you get if you use a newer version are as follows.
- Increase processing time in API Request and Response
- Improve feature in SMS: Blocking Request, Spam Check, Sequential Phone Number, and Blocked Numbers
- Increase RPS in SMS (before 30rps to 50rps)
- Better developer environment to support future developments
- Improve logging and monitoring on our side
- Improved dependencies and improved service stability
This method helps you to generate and send sms containing one-time password to destination number
The following table describes the msisdn option to be used as an input
Msisdn | Description | Response |
---|---|---|
6282123060001 | Valid Phone number | 201 "OTP sent successfully" |
6282123060002 | Msisdn invalid | 400 "Msisdn invalid: msisdn length should between 4-16 characters" |
6282123060003 | Invalid Header | 401 "Authorization failed" |
6282123060004 | Insufficient Quota | 403 "OTP testing quota is insufficient" |
6282123060005 | Blocked Msisdn | 409 "Msisdn invalid: msisdn has been blocked" |
6282123060006 | Too Many Request | 429 "Too many request in the allowed time frame" |