---
title: "Retrieve a batch"
method: GET
path: "/v1/batches/{batch_id}"
tags: ["Batches"]
---

# Retrieve a batch

`GET /v1/batches/{batch_id}`

Poll batch status and live `request_counts` while in progress.

## Path parameters

- `batch_id` string, required

## Headers

- `x-project-id` string

## Response `200`

Batch object

- Batch
  - `id` string
  - `object` 'batch'
  - `endpoint` string
  - `status` 'validating' | 'in_progress' | 'finalizing' | 'completed' | 'failed' | 'expired' | 'cancelling' | 'cancelled'
  - `input_file_id` string
  - `output_file_id` string, nullable
  - `error_file_id` string, nullable
  - `completion_window` string
  - `created_at` integer
  - `expires_at` integer
  - `request_counts` object
    - `total` integer
    - `completed` integer
    - `failed` integer
  - `metadata` object

## Other responses

- `404` — Batch not found

---

[API](https://skmtc.dev/zerogpu/apis/zerogpu-batch-files-api.md) · [All operations](https://skmtc.dev/zerogpu/apis/zerogpu-batch-files-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zerogpu/zerogpu-batch-files-api/revisions/f7371035d1a2/schema)
