Agent Tasks

Claim the next batch of one pipeline's available tasks

Claims up to count (1-50, default 10) available tasks of the pipeline, oldest first, and returns their full payloads. Each claim is the ordinary row-locked claim, so parallel agents get disjoint tasks; a task another agent took in the meantime is skipped. Returns an empty data array when nothing is available.

post/v1/agent-tasks/claim-next

Request

  • Base URL: https://api.talonic.com
  • URL: https://api.talonic.com/v1/agent-tasks/claim-next
  • Auth: HTTP bearer

Request body

pipeline_idstring uuid required
countinteger

Response

The claimed tasks (full payloads) and how many were claimed.

claimedinteger

Changes

No recorded changes to this operation across all 1 revision of this API.