---
title: "List Test Batches"
method: GET
path: "/admin/test-batches"
tags: ["admin", "test-batches"]
---

# List Test Batches

`GET /admin/test-batches`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/admin/test-batches`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

List test batches with optional filters. Shows all when no organization_id is provided.

## Query parameters

- `organization_id` string, nullable
- `limit` integer

## Headers

- `organization-id` string, nullable
- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Response `200`

Successful Response

- TestBatchPageResponse
  - `items` TestBatchResponse[], required
    - `id` string, required
    - `organization_id` string, required
    - `model` string, required
    - `variables` object, required
    - `created_at` string, date-time, required
    - `organization` TestBatchOrgResponse
      - `id` string, required
      - `name` string, required
    - `stats` TestBatchStatsResponse, required
      - `total` integer, required
      - `completed` integer, required
      - `pending` integer, required
      - `success_percent` number, required
  - `total` integer, nullable
  - `cursor` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/upsmith/apis/upsmith-api.md) - [All operations](https://skmtc.dev/upsmith/apis/upsmith-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsmith/apis/upsmith-api/revisions/86e2c2bd93af?raw)
