Skip to main content

Webhooks

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.

  1. Register your address with POST /webhooks/delivery-status, as {"callbackUrl": "https://..."}: https on a public host, on port 443 or 8443. If a webhook already exists, POST answers 409: change its address with PUT.
  2. Handle the events: DELIVERY, the final status of a message, READ, when an RCS or WhatsApp message is read, and INBOUND, when a contact writes to you. DELIVERY and READ cover the messages sent through the send APIs, not campaign messages; INBOUND covers every reply.
  3. Answer with any 2xx within 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, by eventType and messageId (and numPart on 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