Skip to content
API v1 · 1.0.0-draft.1
Go to console
Contents ↓

API reference / Batches

POST

Cancel a batch

POST /v1/batches/{batch_id}/cancel

Cancel the batch and every unfinished document in it

Parameters

batch_idstringpathrequired

Possible errors

403forbiddenThis key isn't allowed to do this.
404not_foundNot found.
409invalid_stateThis action isn't possible in the current state.
409idempotency_in_progressThe same request is still in progress; retry shortly.
409result_not_readyThe result isn't ready yet.
Last updated: 23 Nov 2026