SMS OTP

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

Request

  • Base URL
    https://api.verihubs.com
  • URL
    https://api.verihubs.com/v2/otp/verify
  • Auth
    none declared. Required headers: App-ID, API-Key

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": "62839102839",
  "otp": "234123",
  "challenge": "update_account"
}

Response

Successful Response

messagestring required

Message

Example response

{
  "message": "OTP has been verified"
}

Changes

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status