The Amplitude 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
annotationscreated(annotations.created)updated(annotations.updated)
cohortscomputed(cohorts.computed)
eventsidentify(events.identify)track(events.track)
experimentsexposure(experiments.exposure)
monitorsalert(monitors.alert)
HTTP handler setup
app/api/webhook/route.ts
Events
Annotations
Created
annotations.created
A new chart annotation was created
Payload
| Name | Type | Required | Description |
|---|---|---|---|
type | annotation.created | Yes | — |
annotation_id | number | Yes | — |
date | string | Yes | — |
label | string | Yes | — |
details | string | No | — |
app_id | number | No | — |
source | string | No | — |
created_at | string | Yes | — |
Response data full type
Response data full type
webhookHooks example
Updated
annotations.updated
A chart annotation was updated
Payload
| Name | Type | Required | Description |
|---|---|---|---|
type | annotation.updated | Yes | — |
annotation_id | number | Yes | — |
date | string | Yes | — |
label | string | Yes | — |
details | string | No | — |
app_id | number | No | — |
source | string | No | — |
updated_at | string | Yes | — |
Response data full type
Response data full type
webhookHooks example
Cohorts
Computed
cohorts.computed
A cohort finished computing
Payload
| Name | Type | Required | Description |
|---|---|---|---|
type | cohort.computed | Yes | — |
cohort_id | string | Yes | — |
cohort_name | string | Yes | — |
app_id | number | No | — |
size | number | Yes | — |
computed_at | string | Yes | — |
published | boolean | No | — |
Response data full type
Response data full type
webhookHooks example
Events
Identify
events.identify
A user identify call was received by Amplitude
Payload
| Name | Type | Required | Description |
|---|---|---|---|
type | event.identify | Yes | — |
user_id | string | No | — |
device_id | string | No | — |
time | number | Yes | — |
user_properties | object | No | — |
app_version | string | No | — |
platform | string | No | — |
insert_id | string | No | — |
user_properties full type
user_properties full type
Response data full type
Response data full type
webhookHooks example
Track
events.track
An event was tracked by Amplitude
Payload
| Name | Type | Required | Description |
|---|---|---|---|
type | event.track | Yes | — |
event_id | string | Yes | — |
event_type | string | Yes | — |
user_id | string | No | — |
device_id | string | No | — |
time | number | Yes | — |
event_properties | object | No | — |
user_properties | object | No | — |
app_version | string | No | — |
platform | string | No | — |
session_id | number | No | — |
insert_id | string | No | — |
event_properties full type
event_properties full type
user_properties full type
user_properties full type
Response data full type
Response data full type
webhookHooks example
Experiments
Exposure
experiments.exposure
An experiment exposure was tracked for a user
Payload
| Name | Type | Required | Description |
|---|---|---|---|
type | experiment.exposure | Yes | — |
flag_key | string | Yes | — |
variant | string | Yes | — |
user | object | Yes | — |
time | number | Yes | — |
experiment_key | string | No | — |
metadata | object | No | — |
user full type
user full type
metadata full type
metadata full type
Response data full type
Response data full type
webhookHooks example
Monitors
Alert
monitors.alert
An alert monitor threshold was triggered
Payload
| Name | Type | Required | Description |
|---|---|---|---|
type | monitor.alert | Yes | — |
monitor_id | string | Yes | — |
monitor_name | string | Yes | — |
alert_type | string | Yes | — |
condition | string | No | — |
value | number | No | — |
threshold | number | No | — |
triggered_at | string | Yes | — |
chart_id | string | No | — |
dashboard_id | number | No | — |
recipients | string[] | No | — |
Response data full type
Response data full type
webhookHooks example