POST requests. Instead of continuously polling for new messages, your application can listen for these webhooks to respond to customers instantly.
Webhook Requirements & Best Practices
To ensure reliable delivery of events without latency, your webhook endpoint must meet the following criteria:- HTTPS Enabled: Your webhook endpoint must be publicly accessible and secured with a valid SSL/TLS certificate (HTTPS).
- Fast 200 OK Response: You must return an HTTP
200 OKresponse as quickly as possible upon receiving the webhook. If your application requires heavy processing or database operations, we strongly recommend pushing the event to a background queue and returning200 OKimmediately to prevent timeouts. - Security: Configure a Custom Webhook Secret in your Connexease dashboard. Our gateway will include
Authorization: Bearer <your_secret>in every webhook request it forwards to you.
Supported Event Types
When configuring your webhook URL, you can subscribe to specific event types:message: Triggered when a customer sends a new message to your WhatsApp number.status: Triggered when the delivery status of an outbound message changes (e.g., sent, delivered, read, failed).template: Triggered when the approval status of a WhatsApp message template changes.account: Triggered for WhatsApp Business Account updates.