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

  • events
    • alias (events.alias)
    • batch (events.batch)
    • delete (events.delete)
    • group (events.group)
    • identify (events.identify)
    • page (events.page)
    • screen (events.screen)
    • track (events.track)

HTTP handler setup

app/api/webhook/route.ts

Events

Events

Alias

events.alias A source received an alias call: two ids of one user were merged. Payload
webhookHooks example

Batch

events.batch A batched delivery from the Webhooks destination: several events in one request, taken only when the signature covers the whole body. Payload: object[]
webhookHooks example

Delete

events.delete Segment forwarded a user deletion request (a regulation) to the destination. Payload
webhookHooks example

Group

events.group A source received a group call: a user was tied to a group (a company or account). Payload
webhookHooks example

Identify

events.identify A source received an identify call: a user and the traits recorded about them. Payload
webhookHooks example

Page

events.page A source received a page call: a user viewed a web page. Payload
webhookHooks example

Screen

events.screen A source received a screen call: a user viewed a screen of a mobile app. Payload
webhookHooks example

Track

events.track A source received a track call: an action a user performed, with its properties. Payload
webhookHooks example