Receiving WhatsApp messages programmatically
We offer 2 mechanisms for receiving messages: polling and webhooks.
Offline reception (polling)
- You can poll for new messages using the Get Messages endpoint.
Real-time reception (webhooks)
You can receive WhatsApp messages in real-time using webhooks.
- For regular person-to-person messages, you can subscribe to the
whatsapp.message.received
webhook. - For WhatsApp group messages, you can use
whatsapp.group.message.received
. - For WhatsApp order messages, you can use
whatsapp.order.received
.
Learn more about how to use these webhooks here.