# List all alerts

Returns a paginated list of all alerts accessible by the user, across all dashboards and explorations.

[endpoint]
base_url = "https://telemetry.betterstack.com"
path = "/api/v2/alerts"
method = "GET"

[[query_param]]
name = "page"
description = "Page number for pagination."
required = false
type = "integer"

[[query_param]]
name = "per_page"
description = "Number of items per page (max 250)."
required = false
type = "integer"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = "A paginated list of all alerts."
body = '''
{
  "data": [
    {
      "id": "789",
      "type": "alert",
      "attributes": {
        "dashboard_id": 123,
        "chart_id": 456,
        "name": "High Error Rate Alert",
        "alert_type": "threshold",
        "operator": "higher_than",
        "value": 100.0,
        "paused": false,
        "created_at": "2026-02-20T10:00:00Z",
        "updated_at": "2026-02-23T14:30:00Z"
      }
    },
    {
      "id": "790",
      "type": "alert",
      "attributes": {
        "exploration_id": 789,
        "name": "Anomalous CPU Usage",
        "alert_type": "anomaly_rrcf",
        "paused": false,
        "created_at": "2026-02-21T11:00:00Z",
        "updated_at": "2026-02-22T15:30:00Z"
      }
    }
  ],
  "pagination": {
    "first": "https://telemetry.betterstack.com/api/v2/alerts?page=1&per_page=2",
    "last": "https://telemetry.betterstack.com/api/v2/alerts?page=5&per_page=2",
    "prev": null,
    "next": "https://telemetry.betterstack.com/api/v2/alerts?page=2&per_page=2"
  }
}
'''
[/responses]

## Example request

```shell
[label cURL]
curl --request GET \
     --url "https://telemetry.betterstack.com/api/v2/alerts" \
     --header "Authorization: Bearer $TOKEN"
```

## Alert context

Each alert in the response includes context attributes to identify its source:
- `dashboard_id` and `chart_id` for alerts on a dashboard chart.
- `exploration_id` for alerts on an exploration.

[info]
The shape of the `attributes` object varies depending on the `alert_type`. For example, `anomaly_rrcf` alerts will include `anomaly_sensitivity` and `anomaly_trigger` instead of `operator` and `value`.
[/info]
