WhatsApp OTP
Send WhatsApp OTP
⚠️ This endpoint will be deprecated on June 30, 2026.
This method helps you to generate and send Whatsapp message containing one-time password to destination number
Callback Description
When you want to use callback_url payload you only need to put for example
your-callback-url.com/callback
Example callback that we'll send
your-callback-url.com/callback?session_id=d0f5fb5c-2d50-4d3f-aea7-20018ab15806&status=1
| Payload | Description |
|---|---|
| session_id | ID of the specific message |
| status | Latest status of the request |
Callback Status Description
| Status | Description | Condition |
|---|---|---|
| 0 | Requested | OTP has been requested. This status will be charged. |
| 1 | Sent | OTP has been sent to Whatsapp server. This status will be charged. |
| 2 | Delivered | OTP has been delivered to destination number. This status will be charged. |
| 3 | Read | OTP has been read by user. This status will be charged. |
| 4 | Verified | OTP has been verified by user. This status will be charged. |
| 5 | Unverified | OTP has reached time limit. This status will be charged. |
| 6 | Failed | Whatsapp cannot send OTP to destination number. |
| 7 | Request Error | Verihubs cannot reach WhatsApp |
| 8 | Rejected | Request rejected due to Too Many Requests |
| 9 | Blocked | Destination Number has been blocked by Verihubs's system |
| 10 | Tier Limit Exceeded | Exceeding channel tier limit |
post/v1/whatsapp/otp/send
Request
- Base URLhttps://api.verihubs.com
- URLhttps://api.verihubs.com/v1/whatsapp/otp/send
- Authnone declared. Required headers: App-ID, API-Key
Headers
App-IDstring required
API-Keystring required
Request body
Example request
{
"msisdn": "628391028399",
"otp": "234123",
"challenge": "update_account",
"time_limit": "300",
"lang_code": "en",
"template_name": "send_otp_template",
"otp_length": "5",
"callback_url": "https://your-url-callback.com"
}Response
Successful Request
Example response
{
"message": "OTP sent successfully",
"otp": "234123",
"msisdn": "62839102839",
"session_id": "asddede-asdae234-34sfd3-fe234d",
"try_count": 2
}Changes
No recorded changes to this operation across all 1 revision of this API.