Get an alert

Get an alert's settings, such as its conditions and who it notifies.

GET https://telemetry.betterstack.com/api/v3/alerts/{id}
id string required

The ID of the alert to get.

team_id string

Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.

Authorization string required

Bearer $TOKEN

200

Returns the alert.

200 OK
{
  "data": {
    "id": "123456789",
    "type": "alert",
    "attributes": {
      "dashboard_id": "123",
      "chart_id": "456",
      "exploration_id": null,
      "name": "High Error Rate",
      "alert_type": "threshold",
      "operator": "higher_than",
      "value": 100.0,
      "string_value": null,
      "paused": true,
      "paused_reason": "Manually paused",
      "query_period": 600,
      "confirmation_period": 120,
      "recovery_period": 60,
      "aggregation_interval": 300,
      "check_period": 300,
      "series_names": [
        "error"
      ],
      "series_names_except": [],
      "source_variable": "source:t123456_my_app",
      "source_mode": "source_variable",
      "source_platforms": [
        "kubernetes"
      ],
      "escalation_target": {
        "policy_id": "456",
        "policy_name": "Critical Policy"
      },
      "incident_cause": "Error rate exceeded {{current_value}}",
      "incident_name": "High error rate on Checkout API",
      "incident_per_series": false,
      "additional_conditions": [
        {
          "alert_type": "relative",
          "operator": "increases_by",
          "value": 10
        }
      ],
      "variable_values": [
        {
          "name": "environment",
          "selected_label": "production",
          "values": [
            "production"
          ]
        }
      ],
      "on_missing_data": "dont_fire",
      "shown_interval": null,
      "created_at": "2026-03-25T10:00:00.000Z",
      "updated_at": "2026-03-25T10:00:00.000Z",
      "metadata": {
        "runbook": [
          "https://wiki.example.com/runbook"
        ],
        "env": [
          "production"
        ]
      },
      "team_id": "t123"
    }
  }
}
401

The API token is missing or invalid.

401 Unauthorized
{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}
403

Your role doesn't include View on Dashboards, or the token can't be used for this API.

404

The alert doesn't exist, or the token can't access it.

404 Not Found
{
  "errors": "Resource with the provided ID was not found"
}
id string

The ID of the alert.

type string

Always alert.

dashboard_id string or null

Dashboard of the chart this alert watches. null for an alert on an exploration.

chart_id string or null

Chart this alert watches, on the dashboard in dashboard_id. null for an alert on an exploration.

exploration_id string or null

Exploration this alert watches. null for an alert on a dashboard chart.

name string

Alert name. Until you rename the alert, its name follows the chart's name.

alert_type string

Alert type. An update can change it.
Valid values:
threshold: Fires when the value crosses a threshold.
relative: Compares the value with the previous period as a percentage change.
anomaly_rrcf: Uses machine learning anomaly detection. Table charts don't accept it.

operator string

How the value is compared. Required for threshold and relative alerts. anomaly_rrcf alerts don't use it, and it's left out of their responses.
Valid values:
equal: A threshold alert fires when the value equals value or string_value.
not_equal: A threshold alert fires when the value differs from value or string_value.
higher_than: A threshold alert fires when the value is above value.
higher_than_or_equal: A threshold alert fires when the value is at or above value.
lower_than: A threshold alert fires when the value is below value.
lower_than_or_equal: A threshold alert fires when the value is at or below value.
increases_by: A relative alert fires when the value rises by value percent or more.
decreases_by: A relative alert fires when the value falls by value percent or more.
changes_by: A relative alert fires when the value rises or falls by value percent or more.

value number or null

The threshold for threshold alerts, or the percentage change for relative alerts. 0 is a valid value. null when the alert compares string_value. Creating a threshold or relative alert needs value or string_value. Left out for anomaly_rrcf alerts.

string_value string or null

The exact text a threshold alert compares, instead of value, with equal or not_equal only. When it's set, value isn't needed and is null. Returned for threshold alerts only.

paused boolean

Whether the alert is paused.

paused_reason string or null

Why the alert is paused. Manually paused for an alert paused by hand, or a sentence that says why Better Stack paused it. null when the alert isn't paused.

query_period integer or null

The time window of data each check looks at, in seconds.

confirmation_period integer

How long the condition must hold before an incident starts, in seconds, from 0 to 86400. 0 starts it at once.

recovery_period integer or null

Seconds the value must stay recovered before the incident resolves on its own, or null to never resolve it automatically.

aggregation_interval integer or null

The size of the buckets the data is aggregated into before each bucket is evaluated, in seconds.

check_period integer or null

How often the alert is checked, in seconds. Not returned for anomaly_rrcf alerts. An update that sends check_period without query_period or aggregation_interval sets both of them to the same value.

series_names array of strings

The series the alert is limited to. An empty list means every series. Can't be combined with series_names_except.

series_names_except array of strings

The series the alert ignores while it watches every other series. Can't be combined with series_names, so it's empty when series_names is used.

source_variable string or null

The sources the alert runs on, as source: followed by comma-separated source table names or <source_id>:<type> entries, such as source:1729445:exceptions, or null when none is set. With the source_variable and platforms_single_source modes, the value must start with source:.

source_mode string

