Create a webhook for an email domain
Changed onCreates 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.
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/email_domains/{domain_id}/webhooks
- Auth: HTTP bearer
Path parameters
Email domain UUID
Request body
Response
Email webhook created
Example response
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174003",
"record_type": "email_webhook",
"url": "https://example.com/webhooks/email",
"events": [
"email.sent",
"email.delivered",
"email.bounced"
],
"domain_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-06-18T12:00:00Z",
"updated_at": "2026-06-18T12:00:00Z"
}
}Changes
- warning
added the new
40901enum value to the//response property for the response status - warning
added the new
40901enum value to the//response property for the response status - warning
added the new
40901enum value to the//response property for the response status - warning
added the new
email.cancelledenum value to the//response property for the response status - warning
added the new
email.daily_limit_exceededenum value to the//response property for the response status - warning
added the new
email_domain.dkim_rotatedenum value to the//response property for the response status - info
added the new
email.cancelledenum value to the request property/ - info
added the new
email.daily_limit_exceededenum value to the request property/ - info
added the new
email_domain.dkim_rotatedenum value to the request property/
- warning
- info
endpoint added
- info