# Batch API — all operations

> Every Batch API operation, generated from the OpenAPI specification.

API spec (machine-readable): https://sference.com/openapi.json
HTML version: https://sference.com/docs/api-reference/batch-api

| Method | Path | Operation |
| --- | --- | --- |
| `POST` | `/v1/batches/{batch_id}/cancel` | [CancelBatch](https://sference.com/docs/api-reference/batch-api/V1BatchesBatchIdCancelCancelBatch.md) |
| `GET` | `/v1/batches` | [ListBatches](https://sference.com/docs/api-reference/batch-api/V1BatchesListBatches.md) |
| `POST` | `/v1/batches` | [CreateBatch](https://sference.com/docs/api-reference/batch-api/V1BatchesCreateBatch.md) |
| `GET` | `/v1/batches/{batch_id}` | [GetBatch](https://sference.com/docs/api-reference/batch-api/V1BatchesBatchIdGetBatch.md) |
| `GET` | `/v1/batches/{batch_id}/results` | [GetResults](https://sference.com/docs/api-reference/batch-api/V1BatchesBatchIdResultsGetResults.md) |
| `GET` | `/v1/batches/{batch_id}/results.jsonl` | [GetResultsJsonl](https://sference.com/docs/api-reference/batch-api/V1BatchesBatchIdResultsJsonlGetResultsJsonl.md) |

Source: https://sference.com/docs/api-reference/batch-api
