List all existing monitor groups

Returns a list of all your monitor groups.

GET https://betteruptime.com/api/v2/monitor-groups

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "95251342",
      "type": "monitor_group",
      "attributes": {
        "name": "Backend services",
        "sort_index": null,
        "created_at": "2020-10-03T20:20:43.547Z",
        "updated_at": "2020-10-03T20:20:43.547Z",
        "paused": true
      }
    }
  ],
  "pagination": {
    "first": "https://betteruptime.com/api/v2/monitor-groups?page=1",
    "last": "https://betteruptime.com/api/v2/monitor-groups?page=1",
    "prev": null,
    "next": null
  }
}

Example cURL

curl --request GET \
  --url https://betteruptime.com/api/v2/monitor-groups \
  --header 'Authorization: Bearer YOUR_API_TOKEN'
Copied!