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
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Profile
Profile
profile
Fired when a subscriber updates their profile.
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Subscribe
Subscribe
subscribe
Fired when a subscriber joins a list.
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Unsubscribe
Unsubscribe
unsubscribe
Fired when a subscriber leaves a list.
Payload
data full type
data full type
Response data full type
Response data full type
webhookHooks example