Webhook map
domainscreated(domains.created)updated(domains.updated)
emailsbounced(emails.bounced)clicked(emails.clicked)complained(emails.complained)delivered(emails.delivered)failed(emails.failed)opened(emails.opened)received(emails.received)sent(emails.sent)
HTTP handler setup
app/api/webhook/route.ts
Events
Domains
Created
domains.created
A new sending domain was created
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Updated
domains.updated
A sending domain was updated
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Emails
Bounced
emails.bounced
An email bounced and was not delivered
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Clicked
emails.clicked
A recipient clicked a link in an email
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Complained
emails.complained
A recipient marked an email as spam
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Delivered
emails.delivered
An email was delivered to the recipient
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Failed
emails.failed
An email failed to send
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Opened
emails.opened
A recipient opened an email
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Received
emails.received
An inbound email was received
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Sent
emails.sent
An email was accepted and sent
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example