Event payload
Every event is a JSON object sent to your endpoint with a POST request. It carries the event type, the message and batch ids, the channel, the recipient and the new status.
{
"id": "evt_7h2k9p1x",
"type": "message.delivered",
"created_at": "2026-11-11T09:41:12Z",
"data": {
"message_id": "msg_4f8a2c91",
"batch_id": "bat_xk9m2p4q",
"channel": "sms",
"recipient": "265XXXXXXXXX",
"status": "delivered"
}
}Events
Every step of a message is an event. Subscribe to the ones you care about and ignore the rest.
message.queuedThe message was accepted and is waiting to be sent.
All channelsmessage.sentThe message left AvenoLink and was handed to the network.
All channelsmessage.deliveredThe message reached the recipient's phone or inbox.
SMS, WhatsApp, Emailmessage.readThe recipient opened the message.
WhatsAppmessage.failedThe message could not be delivered. The payload includes a reason.
All channelsmessage.receivedA customer replied to one of your messages.
SMS, WhatsApp, Email
Handlers
Point AvenoLink at an endpoint on your server. It receives a JSON event and replies with a 200 status. Pick your language below.
- Reply fast — Return a 200 status as soon as you receive the event
- Work in the background — Queue slow tasks so they never block your response
- Expect repeats — Use the event id so processing an event twice does no harm
- Use HTTPS — Expose your endpoint over HTTPS only
POST https://yourapp.com/webhooks/avenolink
curl -X POST https://yourapp.com/webhooks/avenolink \
-H "Content-Type: application/json" \
-d '{
"id": "evt_7h2k9p1x",
"type": "message.delivered",
"created_at": "2026-11-11T09:41:12Z",
"data": {
"message_id": "msg_4f8a2c91",
"batch_id": "bat_xk9m2p4q",
"channel": "sms",
"recipient": "265XXXXXXXXX",
"status": "delivered"
}
}'ok