Skip to main content
The Mailchimp 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

  • campaign (campaign)
  • profile (profile)
  • subscribe (subscribe)
  • unsubscribe (unsubscribe)

HTTP handler setup

app/api/webhook/route.ts

Events

Campaign

Campaign

campaign Fired when a campaign is sent. Payload
webhookHooks example

Profile

Profile

profile Fired when a subscriber updates their profile. Payload
webhookHooks example

Subscribe

Subscribe

subscribe Fired when a subscriber joins a list. Payload
webhookHooks example

Unsubscribe

Unsubscribe

unsubscribe Fired when a subscriber leaves a list. Payload
webhookHooks example