How the alert picks its sources.
Valid values:
source_variable: Runs on the sources in source_variable.
platforms_single_source: Runs on the one source in source_variable, limited to source_platforms.
platforms_all_sources: Runs on every source that matches source_platforms.

source_platforms array of strings

Platforms that limit the sources and services the alert runs on, for the platforms_single_source and platforms_all_sources source modes.

escalation_target string or object

Where the incident is routed. Can be the string current_team, which is the default, an object with policy_id and policy_name, or an object with team_id and team_name. The string unknown means the target can't be found or no longer exists. Name a policy by ID, by name or both, and a team by team_id. An empty object routes to the current team too. A request is refused when it names both a policy and a team, names one that doesn't exist, or gives a policy name several policies share without an ID.

escalation_target.policy_id string

Escalation policy ID.

escalation_target.policy_name string

Escalation policy name.

escalation_target.team_id string

Team ID, such as t123.

escalation_target.team_name string

Team name.

incident_cause string or null

A custom description for the incidents the alert starts, in Markdown, or null when none is set. Accepts the same template variables as incident_name, such as {{current_value}} and {{threshold_value}}.

incident_name string or null

A custom name for the incidents the alert starts, in plain text, or null when none is set. Accepts template variables such as {{alert_name}}, {{series_name}}, {{current_value}}, {{threshold_value}}, {{team_name}}, the chart's variables and the columns its query returns.

incident_per_series boolean

Whether each series that breaches the condition starts its own incident, rather than one incident for the whole alert.

additional_conditions array of objects

Up to 4 more conditions on top of the alert's own. A series fires only when it breaches the alert's own condition and every other condition that covers it, in the same time bucket. A condition limited to other series counts as met when any of its own series breaches it. Anomaly detection can't be an additional condition. An empty list removes them all.

additional_conditions[].alert_type string

The type of the condition, threshold or relative.

additional_conditions[].operator string

The comparison the condition makes, from the same values as operator.

additional_conditions[].value number or null

Threshold value. null when the condition compares string_value.

additional_conditions[].string_value string or null

Threshold value for a string series. null when the condition compares value.

additional_conditions[].series_names array of strings

The series the condition is limited to. An empty list means every series.

additional_conditions[].series_names_except array of strings

The series the condition ignores while it watches every other series.

variable_values array of objects

Values this alert sets for the template variables of its dashboard or exploration. Each name must be a variable defined there. Source variables aren't accepted, so use source_mode and source_variable instead.

variable_values[].name string

The name of a variable on the alert's dashboard or exploration.

variable_values[].selected_label string

For a select_predefined_sql variable, the label of the filter the alert uses.

variable_values[].values array of strings

The values the alert uses for the variable, as strings.

on_missing_data string

What a check does when the query returns no data. Can't be sent for anomaly_rrcf alerts, and is left out of their responses. Only when alert_type is threshold or relative.
Valid values:
treat_as_zero: Checks the missing data as if the value were 0.
dont_fire: Starts no incident for missing data.
treat_as_previous: Checks the missing data as if it had the previous value.
start_incident: Starts an incident when the query returns no data.

anomaly_sensitivity number

How far a value must deviate from its prediction to trigger the alert, for anomaly_rrcf alerts only. Shown as Significance in the web app. A higher value needs a larger deviation, so the alert fires less often. Left out for threshold and relative alerts.

anomaly_trigger string

Which direction of anomaly fires the alert, for anomaly_rrcf alerts only. Left out of the response on threshold and relative alerts.
Valid values:
any: Fires on values above or below the prediction.
higher: Fires on values above the prediction.
lower: Fires on values below the prediction.

shown_interval integer or null

Interval in seconds the anomaly chart shows, for anomaly_rrcf alerts only. One of 30, 60, 120, 300, 600, 1800, 3600, 7200, 10800, 21600, 43200 or 86400. Left out of the response on threshold and relative alerts.

anomaly_training_range_days integer

Days of history the anomaly model is first trained on, from 1 to 30. For anomaly_rrcf alerts only. Left out of the response on threshold and relative alerts.

call boolean

Trigger phone-call alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without phone call alerts, unless the alert already has them on. Only when escalation_target.policy_id is null and escalation_target.policy_name is null.

sms boolean

Trigger SMS alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without SMS alerts, unless the alert already has them on. Only when escalation_target.policy_id is null and escalation_target.policy_name is null.

email boolean

Trigger e-mail alerts. Left out of responses when the alert routes to an escalation policy. Only when escalation_target.policy_id is null and escalation_target.policy_name is null.

push boolean

Trigger mobile push alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without push notifications, unless the alert already has them on. Only when escalation_target.policy_id is null and escalation_target.policy_name is null.

critical_alert boolean

Trigger critical push alerts that bypass silent mode. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without critical alerts, unless the alert already has them on. Only when escalation_target.policy_id is null and escalation_target.policy_name is null.

created_at datetime

When the alert was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the alert was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

metadata object or null

Custom incident metadata, where each key you choose holds a list of strings. A single string is accepted too and saved as a one-item list. The metadata is added to the alert's incidents. An update replaces all the metadata.

team_id string

Team that owns the alert's dashboard or exploration, such as t123.

Example cURL

Get an alert
curl --request GET \
  --url https://telemetry.betterstack.com/api/v3/alerts/789 \
  --header "Authorization: Bearer $TOKEN"