---
title: "Keep a waiting step alive"
method: POST
path: "/durable-callbacks/heartbeat"
tags: ["Durable Functions"]
---

# Keep a waiting step alive

`POST /durable-callbacks/heartbeat`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/durable-callbacks/heartbeat`
- Auth: none required

Tells the workflow step waiting on the token that the work is still
going on, restarting its heartbeat timeout. A heartbeat never extends
the step's own timeout, and a step without a heartbeat timeout needs
none.

## Request body

- HeartbeatDurableCallbackRequest
  - `token` string, required: The `vcb_` token the workflow handed out. It is the only credential the callback operations take, so treat it as a secret.

## Response `200`

The step is still waiting

- DurableCallbackOutcome
  - `status` 'waiting' | 'delivering' | 'succeeded' | 'failed', required: `waiting` until the token is succeeded or failed. `delivering` while the outcome is on its way to the workflow; Volcano finishes the delivery on its own. `succeeded` or `failed` once the workflow has the outcome.

## Other responses

- `400`: The token is missing or malformed
- `404`: No callback has this token. `code` is `callback_not_found`.
- `409`: The token already has an outcome. `code` is `callback_completed`.
- `410`: The workflow no longer waits on the token. `code` is `callback_expired` or `execution_ended`.
- `413`: The request body is larger than 8 KiB
- `429`: Too many callback requests for the token or its project. Retry later.
- `503`: The heartbeat could not reach the workflow right now. Retry with backoff.

## Changes

- **2026-10-23** `5113707385cc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/durable-callbacks/heartbeat/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
