---
title: "List heartbeats"
method: GET
path: "/v2/heartbeats/"
tags: ["Heartbeats"]
---

# List heartbeats

`GET /v2/heartbeats/`

## Request

- Base URL: `https://magicmarkets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://magicmarkets.com/v2/heartbeats/`
- Auth: API key in header `X-Api-Key`

Returns all currently open heartbeats. **Note:** unlike other list endpoints (`/v2/orders/`, `/v2/betslips/`) which return a flat array under `data`, this endpoint wraps the array under `data.heartbeats` for historical reasons. Clients must special-case this shape.

## Response `200`

Open heartbeats

- HeartbeatListEnvelope: List response. Note the data is wrapped under a `heartbeats` key, unlike other list endpoints which return a flat array.
  - `status` 'ok'
  - `data` object
    - `heartbeats` HeartbeatResponse[]
      - `heartbeat_id` string
      - `expiry_time` string, date-time

## Other responses

- `401`: Authentication failed - API key missing, malformed, or rejected.
- `403`: Authorization failed - the key is valid but cannot perform this action.
- `429`: Rate limit hit. Honour the `Retry-After` header.
- `500`: Unexpected internal error. Quote `data[1]` (the token) when contacting support.

---

[API](https://skmtc.dev/magicmarkets/apis/magicmarkets-api.md) · [All operations](https://skmtc.dev/magicmarkets/apis/magicmarkets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/magicmarkets/apis/magicmarkets-api/revisions/00c2a7dcce2a?raw)
