Skip to main content

Claim Review Work

Claim the next review items for yourself, claim whole rows, claim or release one item, and keep claims alive, so two reviewers or agents never work the same value.

Claiming gives one reviewer, a person or an agent working for one, the next items in the review queue so nobody else works them at the same time. A claim belongs to the person behind the credential: the signed-in user of an OAuth token, or the person who created the API key. It shows in the web app as theirs, and their review assignment rules and permission for fields marked complex apply exactly as in the app.

Concurrent callers get disjoint batches. An item freshly claimed by someone else is skipped and counted in held_by_others; a claim nobody kept alive for a few minutes is reclaimed. Keep your claims with touch while you work and release the ones you will not decide. All claim routes need the reviews:write scope and a person with the edit permission.

POST/v1/field-reviews/checkout

Body (all optional)

pipeline_idstringOnly items of this run.
field_keystringOnly items of this field.
reasonstringOnly items of this review reason, as listed by GET /v1/field-reviews.
batch_sizeintegerHow many items to claim (1 to 200).
start_keystring<pipeline_document_id>:<field_key> to start the batch at.

curl

curl -s -X POST https://api.talonic.com/v1/field-reviews/checkout \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: checkout-7f3a" \
  -d '{ "pipeline_id": "5b1e0c8d-3a2f-4d6e-9b7a-1c2d3e4f5a6b", "batch_size": 10 }'

Response

{
  "claimed_by": "8c0f6a2e-1b3d-4e5f-9a7b-6c5d4e3f2a1b",
  "items": [ { "pipeline_document_id": "2f6d1e8a-9c44-4b0d-a7f3-5e1c0d9b8a62", "field_key": "invoice_total", "status": "blocked", "reason": "failed_check", "current_value": "1.240,00" } ],
  "total": 37,
  "held_by_others": 4
}
POST/v1/field-reviews/checkout-rows
POST/v1/field-reviews/{docId}/{fieldKey}/assign
POST/v1/field-reviews/claims

Errors

Error responses

403insufficient_scope / insufficient_role / no_personThe credential lacks reviews:write, its person lacks the edit permission (or the complex-review permission for a field marked complex), or the key belongs to no person.
404not_foundThe pipeline document is not in your workspace or not visible to the person.
409conflictSomeone else holds a fresh claim on the item.
422idempotency_key_reusedThe Idempotency-Key was already used for a different request.

Frequently asked questions

Whose claim is it when an agent claims an item?+
The claim belongs to the person the credential acts for: the signed-in user of an OAuth token, or the person who created the API key. It appears in the web app as theirs.
What happens if two agents check out at the same time?+
They get different items. A claim is a single conditional write, so an item claimed by one caller is skipped for the other and counted in held_by_others.
How long does a claim last?+
A few minutes without activity. Send POST /v1/field-reviews/claims with action touch to keep it; an abandoned claim is reclaimed by the next checkout.