List heartbeats in a group

Returns heartbeats belonging to the given heartbeat group.

GET https://incidents.betterstack.com/api/v2/heartbeat-groups/{heartbeat_group_id}/heartbeats

URL parameters

heartbeat_group_id
required string

Query parameters

page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "12345",
      "type": "heartbeat",
      "attributes": {
        "url": "https://incidents.betterstack.com/api/v1/heartbeat/abcd1234abcd1234abcd1234",
        "name": "Testing heartbeat",
        "period": 10800,
        "grace": 300,
        "call": false,
        "sms": false,
        "email": true,
        "push": true,
        "critical_alert": false,
        "team_wait": 180,
        "heartbeat_group_id": 9525,
        "policy_id": null,
        "team_name": "Test team",
        "sort_index": null,
        "paused_at": null,
        "paused": false,
        "server_timezone": null,
        "maintenance_from": "01:02:00",
        "maintenance_to": "03:04:00",
        "maintenance_timezone": "Amsterdam",
        "maintenance_days": [
          "mon",
          "tue",
          "wed",
          "thu",
          "fri",
          "sat",
          "sun"
        ],
        "created_at": "2020-05-05T11:41:49.327Z",
        "updated_at": "2020-12-10T14:40:23.436Z",
        "status": "up"
      },
      "relationships": {
        "policy": {
          "data": null
        }
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v2/heartbeat-groups/9525/heartbeats?page=1",
    "last": "https://incidents.betterstack.com/api/v2/heartbeat-groups/9525/heartbeats?page=1",
    "prev": null,
    "next": null
  }
}

Response attributes

id
string
type
string
attributes.url
string
attributes.name
string
attributes.period
integer
attributes.grace
integer
attributes.call
boolean
attributes.sms
boolean
attributes.email
boolean
attributes.push
boolean
attributes.critical_alert
boolean
attributes.team_wait
integer or null
attributes.heartbeat_group_id
integer or null
attributes.team_name
string
attributes.sort_index
integer or null
attributes.paused
boolean
attributes.paused_at
string or null
attributes.status
string
attributes.policy_id
string or null
attributes.server_timezone
string or null
attributes.maintenance_from
string or null
attributes.maintenance_to
string or null
attributes.maintenance_timezone
string or null
attributes.maintenance_days
array
attributes.created_at
string
attributes.updated_at
string
relationships.policy.data
object or null
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/heartbeat-groups/9525/heartbeats \
  --header "Authorization: Bearer $TOKEN"