Explore documentation

List all existing escalation policy groups

Returns a list of all your escalation policy groups. This endpoint supports pagination.

GET https://uptime.betterstack.com/api/v2/policy-groups

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "95251342",
      "type": "policy_group",
      "attributes": {
        "name": "Example",
        "sort_index": null,
        "created_at": "2020-10-03T20:20:43.547Z",
        "updated_at": "2020-10-03T20:20:43.547Z",
        "team_name": "Test team"
      }
    }
  ],
  "pagination": {
    "first": "https://uptime.betterstack.com/api/v2/policy-groups?page=1",
    "last": "https://uptime.betterstack.com/api/v2/policy-groups?page=1",
    "prev": null,
    "next": null
  }
}

Example cURL

Example
curl --request GET \
  --url https://uptime.betterstack.com/api/v2/policy-groups \
  --header "Authorization: Bearer $TOKEN"