v1

latestOpenAPI 3.0.22026-07-2432112226.7 KB
WhatsApp OTP

Verify WhatsApp OTP V2

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

API Update Notice: This V2 endpoint is the recommended version, replacing the previous V1 endpoint. We recommend migrating to V2 immediately for a better experience.<br>

Benefits of V2:

  • Decreased processing time for API requests and responses
  • Improved features: Blocking Request, Spam Check, and Blocked Numbers
  • Increased RPS (from 30 RPS to 50 RPS)
  • Better developer environment to support future developments
  • Improved logging and monitoring
  • Improved dependencies and service stability<br>

A rate limit of 50 RPS is applied to WhatsApp services. Verihubs also applies rate limits divided into several categories based on product. For more details, see Rate Limit.

post/v2/whatsapp/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",
  "otp": "234123",
  "challenge": "update_account"
}

Response

Successful Response

messagestring required

Message

Example response

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