---
title: "Keep a session alive (call every ~20s while active)"
method: POST
path: "/v1/inference/{id}/heartbeat"
tags: ["inference"]
---

# Keep a session alive (call every ~20s while active)

`POST /v1/inference/{id}/heartbeat`

## Request

- Base URL: `https://api.ditto.audio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ditto.audio/v1/inference/{id}/heartbeat`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- InferenceHeartbeatDto

## Response `201`

---

[API](https://skmtc.dev/ditto/apis/ditto-audio-api.md) · [All operations](https://skmtc.dev/ditto/apis/ditto-audio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ditto/apis/ditto-audio-api/revisions/30c8d7c218da?raw)
