List status page resources

Returns a list of the existing resources of your status page.

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

URL parameters

status_page_id
required string

Query parameters

page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "12345",
      "type": "status_page_resource",
      "attributes": {
        "status_page_section_id": 456789,
        "resource_id": 112233,
        "resource_type": "Monitor",
        "history": true,
        "widget_type": "history",
        "public_name": "https://uptime.betterstack.com/",
        "explanation": "",
        "position": 0,
        "mark_as_down_for": "incident_matching_metadata",
        "mark_as_down_metadata_rule": {
          "key": "Escalation policy",
          "values": [
            {
              "type": "Policy",
              "item_id": 13245,
              "name": "Primary Policy"
            }
          ]
        },
        "mark_as_degraded_for": "any_incident",
        "catalog_reference": null,
        "availability": 0.99963,
        "status": "operational",
        "status_history": [
          {
            "day": "2022-01-01",
            "status": "operational",
            "downtime_duration": 0,
            "maintenance_duration": 0
          },
          {
            "day": "2022-01-02",
            "status": "downtime",
            "downtime_duration": 120.0,
            "maintenance_duration": 0
          }
        ]
      }
    },
    {
      "id": "12346",
      "type": "status_page_resource",
      "attributes": {
        "status_page_section_id": 456789,
        "resource_id": 112234,
        "resource_type": "Monitor",
        "history": true,
        "widget_type": "history",
        "public_name": "https://wallmine.com/",
        "explanation": "",
        "position": 1,
        "mark_as_down_for": "any_incident",
        "mark_as_degraded_for": "no_incident",
        "catalog_reference": null,
        "availability": 1.0,
        "status": "operational",
        "status_history": [
          {
            "day": "2022-01-01",
            "status": "operational",
            "downtime_duration": 0,
            "maintenance_duration": 0
          },
          {
            "day": "2022-01-02",
            "status": "operational",
            "downtime_duration": 0,
            "maintenance_duration": 0
          }
        ]
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v2/status-pages/123456789/resources?page=1",
    "last": "https://incidents.betterstack.com/api/v2/status-pages/123456789/resources?page=1",
    "prev": null,
    "next": null
  }
}

Response attributes

id
string
type
string
attributes.status_page_section_id
integer
attributes.resource_id
integer
attributes.resource_type
string
attributes.history
boolean
attributes.widget_type
string
attributes.public_name
string
attributes.explanation
string or null
attributes.position
integer
attributes.mark_as_down_for
string
attributes.mark_as_down_metadata_rule
object
attributes.mark_as_down_metadata_rule.key
string
attributes.mark_as_down_metadata_rule.values
array
attributes.mark_as_down_metadata_rule.values[].type
string
attributes.mark_as_down_metadata_rule.values[].value
string
attributes.mark_as_down_metadata_rule.values[].item_id
integer
attributes.mark_as_down_metadata_rule.values[].name
string
attributes.mark_as_down_metadata_rule.values[].email
string
attributes.mark_as_degraded_for
string
attributes.mark_as_degraded_metadata_rule
object
attributes.catalog_reference
object or null
attributes.catalog_reference.key
string
attributes.catalog_reference.value
object
attributes.availability
number
attributes.status
string
attributes.status_history
array
attributes.status_history[].day
string
attributes.status_history[].status
string
attributes.status_history[].downtime_duration
number
attributes.status_history[].maintenance_duration
number
pagination.first
string
pagination.last
string
pagination.prev
string or null
pagination.next
string or null

Example cURL

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