---
title: "Api V 1 Batches Create 2"
method: POST
path: "/api/v1/batches/{batch_id}"
tags: ["proxy"]
---

# Api V 1 Batches Create 2

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

Handle POST requests (create batch or cancel batch).

Thin view: BatchAPIProxy owns the whole pipeline — preprocessing (built-in
``_preprocess``), key-usage + billing enforcement, generation, and the
gateway error policy. raw_payload is captured before the proxy mutates
``request.data`` during preprocessing.

## Path parameters

- `batch_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

No response body

- ProxyApiV1BatchesCreate2Response200 — Empty response body

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c26d550029f8/schema)
