API Documentation

Sandbox - Send OTP V2 (New)

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

MsisdnDescriptionResponse
6282123060001Valid Phone number201 "OTP sent successfully"
6282123060002Msisdn invalid400 "Msisdn invalid: msisdn length should between 4-16 characters"
6282123060003Invalid Header401 "Authorization failed"
6282123060004Insufficient Quota403 "OTP testing quota is insufficient"
6282123060005Blocked Msisdn409 "Msisdn invalid: msisdn has been blocked"
6282123060006Too Many Request429 "Too many request in the allowed time frame"
Language
Click Try It! to start a request and see the response here!