Alerts

Create Topline Alert

Changed on
post/console/v1/alerts

Request

  • Base URL
    https://statsigapi.net
  • URL
    https://statsigapi.net/console/v1/alerts
  • Auth
    API key in header STATSIG-API-KEY

Request body

namestring required

Name of the alert (4-100 characters)

messagestring

Alert message shown when the alert fires

teamIDstring

ID of the team that owns this alert

formulastring

Formula expression combining the alert metrics

definitionMetricsJsonstring[]

JSON-encoded metric definitions evaluated by the alert. Each entry is a stringified ToplineAlertMExDefinitionOrUnresolved.

Response

Create Alert success response

messagestring required

A simple string explaining the result of the operation.

Example response

{
  "data": {
    "owner": {
      "ownerID": "user123",
      "ownerType": "USER",
      "ownerName": "John Doe",
      "ownerEmail": "owner123@test.com"
    }
  }
}

Changes