Webhook first
Receive a small signed payload with sender, recipients, subject, timestamp, message id, and attachment metadata. Fetch full content only when your app needs it.
{
"type": "email.received",
"emailId": "rx_0f83...",
"messageId": "<[email protected]>",
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Re: Invoice",
"receivedFor": ["[email protected]"],
"receivedAt": "2026-07-03T18:04:14.000Z",
"attachments": [
{ "id": "att_123", "filename": "invoice.pdf", "contentType": "application/pdf", "size": 48213 }
],
"accountId": "..."
}