Webhooks
Configure delivery-status webhook
Get delivery-status webhook
Update delivery-status webhook
Revoke delivery-status webhook
Quick guide
A webhook sends events to your HTTPS endpoint as they happen, so you don't have to poll. Your account has one webhook, which receives the events of SMS, RCS and WhatsApp.
- Register your address with
POST /webhooks/delivery-status, as{"callbackUrl": "https://..."}:httpson a public host, on port 443 or 8443. If a webhook already exists,POSTanswers409: change its address withPUT. - Handle the events:
DELIVERY, the final status of a message,READ, when an RCS or WhatsApp message is read, andINBOUND, when a contact writes to you.DELIVERYandREADcover the messages sent through the send APIs, not campaign messages;INBOUNDcovers every reply. - Answer with any
2xxwithin 5 seconds. A failed call is retried, up to 5 attempts, so an event can arrive twice or out of order: process each one once, byeventTypeandmessageId(andnumParton SMS).
Calls carry no signature: check that the messageId of an event is one of yours. Email has no events yet.
Use cases: UC-015: Two-Way Conversation · UC-017: Download Inbound Media