---
title: "Cancel batch"
method: POST
path: "/v1/batches/{batch_id}/cancel"
tags: ["Batches"]
---

# Cancel batch

`POST /v1/batches/{batch_id}/cancel`

## Request

- Base URL: `https://api.neosantara.xyz`
- URL: `https://api.neosantara.xyz/v1/batches/{batch_id}/cancel`
- Auth: HTTP bearer

Cancels an in-progress batch job.

## Path parameters

- `batch_id` string, required

## Response `200`

Batch cancellation requested

- object
  - `id` string, required
  - `object` 'batch', required
  - `status` 'canceled', required

## Other responses

- `404`: Batch not found

---

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