Email webhooks: know the moment an email is delivered, bounced or opened

Webhooks let your system react to what happens after an email leaves: mark an invoice as delivered, flag a customer whose address bounced, or log that a reset link was clicked.

Events you can receive

EventWhen it is sent
email.deliveredThe receiving mail server accepted the message.
email.bouncedIt could not be delivered. The address is added to your suppression list.
email.complainedThe recipient marked it as spam. The address is suppressed.
email.openedThe email was opened (when open tracking is on).
email.clickedA link was clicked; data.link holds the URL.
email.failedWe could not send it at all; data.error says why.

In Webhooks in the dashboard you add an endpoint URL and tick the events you want. Each endpoint has its own signing secret.

What a webhook looks like

POST to your endpoint
Content-Type: application/json
User-Agent: JMSURF-Mail-Webhooks/1.0
X-JMSURF-Signature: t=1763884437,v1=5f0c…

{ "type": "email.delivered", "created_at": "2026-11-23T09:13:57Z",
  "data": { "id": "4f1c2a3e-0d5b-4c7e-9a7f-2b1c9d0e8f11", "recipient": "[email protected]" } }

data.id is the id you got back when you sent the email, so you can match the event to your own order, invoice or user.

Signed, so nobody can fake them

Every request carries X-JMSURF-Signature: t=<unix time>,v1=<hex>. v1 is HMAC-SHA256 of t + "." + raw body with your webhook secret. Your server recomputes it, compares in constant time and rejects requests older than five minutes. Ready-to-paste code for Node.js, PHP and Python is in the webhook signature guide.

Delivery rules

  • Reply with any 2xx status within 10 seconds.
  • A failed delivery is retried 3 times with a growing pause between tries.
  • The dashboard shows the last status, error and time for each endpoint so you can see if your server is refusing events.
  • Endpoints must be public https addresses. Addresses on private networks, localhost or internal names are refused, which protects both sides.
  • A Send test button posts a test event so you can check your handler before going live.

Common uses

  • Show "Receipt delivered" next to a payment in your back office.
  • Ask a customer to correct their email address after a bounce.
  • Stop retrying an OTP by email and fall back to SMS when the address bounced (see email and SMS).
  • Count opens and clicks per campaign tag in your own analytics.

If you prefer to poll, GET /emails/{id} returns the same timeline. Webhooks are included on every plan, including Free.

Questions

Can I have more than one webhook endpoint?
Yes. Add several and choose different events for each.
What if my server is down?
Each event is tried 3 times. After that it is not sent again, but the email's full timeline stays in your logs and in GET /emails/{id}.

Send your first email today

Free plan with 100 emails a month, no card needed. Questions? WhatsApp or call +254 712 504 593, or email [email protected].