---
title: "Claim Batch"
method: POST
path: "/tasks/claim-batch"
---

# Claim Batch

`POST /tasks/claim-batch`

Atomically claim multiple tasks by ID for an agent.

## Request body

- BatchClaimRequest — Body for POST /tasks/claim-batch.
  - `task_ids` string[], required
  - `agent_id` string, required
  - `claimed_by_session` string, nullable

## Response `200`

Successful Response

- BatchClaimResponse — Response for POST /tasks/claim-batch.
  - `claimed` string[], required
  - `failed` string[], required

## Other responses

- `422` — Validation Error
- `503` — Server is draining

---

[API](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/versions/86f514b4e920/schema)
