List status page sections

List a status page's sections, oldest first.

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

The ID of the status page the status page section belongs to.

page integer

Page to return, starting at 1.

per_page integer default: 50

Results per page. Maximum 250.

team_id string

Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.

Authorization string required

Bearer $TOKEN

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

Returns the list of status page sections.

200 OK
{
  "data": [
    {
      "id": "123456789",
      "type": "status_page_section",
      "attributes": {
        "name": "Current status by service",
        "position": 0,
        "status_page_id": 123
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v2/status-pages/123/sections?page=1",
    "last": "https://incidents.betterstack.com/api/v2/status-pages/123/sections?page=1",
    "prev": null,
    "next": null,
    "total_count": 1
  }
}
401

The API token is missing or invalid.

401 Unauthorized
{
  "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

Your role doesn't include View the status page structure on Status pages, or the token can't be used for this API.

404

The status page doesn't exist, or the token can't access it.

id string

The ID of the status page section.

type string

Always status_page_section.

name string or null

Section name.

position integer

Display order on the page, counting from 0. A position past the end lands last. Moving a section shifts only the sections between its old and new place.

status_page_id integer

The ID of the status page the section is on.

pagination.first string

The URL of the first page of results.

pagination.last string

The URL of the last page of results.

pagination.prev string or null

The URL of the previous page, or null on the first page.

pagination.next string or null

The URL of the next page, or null on the last page.

pagination.total_count integer

How many results the whole list holds, across every page.

Example cURL

List status page sections
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/status-pages/123/sections \
  --header "Authorization: Bearer $TOKEN"