# List heartbeat groups

Returns a list of all your heartbeat groups. This endpoint [supports pagination](https://betterstack.com/docs/uptime/api/pagination/).

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/heartbeat-groups"
method = "GET"

[[query_param]]
name = "team_name"
description = "Filter heartbeat groups belonging to a specified team when using [global API token](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-a-global-api-token)."
required = false
type = "string"

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

[responses]
[[response]]
status = 200
description = '''Returns list of existing monitor groups'''
body = '''{
  "data": [
    {
      "id": "123456",
      "type": "hearbeat_group",
      "attributes": {
        "name": "Backend services",
        "sort_index": 0,
        "created_at": "2020-10-03T20:20:43.547Z",
        "updated_at": "2020-10-03T20:20:43.547Z",
        "team_name": "Test team",
        "paused": false
      }
    }
  ],
  "pagination": {
    "first": "https://uptime.betterstack.com/api/v2/monitor-groups?page=1",
    "last": "https://uptime.betterstack.com/api/v2/monitor-groups?page=1",
    "prev": null,
    "next": null
  }
}'''
[/responses]

#### Example cURL 

```shell
[label Example]
curl --request GET \
  --url https://uptime.betterstack.com/api/v2/heartbeat-groups \
  --header "Authorization: Bearer $TOKEN"
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all heartbeat groups API parameters](https://betterstack.com/docs/uptime/api/heartbeat-groups-api-response-params/).
[/info]
