List existing sections of a status page

Returns a list of the sections of your status page.

GET https://betteruptime.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://betteruptime.com/api/v2/status-pages/123456789/sections?page=1",
    "last": "https://betteruptime.com/api/v2/status-pages/123456789/sections?page=1",
    "prev": null,
    "next": null
  }
}

Example cURL

curl --request GET \
  --url https://betteruptime.com/api/v2/status-pages/123456789/sections \
  --header 'Authorization: Bearer YOUR_API_TOKEN'
Copied!