The Resend plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see Overview for setup context and the exact URL shape).Documentation Index
Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
Use this file to discover all available pages before exploring further.
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
| Name | Type | Required | Description |
|---|---|---|---|
type | domain.created | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | domain.updated | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | email.bounced | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | email.clicked | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | email.complained | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | email.delivered | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | email.failed | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | email.opened | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | email.received | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
type | email.sent | Yes | — |
created_at | string | Yes | — |
data | object | Yes | — |
data full type
data full type
Response data full type
Response data full type
webhookHooks example