# Read batch counters

GET /v1/batches/{id}: Read batch counters

```http
GET /v1/batches/{id}
```

|  |  |
|---|---|
| Operation id | `getBatch` |
| Key scope | `read`: every key |
| Section | [Batches](https://docs.kaab.ist/reference/api#batches) |

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | pattern `^bat_[0-9a-hjkmnp-tv-z]{26}$` |

## Example request

```bash
curl -X GET "https://api.kaab.ist/v1/batches/{id}" \
  -H "Authorization: Bearer $KAAB_API_KEY"
```

## Responses

### 200

Batch

[Batch](https://docs.kaab.ist/reference/api/schemas/batch)

```json
{
  "id": "bat_01j9zqk3q7m4n5p6r7s8t9v0wx",
  "object": "batch",
  "total": 120,
  "queued": 100,
  "running": 8,
  "succeeded": 10,
  "failed": 2,
  "canceled": 0,
  "webhook_url": null,
  "job_ids_url": "/v1/batches/bat_01j9zqk3q7m4n5p6r7s8t9v0wx/jobs",
  "finished_at": null,
  "created_at": "2026-09-18T10:00:00Z"
}
```

## Errors

Every error answers with the [error envelope](https://docs.kaab.ist/reference/api/schemas/error-response); its `code` is one of the [error codes](https://docs.kaab.ist/reference/codes#errors).

| Status | When |
|---|---|
| 400 | `request_invalid`: request validation failed |
| 401 | Missing or invalid API key |
| 403 | The key's scope does not cover this operation |
| 404 | Resource not found |
| 429 | Rate limited; see `Retry-After` |
| 500 | `internal`: unexpected server error |
