# List status pages in a group

Returns status pages belonging to the given status page group.

[endpoint]
base_url = "https://incidents.betterstack.com"
path = "/api/v2/status-page-groups/{status_page_group_id}/status-pages"
method = "GET"

[[path_param]]
name = "status_page_group_id"
description = "The ID of the status page group you want to get status pages from."
required = true
type = "string"

[[query_param]]
name = "page"
description = "The page number to return, starting with `1`."
required = false
type = "integer"

[[query_param]]
name = "per_page"
description = "Number of results per page. Defaults to `50`, maximum `250`."
required = false
type = "integer"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = '''Returns a paginated list of status pages in the specified group.'''
body = '''{
  "data": [
    {
      "id": "123456789",
      "type": "status_page",
      "attributes": {
        "company_name": "Best company",
        "company_url": "https://best-company.com",
        "contact_url": null,
        "logo_url": null,
        "dark_logo_url": null,
        "logo_remote_url": null,
        "dark_logo_remote_url": null,
        "whitelabeled": false,
        "timezone": "Tokyo",
        "subdomain": "best-company-tokyo",
        "custom_domain": null,
        "custom_css": null,
        "custom_javascript": "",
        "google_analytics_id": null,
        "min_incident_length": 400,
        "announcement": null,
        "announcement_embed_visible": false,
        "announcement_embed_css": "",
        "announcement_embed_link": "",
        "automatic_reports": false,
        "published": true,
        "status_page_group_id": 42,
        "subscribable": false,
        "hide_from_search_engines": false,
        "password_enabled": false,
        "require_sso": false,
        "ip_allowlist": [],
        "history": 90,
        "aggregate_state": "operational",
        "design": "v1",
        "navigation_links": [],
        "theme": "light",
        "layout": "vertical",
        "organization_id": 123456,
        "created_at": "2020-08-10T07:34:38.848Z",
        "updated_at": "2020-12-08T14:12:31.680Z"
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v2/status-page-groups/42/status-pages?page=1",
    "last": "https://incidents.betterstack.com/api/v2/status-page-groups/42/status-pages?page=1",
    "prev": null,
    "next": null
  }
}'''
[/responses]

[params]
title = "Response attributes"

[[param]]
name = "id"
type = "string"
description = "The ID of the status page."

[[param]]
name = "type"
type = "string"
description = "Always `status_page`."

[[param]]
name = "attributes.company_name"
type = "string"
description = "Name of your company, displayed on the status page."

[[param]]
name = "attributes.company_url"
type = "string or null"
description = "URL of your company's website."

[[param]]
name = "attributes.contact_url"
type = "string or null"
description = "URL visitors can use to contact you in an emergency."

[[param]]
name = "attributes.logo_url"
type = "string or null"
description = "URL your company's logo is served from, `null` when there is no logo."

[[param]]
name = "attributes.dark_logo_url"
type = "string or null"
description = "URL the dark version of your logo is served from, `null` when there is none."

[[param]]
name = "attributes.logo_remote_url"
type = "string or null"
description = "URL the logo was downloaded from when it was set through `logo_url`."

[[param]]
name = "attributes.dark_logo_remote_url"
type = "string or null"
description = "URL the dark logo was downloaded from when it was set through `dark_logo_url`."

[[param]]
name = "attributes.whitelabeled"
type = "boolean"
description = "Whether the 'Powered by Better Stack' footer is removed."

[[param]]
name = "attributes.timezone"
type = "string"
description = "Timezone the status page is displayed in, as a Rails time zone name such as `Tokyo`."

[[param]]
name = "attributes.subdomain"
type = "string"
description = "Subdomain of the status page."

[[param]]
name = "attributes.custom_domain"
type = "string or null"
description = "Your own host name the status page is served from, `null` when not set."

[[param]]
name = "attributes.custom_css"
type = "string or null"
description = "Custom CSS applied to the status page."

[[param]]
name = "attributes.custom_javascript"
type = "string or null"
description = "Custom JavaScript added to the status page."

