Email Webhooks
Create a webhook for an email domain
Creates a webhook endpoint subscribed to a specific allowlist of event types. Both email.* events (published by email-api) and email_domain.* events (published by this service) flow through the same webhooks.
post/email_domains/{domain_id}/webhooks
Path parameters
domain_idstring uuid required
Email domain UUID
Request body
Response
Email webhook created
Example response
{
"data": {
"created_at": "2026-06-18T12:00:00Z",
"domain_id": "123e4567-e89b-12d3-a456-426614174000",
"events": [
"email.sent",
"email.delivered",
"email.bounced"
],
"id": "123e4567-e89b-12d3-a456-426614174003",
"record_type": "email_webhook",
"updated_at": "2026-06-18T12:00:00Z",
"url": "https://example.com/webhooks/email"
}
}