---
title: "Claim a task and read its work package"
method: POST
path: "/v1/compliance/tasks/{taskId}/claim"
tags: ["Compliance"]
---

# Claim a task and read its work package

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

## Request

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

Takes a free task, or one whose lease has run out, for the lease duration (15 minutes by default, renewed by heartbeats) and raises its `execution_epoch`. The response carries the platform's own instructions, the input and the JSON Schema of the answer, so the decision is made on equal terms. The package is built first, so a task whose document is still being read stays free and the call returns 409.

## Path parameters

- `taskId` string, uuid, required

## Response `201`

The claimed task with its work package.

- ComplianceClaimedTask
  - `task` 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
  - `summary` string: What is asked, in one line.
  - `instructions` string: The platform's system instructions for the work.
  - `input` string: The document text(s) and numbered rules, or the framework's extracted requirements.
  - `output_schema` object: JSON Schema of the `answer` to submit.
  - `how_to_answer` string

## 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.
- `422`: The request is well-formed but violates the declared task contract.

## Changes

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

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/compliance/tasks/:taskId/claim/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)
