Sandbox - Send OTP V2

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.

  • Decreasing 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"
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Destination Phone Number. You need to include international prefix number.

string

Optional.Template to be send to destination number. Include $OTP in template for generated OTP.

string

Optional. Code generated by client.

string

Optional. Expiration time for verify OTP in seconds.

string

This value is a category. You can verify OTP based on the same challenge.

string

Optional. This URL will be called by the server when the desired event will occur.

Headers
string
required
string
required
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json