Webhooks
Workspace webhooks push events to your endpoint. Each delivery is signed, retried and replayable.
Events
| Event | When |
|---|---|
message.received | An owned WhatsApp or inbound email connection committed a message |
message.status_updated | A signed Messaging API v2 status update committed |
webhook.test | A test event sent from the dashboard |
Addresses and content are masked in the event payload where the workspace does not own the data. The event ID is stable; use it for deduplication.
Endpoints
Create an endpoint in Dashboard → Webhooks. Up to eight endpoints per workspace are supported. Each endpoint chooses its events, receives a reveal-once signing secret, and can be disabled.
A URL must be public HTTPS. A disabled endpoint stops delivery immediately and cannot be rotated; create a replacement instead.
Signature
Every request carries a signature header over the raw body. Compute the HMAC with the endpoint secret and compare in constant time before parsing. A failed verification means the request is not from Bonga, regardless of its contents.
Retries and replay
Delivery is at-least-once. A non-2xx response or timeout is retried with backoff. Failures are visible in the endpoint's delivery list, where you can replay a specific event. A replay sends the original payload again with the same event ID.
Consumer checklist
- Verify the signature before trusting any field.
- Deduplicate by event ID.
- Respond
2xxquickly, then process asynchronously. - Expect redelivery and make handlers idempotent.
- Keep the signing secret server-side.
- Monitor failures; a repeatedly failing endpoint is disabled or flagged.