[[param]]
name = "attributes.google_analytics_id"
type = "string or null"
description = "Google Analytics ID that tracks visits to the status page."

[[param]]
name = "attributes.min_incident_length"
type = "integer"
description = "Incidents shorter than this many seconds are hidden from the status page. `0` shows all incidents."

[[param]]
name = "attributes.announcement"
type = "string or null"
description = "Announcement shown on the status page."

[[param]]
name = "attributes.announcement_embed_visible"
type = "boolean"
description = "Whether the announcement shows in the announcement embed."

[[param]]
name = "attributes.announcement_embed_css"
type = "string or null"
description = "Custom CSS for the announcement embed."

[[param]]
name = "attributes.announcement_embed_link"
type = "string or null"
description = "URL the announcement embed links to. When empty, it links to the status page."

[[param]]
name = "attributes.automatic_reports"
type = "boolean"
description = "Whether status page updates are created automatically for new incidents."

[[param]]
name = "attributes.published"
type = "boolean"
description = "Whether the status page is published and accessible."

[[param]]
name = "attributes.status_page_group_id"
type = "integer or null"
description = "ID of the status page group the page belongs to, `null` when it's in none."

[[param]]
name = "attributes.subscribable"
type = "boolean"
description = "Whether visitors can subscribe to updates of the status page."

[[param]]
name = "attributes.hide_from_search_engines"
type = "boolean"
description = "Whether the status page is hidden from search engines."

[[param]]
name = "attributes.password_enabled"
type = "boolean"
description = "Whether the status page is password protected."

[[param]]
name = "attributes.require_sso"
type = "boolean"
description = "Whether visitors must sign in with SSO to see the status page."

[[param]]
name = "attributes.ip_allowlist"
type = "array of strings"
description = "IP addresses and CIDR ranges allowed to view the status page, including comment entries starting with `#`. Empty when anyone can view it."

[[param]]
name = "attributes.history"
type = "integer"
description = "Number of days of history displayed on the status page, between `7` and `365`."

[[param]]
name = "attributes.aggregate_state"
type = "string"
description = "Overall state of the page's resources: `operational`, `degraded`, `downtime` or `maintenance`."

[[param]]
name = "attributes.design"
type = "string"
description = "Status page design: `v1` for classic or `v2` for modern."

[[param]]
name = "attributes.navigation_links"
type = "array of objects"
description = "Navigation links shown on the status page with the `v2` design."

[[param]]
name = "attributes.navigation_links[].text"
type = "string"
description = "Label of the navigation link."

[[param]]
name = "attributes.navigation_links[].href"
type = "string"
description = "Target of the navigation link: a full URL, or `/`, `/maintenance` or `/incidents` for built-in pages."

[[param]]
name = "attributes.theme"
type = "string"
description = "Color theme with the `v2` design: `light`, `dark` or `system`."

[[param]]
name = "attributes.layout"
type = "string"
description = "Header layout with the `v2` design: `vertical` or `horizontal`."

[[param]]
name = "attributes.organization_id"
type = "integer"
description = "ID of the Better Stack organization the status page belongs to."

[[param]]
name = "attributes.created_at"
type = "string"
description = "When the status page was created, in ISO 8601 format."

[[param]]
name = "attributes.updated_at"
type = "string"
description = "When the status page was last updated, in ISO 8601 format."

[[param]]
name = "pagination.first"
type = "string"
description = "The URL of the first page. Read more about [pagination](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#pagination)."

[[param]]
name = "pagination.last"
type = "string"
description = "The URL of the last page."

[[param]]
name = "pagination.prev"
type = "string or null"
description = "The URL of the previous page, or `null` on the first page."

[[param]]
name = "pagination.next"
type = "string or null"
description = "The URL of the next page, or `null` on the last page."
[/params]

#### Example cURL

```shell
[label Example]
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/status-page-groups/42/status-pages \
  --header "Authorization: Bearer $TOKEN"
```
