Programmatically integrate WhatsApp to your software
whatsapp.message.received
Fired when a new WhatsApp message is received from a customer. Supports message buffering for batch delivery.whatsapp.message.sent
Fired when a message is successfully sent to WhatsAppwhatsapp.message.delivered
Fired when a message is successfully delivered to the recipient’s devicewhatsapp.message.read
Fired when the recipient reads your messagewhatsapp.message.failed
Fired when a message fails to deliverwhatsapp.conversation.created
Fired when a new WhatsApp conversation is initiatedwhatsapp.conversation.ended
Fired when a WhatsApp conversation ends (agent action, manual closure, or 24-hour inactivity)received
, sent
, delivered
, read
, failed
):
whatsapp.conversation.created
and whatsapp.conversation.ended
events:
whatsapp.conversation.ended
events, the conversation status will be “ended”. This event is triggered when:last_active_at
timestamp indicates when the conversation was last active.message_type
field can be one of:
text
- Plain text messageimage
- Image attachmentvideo
- Video attachmentaudio
- Audio/voice messagedocument
- Document attachmentlocation
- Location sharingtemplate
- WhatsApp template messageinteractive
- Interactive message (buttons, lists)reaction
- Message reactioncontacts
- Contact card sharingmessage_type_data
field contains different information based on the message type:
whatsapp.message.received
events in a single batched webhook, reducing the load on your servers during high-volume conversations.
whatsapp.message.received
event:
whatsapp.message.received
event type with an array of messages:
batch
field or X-Webhook-Batch
header to determine if you’re receiving a batched delivery.whatsapp.message.received
) and message sent (whatsapp.message.sent
) eventsX-Idempotency-Key
header to prevent processing duplicatesX-API-Key
request header.
agent_execution_started
Fired when an agent begins processingagent_execution_ended
Fired when an agent completes successfullyagent_execution_failed
Fired when an agent encounters an erroragent_execution_handoff
Fired when human intervention is neededX-Webhook-Signature
header containing an HMAC SHA-256 signature of the request body. Verify this signature using your configured Secret Key to ensure authenticity.