Each team starts with 10 webhooks. See Team
limits.
Webhooks or realtime events
Use webhooks when your backend should receive signed event POSTs, even while your app is offline. Use the Mailbox API event stream when a mailbox client can keep a live Server-Sent Events connection open and needs immediate received-message updates.Create a webhook
Process events
Every delivery includes a JSON body and headers that identify the event.| Header | Use |
|---|---|
X-Sendmux-Signature | Verify the payload with the webhook secret. |
X-Sendmux-Event-Id | Dedupe retries for the same event. |
X-Sendmux-Event-Type | Route the event in your application. |
X-Sendmux-Delivery-Attempt | Track retry attempts. |
Event types
| Event type | When it fires |
|---|---|
message.delivered | A recipient system accepted the message. |
message.bounced | A message bounced. |
message.complained | A recipient marked a message as spam. |
message.rejected | The sending system rejected the message before delivery. |
message.delivery_delayed | Delivery is delayed and still being retried. |
message.received | A mailbox received an inbound message. |
message.received.spam | A mailbox received an inbound message classified as spam. |
sendmux.test | A synthetic event for testing a webhook. |
Retries
Your endpoint should return2xx quickly. Non-2xx responses and timeouts are retried across a 24-hour window.
After the final failed attempt, Sendmux marks the webhook as failing and emails the team owner. Fix the endpoint, then disable and re-enable the webhook to resume delivery.
Review deliveries
Open a webhook to review recent attempts, response status, latency, retry state, and retained payload availability. Delivery metadata and retained payloads are kept for 7 days. Use Rotate secret if a signing secret may have leaked. The new secret is shown once and is used for future deliveries. Use Send test to publish asendmux.test event. Add sendmux.test to the webhook event list before testing.
API access
Use the Management API when you need to create webhooks, list attempts, fetch retained payloads, rotate secrets, or send test events from your own tooling.Management API
Open the generated Webhooks endpoint reference.
Related guides
Verify signatures
Check webhook payloads before processing events.
Webhook replay
See the coming-soon replay action.
Mailboxes
Receive inbound mailbox events.
Mailbox API events
Stream live mailbox events with a mailbox key.
Delivery logs
Compare webhook events with delivery logs.