---
title: "Cancel Agent Batch"
method: DELETE
path: "/api/v1/agent/batch/{batch_id}"
---

# Cancel Agent Batch

`DELETE /api/v1/agent/batch/{batch_id}`

## Request

- Base URL: `https://api.mesharc.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mesharc.dev/api/v1/agent/batch/{batch_id}`
- Auth: none declared

Stop a batch: rows not started are cancelled, running ones stop
before their next step. What rows already used stays charged; their
answers are kept.

## Path parameters

- `batch_id` string, required

## Headers

- `authorization` string, nullable
- `x-mesharc-tenant` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mesharc/apis/mesharc-api.md) · [All operations](https://skmtc.dev/mesharc/apis/mesharc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mesharc/apis/mesharc-api/revisions/d63cc02dfec2?raw)
