List escalation policy groups

List escalation policy groups, sorted by position, then by creation time. Groups without a position come last.

GET https://incidents.betterstack.com/api/v3/escalation-policy-groups

Query parameters

page
integer
per_page
DEFAULT 50 integer
team_id
string

Headers

Authorization
required string

Results are paginated

Use pagination.next and pagination.prev to move through pages or jump to a specific one using page and per_page. See Pagination.

200

Response body

{
  "data": [
    {
      "id": "123456789",
      "type": "escalation_policy_group",
      "attributes": {
        "name": "Example",
        "sort_index": 0,
        "created_at": "2024-07-26T15:07:46.350Z",
        "updated_at": "2024-07-26T15:07:46.350Z",
        "team_id": "t123",
        "team_name": "Test team"
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v3/escalation-policy-groups?page=1",
    "last": "https://incidents.betterstack.com/api/v3/escalation-policy-groups?page=1",
    "prev": null,
    "next": null,
    "total_count": 1
  }
}
401

Response body

{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
403

Response attributes

id
string
type
string
name
string
sort_index
integer or null
created_at
datetime
updated_at
datetime
team_id
string
team_name
string
pagination.first
string
pagination.last
string
pagination.prev
string or null
pagination.next
string or null
pagination.total_count
integer

Example cURL

List escalation policy groups
curl --request GET \
  --url https://incidents.betterstack.com/api/v3/escalation-policy-groups \
  --header "Authorization: Bearer $TOKEN"