List policies in a group

Returns escalation policies belonging to the given policy group. This endpoint supports pagination.

GET https://uptime.betterstack.com/api/v3/policy-groups/{policy_group_id}/policies

URL parameters

policy_group_id
required string

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "456",
      "type": "policy",
      "attributes": {
        "name": "Policy A",
        "repeat_count": 5,
        "repeat_delay": 0,
        "incident_token": "8nEiLj2gfqjfQRK6vzkFuGC25",
        "policy_group_id": 123,
        "team_name": "Test team",
        "steps": [
          {
            "type": "escalation",
            "wait_before": 0,
            "urgency_id": 12345,
            "step_members": [
              {
                "type": "all_slack_integrations"
              },
              {
                "type": "current_on_call"
              }
            ]
          }
        ]
      }
    }
  ],
  "pagination": {
    "first": "https://uptime.betterstack.com/api/v3/policy-groups/123/policies?page=1",
    "last": "https://uptime.betterstack.com/api/v3/policy-groups/123/policies?page=1",
    "prev": null,
    "next": null
  }
}

Example cURL

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