List existing resources of a status page

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

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

URL parameters

status_page_id
required string

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "12345",
      "type": "status_page_resource",
      "attributes": {
        "resource_id": 112233,
        "resource_type": "Monitor",
        "public_name": "https://betteruptime.com/",
        "explanation": "",
        "history": true,
        "widget_type": "history",
        "position": 0,
        "availability": 1.0,
        "status_history": [
          {
            "day": "2022-01-01",
            "status": "operational",
            "downtime_duration": 0
          }
        ]
      }
    },
    {
      "id": "12346",
      "type": "status_page_resource",
      "attributes": {
        "resource_id": 112234,
        "resource_type": "Monitor",
        "public_name": "https://wallmine.com/",
        "explanation": "",
        "history": true,
        "widget_type": "history",
        "position": 1,
        "availability": 1.0,
        "status_history": [
          {
            "day": "2022-01-01",
            "status": "operational",
            "downtime_duration": 0
          }
        ]
      }
    }
  ],
  "pagination": {
    "first": "https://betteruptime.com/api/v2/status-pages/123456789/resources?page=1",
    "last": "https://betteruptime.com/api/v2/status-pages/123456789/resources?page=1",
    "prev": null,
    "next": null
  }
}

Example cURL

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