Available events
Event payloads
All receiving events follow the same envelope structure. Thetype field identifies the event, and the data field contains the event-specific payload.
message.received
Emitted when a new email is received and processed.message.security.flagged
Emitted when a received message fails one or more security checks (SPF, DKIM, or spam). The message is stored and the thread is marked as spam. Virus-infected emails are rejected at the gateway and never reach this stage.message.agent.triggered
Emitted when a message arrives at an inbox that has an AI agent assigned. This event is sent in addition to themessage.received event.
message.sent
Emitted when a message is sent from an inbox (via send, reply, or forward).Subscribe to receiving events
Add receiving events to your webhook configuration the same way you add sending events. You can subscribe through the dashboard or the SDK.Handle receiving events
Use the same signature verification flow as sending events. See handle webhook events for the full implementation pattern. Here is a condensed example handling receiving events:Learn more
Set up webhooks
Create and configure webhook endpoints
Handle webhook events
Implement signature verification and event handling
AI agent inboxes
Build automated processing with AI agents
Receiving overview
Understand the receiving pipeline
