Webhooks and events
Standard Webhooks signatures, event types, retries, and replay.
Early access
Payload shape: { id, type, created_at, data }. Signed with HMAC-SHA256 using the Standard Webhooks headers: webhook-id, webhook-timestamp, webhook-signature.
import { Mailroom } from 'mailroom';
Mailroom.webhooks.verify(rawBody, headers, process.env.WEBHOOK_SECRET!);Event types
Email: email.sent, email.delivered, email.delivery_delayed, email.bounced, email.complained, email.opened, email.clicked, email.failed, email.suppressed
Inbox: inbound.received
Approvals: approval.requested, approval.approved, approval.rejected, approval.expired
Domain / agent: domain.verified, domain.failed, agent.paused
Delivery
- At-least-once, retries with backoff for 24h
- Auto-disable after 5 days of failure; email the owner
- Replay from the dashboard or
POST /webhooks/deliveries/{id}/replay - Endpoint URLs are SSRF-checked (no private/metadata IPs, no redirects to them)
SSE
GET /inboxes/{id}/stream is a server-sent event stream of inbound.received for a single inbox. Use webhooks for durable delivery; use SSE for an interactive agent loop.