eusend
Webhooks

Webhooks

Subscribe to email events and receive real-time HTTP POST notifications at your endpoint.

Subscribe to email events and receive real-time HTTP POST notifications at your endpoint. A failed delivery is retried with exponential back-off for about four hours (10 attempts in total) before it is marked failed.

When a delivery fails for good, we email the account owner — at most once per endpoint per day. If every delivery to an endpoint has failed for three days straight, the endpoint is disabled: new events are no longer queued for it, and the owner is emailed again. Fix the endpoint, send a test event, then enable it again with PATCH /webhooks/:id and { "enabled": true } or from the dashboard.

How many endpoints you may register depends on your plan — one on the free tier, more on Production. Creating one past the cap returns 403 with code PLAN_LIMIT_EXCEEDED; see pricing for the number on each plan. Endpoints you already have keep working if your plan changes.

POST/webhooks
ParameterTypeDescription
urlrequiredstringPublic HTTP(S) endpoint to receive events. Private, loopback, and internal addresses are rejected — both at creation and again (after DNS resolution) before each delivery.
eventsrequiredstring[]Event types to subscribe to. Use "*" to subscribe to all events.
create webhook
curl -X POST https://api.eusend.dev/webhooks \
  -H "Authorization: Bearer eu_live_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://yourapp.com/webhooks/eusend",
    "events": ["email.delivered", "email.bounced", "email.complained"]
  }'
response — 201 Created
{
  "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "url": "https://yourapp.com/webhooks/eusend",
  "events": ["email.delivered", "email.bounced", "email.complained"],
  "secret": "AbCdEfGhIjKlMnOpQrStUvWxYz0123456789ABC",
  "disabledAt": null,
  "disabledReason": null,
  "createdAt": "2026-05-20T10:00:00.000Z"
}
ℹ

Store the secret securely — you'll need it to verify incoming webhook signatures. If you lose it, retrieve it again with GET /webhooks/:id/secret, or view it on the webhook's page in the dashboard.

ℹ

Your endpoint must respond directly with a 2xx status. Redirects (3xx) are not followed and count as a failed delivery.

The rest of the webhooks surface:

Creating, updating, and deleting endpoints requires a live API key or the dashboard. Test-mode keys can read endpoints and deliveries, and test sends still trigger configured webhooks, but cannot change endpoints or access their signing secrets.

GET/webhooks

List webhooks.

GET/webhooks/:id

Get webhook + recent deliveries.

PATCH/webhooks/:id

Update url, events, or enabled. Setting enabled to false pauses the endpoint (disabledReason: "manual"); true re-enables an endpoint that was paused or disabled for failing (disabledReason: "failing"). Events that happen while an endpoint is disabled are not queued and are not replayed when it is enabled again.

POST/webhooks/:id/test

Send one webhook.test event to the endpoint, signed like any other, and return 202 with the delivery id. It is attempted once, so its result shows up in the delivery log within seconds. Works on a disabled endpoint, so you can confirm a fix before enabling it again.

webhook.test payload
{
  "type": "webhook.test",
  "webhook_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "timestamp": "2026-05-20T10:00:00.000Z"
}
GET/webhooks/:id/secret

Retrieve the signing secret.

POST/webhooks/:id/rotate-secret

Replace the signing secret and return the new one. It takes effect immediately — the previous secret stops verifying on the next delivery, so update your endpoint first unless you are rotating because the old secret leaked.

DELETE/webhooks/:id

Delete webhook.