Skip to main content
View as Markdown

Webhook Reliability

Register an account-level HTTPS destination with POST /v1/webhooks. Signing, retries, dead-letter recovery and replay are standard on every plan. Automatic dispatch covers message.sent, message.received, message.delivered, message.opened, message.clicked, message.bounced and message.complained. Engagement events require enabled, authenticated provider callbacks. See Webhooks for exact payloads and signatures.

Receiver checklist​

  • Verify X-Mailbot-Signature against the raw body using HMAC-SHA256 and a constant-time comparison.
  • Store the event durably before returning a 2xx response. The sender times out after 30 seconds.
  • Process slower work asynchronously and retry it in your own worker.
  • Deduplicate by event_id; commit business changes and processing state together.
  • Filter data.inbox_id if the receiver only handles one inbox.
  • Keep sensitive message content out of routine logs.

Attempts and recovery​

Every plan gets up to seven total attempts, with retry delays of 1, 2, 4, 8, 16, and 32 seconds. A 2xx response succeeds. The sender follows at most one validated redirect; configure the final HTTPS URL directly. Jobs queued before this contract retain their original retry settings.

After the final failure, a dead-letter entry is available for recovery on every plan. See Replay troubleshooting. Delivery is not guaranteed after retries are exhausted.

Inspect delivery records​

Use GET /v1/webhooks/{id}/deliveries for individual attempts and GET /v1/webhooks/{id}/deliveries/stats for delivery statistics. Match delivery IDs with your receiver logs.

SymptomCheck
Signature mismatchUse the saved webhook secret and raw request body bytes
TimeoutPersist to a queue and acknowledge before doing slow work
Duplicate effectsDeduplicate event IDs and make processing transactional
No open or click callbackCheck subscription event types, tracking and authenticated provider callback configuration
No retriesInspect queue/worker health and whether the job was queued before standard reliability
2xx but no business resultInspect your receiver's queued work and processing failures

Use POST /v1/webhooks/{id}/test for a test notification to your configured receiver. A passing test verifies that request; it does not prove every event type is dispatched.