post https://api.verihubs.com/v1/whatsapp/otp/send
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. This status will be charged. |
7 | Request Error | Verihubs cannot reach WhatsApp |
10 | Tier Limit Exceeded | Exceeding channel tier limit |