v1

latestOpenAPI 3.0.22026-07-2432112226.7 KB
SMS OTP

Verify OTP V2

SMS OTP version change is by introducing a new API version release.<br>

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.<br>

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<br>

This method helps you to verify one-time password to destination number<br>

post/v2/otp/verify

Headers

App-IDstring required
API-Keystring required

Request body

msisdnstring required

This value is destination number. You need to include international prefix number.

otpstring required

Code received by destination number.

challengestring

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

Example request

{
  "msisdn": "6282123060001",
  "challenge": "update_account"
}

Response

Successful Response

messagestring required

Message

Example response

{
  "message": "OTP has been verified"
}
All 32 operations