Skip to content

Webhooks

Webhooks for every email event

Get a signed JSON POST at your URL when an email is delivered, bounced or opened, or when a message arrives. Failed deliveries retry with backoff, and any event can be replayed.

acme.dev/hooksExample feed
  1. +0.4 semail.sent200 OK
  2. +1.0 semail.delivered200 OK
  3. +1.6 semail.openedfirst_open: true200 OK
  4. +2.2 semail.bounced503, retry
  5. +2.8 smessage.receivedacme.dev/agent200 OK

Signed with svix-signature. A raw HTTP POST any server can read.

Listen to events as they happen

Choose what each endpoint receives: email, contacts and topics, domains and suppressions, automations and inboxes.

Filter email events by message stream, or scope a webhook to one inbox or pod.

email.sent            email.delivered
email.delivery_delayed
email.bounced         email.complained
email.opened          email.clicked
email.failed          email.scheduled
email.suppressed      email.unsubscribed
email.received        email.replied

Retries with backoff and a backup

A delivery counts as sent only on HTTP 200. Anything else is retried, and a backup endpoint can take over.

Set backup_endpoint. After backup_after_attempts failures (default 3), the same events go to it. Retries run for about a day, and replay covers anything later.

email.bounced → acme.dev/hooksExample delivery log
  1. attempt 1503 Service Unavailable
  2. attempt 2503 Service Unavailable
  3. attempt 3No response, timed out
  4. backup200 OKdelivered to backup_endpoint

Three steps to first event

Create an endpoint, verify each request, then test without sending real mail.

Every delivery carries svix-id, svix-timestamp and svix-signature, made with that endpoint's own secret over the raw body.

POST /webhooksExample
curl -X POST https://api.send.io/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "endpoint": "https://acme.com/webhooks/sendio",
    "events": ["email.delivered", "email.bounced", "email.complained"]
  }'

Or send to delivered@send.io, bounced@send.io or complained@send.io and the matching events fire.

Point a webhook at your app.

Signed events, retries and replay from the first email you send.

Over the shoulder of a developer in a cap, code on the laptop in the sunlight