Webhooks

Get delivery status and customer replies sent straight to your own endpoint in real time, so your system always knows what happened. Handler examples are available in 7 languages.

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.

Event sent to your endpoint
{
  "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.queued

    The message was accepted and is waiting to be sent.

    All channels
  • message.sent

    The message left AvenoLink and was handed to the network.

    All channels
  • message.delivered

    The message reached the recipient's phone or inbox.

    SMS, WhatsApp, Email
  • message.read

    The recipient opened the message.

    WhatsApp
  • message.failed

    The message could not be delivered. The payload includes a reason.

    All channels
  • message.received

    A 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"
    }
  }'
200 OK — Your reply
ok