Mail: Webhooks
Create webhook
Create a webhook for the given mailbox. The generated secret is returned only in this response and is sent as a bearer token with every delivery.
post/api/mail/v1/mailboxes/{mailboxId}/webhooks
Path parameters
mailboxIdstring required
Example:AC1a2b3c4d5e6f7g
Mailbox resource ID
Request body
Example request
{
"name": "New message notifier",
"description": "Notifies our CRM when a new email arrives",
"events": [
"message.received"
],
"status": "active",
"url": "https://example.com/webhooks/incoming"
}Response
Created response
Example response
{
"id": "019683f8-1234-7abc-8def-0123456789ab",
"mailbox": {
"id": "AC1a2b3c4d5e6f7g",
"address": "user@example.com"
},
"name": "New message notifier",
"description": "Notifies our CRM when a new email arrives",
"events": [
"message.received"
],
"status": "active",
"url": "https://example.com/webhooks/incoming",
"secret": "4a6f8b2d1e9c3f7a0b5d8e2c4f1a7b3d9e6c2f8a1b4d7e0c3f6a9b2d5e8c1f4",
"created_at": "2026-07-23T12:00:00Z",
"updated_at": "2026-07-23T12:00:00Z"
}