Skip to main content
POST /v1/create-alert
Creates an alert. source_scope selects the data: observability, simulation, or all.
  • For observability, threshold_time_interval is a window in seconds. The default is 600. min_events defaults to 10.
  • For simulation, threshold_time_interval is the number of recent completed runs. The default is 1. min_events is not used.
  • sample_size evaluates the last N conversations instead of a time window. The minimum is 30. The alert does not fire with fewer than N conversations.
Each entry in notification_channels has a type and a target. The target depends on the type:
  • email: the email address
  • slack: the Slack channel ID
  • webhook: the webhook URL
  • pagerduty: the PagerDuty routing key
  • betterstack: Bluejay ignores target and uses the connected API token
To connect each channel, see Alerts.

Headers

Request body

Response

Status codes

Example request

Example response

200
Last modified on October 21, 2026