---
title: "Create a new heartbeat for deadman switch"
method: POST
path: "/heartbeat/create"
tags: ["Heartbeat Management"]
---

# Create a new heartbeat for deadman switch

`POST /heartbeat/create`

## Request body

- CreateHeartbeat
  - `heartbeat_id` string, required — Unique identifier for the heartbeat
  - `impact` 'low' | 'medium' | 'high', required — Impact level
  - `contract_types` string[] — Array of contract types to monitor
  - `underlying_assets` string[] — Array of underlying assets to monitor
  - `product_symbols` string[] — Array of specific product symbols to monitor
  - `config` HeartbeatConfig[], required — Array of action configurations
    - `action` 'cancel_orders' | 'spreads', required — Action to take when heartbeat expires
    - `unhealthy_count` integer, required — Number of unhealthy heartbeats before action
    - `tag` string — Tag for the action (e.g., 'mmp')

## Response `200`

Heartbeat created successfully

- HeartbeatResponse
  - `success` boolean
  - `result` object
    - `heartbeat_id` string
    - `status` string

---

[API](https://skmtc.dev/delta/apis/delta-exchange-api.md) · [All operations](https://skmtc.dev/delta/apis/delta-exchange-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/delta/delta-exchange-api/revisions/36e800c9304c/schema)
