post
https://api.verihubs.com/v2/whatsapp/message/send
This method helps you to generate and send WhatsApp message to destination number
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.
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
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.
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 | Message has been requested. This status will be charged. |
| 1 | Sent | Message has been sent to Whatsapp server. This status will be charged. |
| 2 | Delivered | Message has been delivered to destination number. This status will be charged. |
| 3 | Read | Message has been read by the destination number. This status will be charged. |
| 6 | Failed | Whatsapp cannot send Message 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 |
| 11 | Invalid Data | Message is not processed further by Verihubs because it doesn’t pass Verihubs validation. |
