Compliance

Claim a task and read its work package

Changed on

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.

post/v1/compliance/tasks/{taskId}/claim

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

taskId, string uuid required

Response

The claimed task with its work package.

ComplianceClaimedTask required
task, ComplianceTask
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

Changes