How to Track Message Delivery Status with Webhook Event
By Nimana · Last updated November 19, 2026 · 3 min read
Know what happened to every message. Learn how to use sent, delivered, read, and failed events to track messages reliably, with tips for duplicates and gaps.
Why This Matters
When your app sends a message, the API usually answers with "accepted". That is not the same as "delivered". Between the two, a message can be queued, sent, delivered, read, or fail. If you do not track what happens next, you cannot answer simple questions: Did the customer get the code? Did the order update arrive? Why is support getting complaints?
Delivery events fix this. Each time a message changes state, the messaging service tells your server.
The Life of a Message
Most messages move through the same stages:
- Accepted or queued: the service has your request.
- Sent: the message has left the service.
- Delivered: it reached the recipient's phone or inbox.
- Read or opened: the recipient looked at it. This is available on some channels.
- Failed or bounced: it did not arrive.
Different channels report different stages. WhatsApp can report that a message was read, email can report opens and clicks, and SMS usually reports delivered or failed.
Five Tips for Reliable Tracking
1. Save a record for every message you send
When you send, store your own record with the message ID the API returns. When an event arrives later, you match it to that record using the ID. Without this link, events have nowhere to go.
2. Update the status, do not just add events
Keep one current status per message, and store each event with its timestamp as history. That gives you both a quick answer ("delivered") and a full story if something goes wrong.
3. Expect events out of order
Network delays mean a "delivered" event can arrive before "sent". Do not move a message backwards, for example from delivered to sent. Compare the stage and the timestamp before you update.
4. Expect duplicates
The same event can arrive more than once. Use the event ID to process each one a single time.
5. Alert on failures, not just record them
A failed message is often a customer who is waiting. Decide in advance what to do: retry on another channel, flag the order, or notify your team. A simple example:
function handleEvent(event) {
const message = findMessageForEvent(event); // match using the message ID you stored
if (!message) return;
if (event.type.endsWith('.failed') || event.type.endsWith('.bounced')) {
markFailed(message);
triggerFallback(message);
return;
}
if (event.type.endsWith('.delivered')) markDelivered(message);
}
What to Show on a Status Page
A basic internal dashboard is often enough:
- Delivery rate: the share of messages delivered
- Failures in the last hour, with reasons if you have them
- Time to delivery: how long messages take to arrive
- Pending messages that have been waiting too long
Common Mistakes
- Treating "accepted" as "delivered"
- Ignoring failed events, so customers are never contacted another way
- Processing the same event twice
- Doing slow work before replying to the webhook, which causes timeouts and repeat deliveries
How SendAPI Helps
SendAPI sends webhook events for every channel to the same place, so one endpoint can follow a message wherever it goes:
- WhatsApp events: sent, delivered, read, and received, plus session connected and disconnected
- SMS events: delivered and failed
- Email events: delivered, opened, clicked, and bounced
- Automatic retries: if your endpoint fails, SendAPI makes 4 attempts in total, with delays of 5 seconds, 30 seconds, and 2 minutes between them
- A deliveries endpoint,
GET /v1/webhooks/{id}/deliveries, to inspect what was sent to your webhook - Unified logs in the Workspace API, so you can look back at what happened to a message
Reply to every webhook with 200 OK quickly, and do the heavy work in the background. SendAPI's production checklist recommends replying within 5 seconds.
All of this comes with WhatsApp, SMS, OTP, and email under one API from $9.99 a month.