Skip to main content
The Sender 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).
New to Corsair? See webhooks and hooks.

Webhook map

  • bounces
    • created (bounces.created)
  • campaigns
    • created (campaigns.created)
  • groups
    • created (groups.created)
    • subscriberAdded (groups.subscriberAdded)
    • subscriberUnsubscribed (groups.subscriberUnsubscribed)
  • subscribers
    • created (subscribers.created)
    • unsubscribed (subscribers.unsubscribed)
    • updated (subscribers.updated)

HTTP handler setup

app/api/webhook/route.ts

Events

Bounces

Created

bounces.created A campaign or transactional email bounced (bounces/new), with the SMTP response. Payload
webhookHooks example

Campaigns

Created

campaigns.created A campaign was created (campaigns/new). Payload
webhookHooks example

Groups

Created

groups.created A group was created (groups/new). Payload
webhookHooks example

Subscriber Added

groups.subscriberAdded A subscriber joined the group the webhook watches (groups/new-subscriber). Payload
webhookHooks example

Subscriber Unsubscribed

groups.subscriberUnsubscribed A subscriber left the group the webhook watches (groups/unsubscribed). Payload
webhookHooks example

Subscribers

Created

subscribers.created A subscriber was added (subscribers/new). Payload
webhookHooks example

Unsubscribed

subscribers.unsubscribed A subscriber unsubscribed (subscribers/unsubscribed). Payload
webhookHooks example

Updated

subscribers.updated A subscriber was changed (subscribers/updated). Payload
webhookHooks example