Alerts
POST /v1/create-alert
Create an alert.
POST /v1/create-alert
Creates an alert.
source_scope selects the data: observability, simulation, or all.
- For
observability,threshold_time_intervalis a window in seconds. The default is 600.min_eventsdefaults to 10. - For
simulation,threshold_time_intervalis the number of recent completed runs. The default is 1.min_eventsis not used. sample_sizeevaluates the last N conversations instead of a time window. The minimum is 30. The alert does not fire with fewer than N conversations.
notification_channels has a type and a target. The target depends on the type:
email: the email addressslack: the Slack channel IDwebhook: the webhook URLpagerduty: the PagerDuty routing keybetterstack: Bluejay ignorestargetand uses the connected API token
Headers
Request body
Response
Status codes
Example request
Example response
200
Last modified on October 21, 2026