← Back to WebhooksDocumentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.
Event Payload Format
All webhook events share a consistent JSON structure with common fields and event-specific data. Events are delivered as HTTP POST requests withContent-Type: application/json.
Common Event Structure
All webhook events share these common fields:| Field | Type | Description |
|---|---|---|
event | string | The event type (e.g., message.received) |
event_id | string | Unique identifier for this event (use for deduplication) |
timestamp | string | ISO 8601 timestamp when the event occurred |
channel_id | string | ID of the WhatsApp channel this event relates to |
data | object | Event-specific payload data |
message.received
Triggered when your business receives a message from a customer. This is the most common event and is essential for building conversational experiences.Supported Message Types
text- Plain text messages.image- Images with optional caption.video- Videos with optional caption.audio- Voice messages or audio files.document- PDF, Word, Excel, etc.location- Shared location with coordinates.contacts- Shared contact cards.button- Button click response.interactive- List or button selections.
Use Case
Use this event to create support tickets, route inquiries to agents, trigger chatbots, or log customer conversations in your CRM.message.sent
Triggered when a message is successfully sent from your business to a customer. This confirms the message has been accepted by WhatsApp’s servers.Use Case
Use this event to update message status in your UI, log outbound messages for compliance, or track when automated messages are sent.message.delivered
Triggered when a sent message is successfully delivered to the recipient’s device. This shows as double gray checkmarks in WhatsApp.Delivery does not guarantee the message was read, only that it reached the recipient’s device.
message.read
Triggered when a recipient opens and reads your message. This shows as blue double checkmarks in WhatsApp (if the recipient has read receipts enabled).Use Case
Use this event to calculate campaign read rates, notify sales teams when prospects read messages, or trigger follow-up workflows.Privacy Note - Users can disable read receipts in WhatsApp settings. If disabled, you will not receive read events even if they have read the message.
message.failed
Triggered when a message fails to send. The event includes error details explaining why delivery failed.Common Error Codes
INVALID_NUMBER- Phone number is not registered on WhatsApp.BLOCKED- Recipient has blocked your business number.RATE_LIMIT- Messaging rate limit exceeded.TEMPLATE_NOT_FOUND- Template does not exist or has not been approved.PARAMETER_ERROR- Invalid template parameters provided.