> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kraken.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Heartbeat

> Subscribe to heartbeat messages at timed intervals

WSS
futures.kraken.com/ws/v1
heartbeat

The `heartbeat` feed publishes a heartbeat message at timed intervals.

***

## Request

**event** `string` *required*

`subscribe` or `unsubscribe`

**feed** `string` *required*

The requested subscription feed. Value: `heartbeat`

```json Example theme={null}
{
  "event": "subscribe",
  "feed": "heartbeat"
}
```

***

## Response Success

**event** `string`

One of: `subscribed`, `subscribed_failed`, `unsubscribed`, `unsubscribed_failed`

The result.

**feed** `string`

The requested subscription feed. Value: `heartbeat`

```json Example theme={null}
{
  "event": "subscribed",
  "feed": "heartbeat"
}
```

***

## Response Snapshot

**feed** `string`

The subscribed feed.

**time** `positive integer`

The UTC time of the server in milliseconds.

```json Example theme={null}
{
  "feed": "heartbeat",
  "time": 1534262350627
}
```

***

## Response Error

**event** `string`

Value: `error`

**message** `string`

One of: `Invalid feed`, `Json Error`

An error message.

```json Example theme={null}
{
  "event": "error",
  "message": "Json Error"
}
```
