Webhook map
messagesreceived(messages.received)
HTTP handler setup
app/api/webhook/route.ts
Events
Messages
Received
messages.received
A new email was received in the mailbox
Payload
| Name | Type | Required | Description |
|---|---|---|---|
messageId | string | No | — |
folderId | string | No | — |
subject | string | No | — |
summary | string | No | — |
html | string | No | — |
fromAddress | string | No | — |
toAddress | string | No | — |
ccAddress | string | No | — |
sender | string | No | — |
sentDateInGMT | string | No | — |
receivedTime | string | No | — |
size | string | number | No | — |
Response data full type
Response data full type
webhookHooks example