---
title: "Renew the claim on a task"
method: POST
path: "/v1/compliance/tasks/{taskId}/heartbeat"
tags: ["Compliance"]
---

# Renew the claim on a task

`POST /v1/compliance/tasks/{taskId}/heartbeat`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/compliance/tasks/{taskId}/heartbeat`
- Auth: HTTP bearer

Extends the lease. Returns 409 when the caller does not hold the claim at the given epoch.

## Path parameters

- `taskId` string, uuid, required

## Request body

- ComplianceTaskEpoch
  - `execution_epoch` integer, required: The epoch the claim returned.

## Response `201`

The task with its renewed lease.

- ComplianceTask
  - `id` string, uuid
  - `kind` 'extraction' | 'rules' | 'evaluation' | 'discrepancy'
  - `evaluation_id` string, uuid, nullable
  - `framework_document_id` string, uuid, nullable
  - `status` 'available' | 'claimed' | 'submitted' | 'cancelled': `claimed` only while the lease runs; an expired claim reads `available`.
  - `execution_epoch` integer: Raised by each claim; sent with heartbeat, release and submit.
  - `claimed_by_label` string, nullable
  - `lease_expires_at` string, date-time, nullable
  - `created_at` string, date-time

## Other responses

- `400`: The request is invalid.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `409`: The request conflicts with the current resource state.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/compliance/tasks/:taskId/heartbeat/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
