Explore documentation

List existing sections of a status page

Returns a list of the sections of your status page. This endpoint supports pagination.

GET https://uptime.betterstack.com/api/v2/status-pages/{status_page_id}/sections

URL parameters

status_page_id
required string

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "12345",
      "type": "status_page_section",
      "attributes": {
        "name": "Current status by service",
        "position": 0
      }
    },
    {
      "id": "12345",
      "type": "status_page_section",
      "attributes": {
        "name": "EU datacenter",
        "position": 1
      }
    }
  ],
  "pagination": {
    "first": "https://uptime.betterstack.com/api/v2/status-pages/123456789/sections?page=1",
    "last": "https://uptime.betterstack.com/api/v2/status-pages/123456789/sections?page=1",
    "prev": null,
    "next": null
  }
}

Example cURL

Example
curl --request GET \
  --url https://uptime.betterstack.com/api/v2/status-pages/123456789/sections \
  --header "Authorization: Bearer $TOKEN"