send(), you get back a
message id and status: queued immediately — but the outcomes that matter
(delivery confirmation, bounces, opt-outs) happen seconds or minutes later inside
the provider. Webhooks let SenderKit push those outcomes to your backend the moment
they arrive, rather than making you poll.
Events
Webhooks fire only for asynchronous outcomes you can’t predict from the API response. Internal pipeline states (queued, rendered) are not emitted.
| Event | When it fires |
|---|---|
message.sent | The message was handed off to the email/SMS/push provider |
message.delivered | The provider confirmed delivery to the recipient |
message.failed | The message bounced, errored, or exhausted retries |
message.opted_out | The recipient unsubscribed or marked the message as spam |
Setting up an endpoint
- Open Webhooks from the sidebar in your dashboard (
/app/webhooks). - Click Add endpoint and paste your HTTPS URL.
- Copy the signing secret shown after creation — it is displayed only once and cannot be retrieved later.
- Choose which events to subscribe to (or leave all selected to receive everything).
- Click Send test event to confirm your endpoint receives and verifies the payload correctly before going live.
Webhooks deliver to live mode endpoints only. In test mode, delivery is
simulated in-process — no real HTTP requests are made to your endpoint.
Payload
Every event is aPOST with Content-Type: application/json. The body follows a
consistent envelope:
data object is a public projection of the message — it omits rendered HTML,
template variables, and internal provider message IDs.
Verifying signatures
Every webhook request carries three headers:| Header | Value |
|---|---|
X-SenderKit-Event | The event type, e.g. message.delivered |
X-SenderKit-Delivery | Unique delivery ID, e.g. whd_01HZ… |
X-SenderKit-Signature | HMAC-SHA256 signature for replay protection |
HMAC-SHA256(key=<signing-secret>, data="<timestamp>.<raw-body>")
and compare with the v1 value. Reject the event if the signature doesn’t match or
if the timestamp is more than 5 minutes old.
Verification example (Node.js)
Express example
Retries and delivery logs
SenderKit retries failed deliveries automatically on any non-2xx response or
network error. Each endpoint retries independently — a slow or unavailable endpoint
does not block delivery to your other endpoints.
You can inspect delivery history in the Webhooks dashboard. Each endpoint shows
recent attempts, HTTP status codes, response times, and whether retries are pending.
Messages
The message lifecycle and the statuses that trigger webhook events.
Sending
How sends are dispatched and when async outcomes resolve.