---
title: "Cancel heartbeat"
method: DELETE
path: "/v2/heartbeats/{heartbeat_id}/"
tags: ["Heartbeats"]
---

# Cancel heartbeat

`DELETE /v2/heartbeats/{heartbeat_id}/`

## 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/{heartbeat_id}/`
- Auth: API key in header `X-Api-Key`

Cancel an active heartbeat. Cancelling disarms the timer without closing any orders; only expiry triggers the order close-out. The response `data` field is always `null`.

## Path parameters

- `heartbeat_id` string, required

## Response `200`

Heartbeat cancelled

- HeartbeatCancelEnvelope: Cancel response. `data` is always `null`.
  - `status` 'ok'
  - `data` unknown

## Other responses

- `401`: Authentication failed - API key missing, malformed, or rejected.
- `403`: Authorization failed - the key is valid but cannot perform this action.
- `404`: Heartbeat not found or already cancelled
- `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)
