---
title: "List Agent Batches"
method: GET
path: "/api/v1/agent/batch"
---

# List Agent Batches

`GET /api/v1/agent/batch`

## Request

- Base URL: `https://api.mesharc.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mesharc.dev/api/v1/agent/batch`
- Auth: none declared

The workspace's agent batches, newest first, without their rows.

## Query parameters

- `limit` integer
- `cursor` string, nullable

## Headers

- `authorization` string, nullable
- `x-mesharc-tenant` string, nullable

## Response `200`

Successful Response

- AgentBatchList
  - `data` AgentBatch[], required
    - `id` string, required
    - `kind` string, required
    - `name` string, required
    - `status` string, required
    - `columns` string[], required
    - `outputColumns` string[], required
    - `prompt` string, required
    - `urls` string[], required
    - `schema` object, nullable
    - `maxCreditsPerRow` integer, required
    - `maxSteps` integer, required
    - `domainLimit` string, required
    - `allowedDomains` string[], required
    - `concurrency` integer, required
    - `rows` integer, required
    - `counts` AgentBatchCounts, required
      - `pending` integer
      - `running` integer
      - `done` integer
      - `credit_limit` integer
      - `error` integer
      - `cancelled` integer
      - `invalid` integer
      - `skipped` integer
    - `budget` integer, required
    - `creditsUsed` integer, required
    - `averagePerRow` integer, nullable
    - `model` string, required
    - `next` string, nullable
    - `createdAt` string, nullable
    - `finishedAt` string, nullable
    - `expiresAt` string, nullable
    - `data` AgentBatchRow[], nullable
      - `row` integer, required
      - `values` object, required
      - `status` string, required
      - `data` union
        - object
        - unknown[]
          - unknown
      - `fieldSources` object
      - `sources` string[]
      - `creditsUsed` integer, required
      - `budget` integer, required
      - `error` string
      - `runId` string, nullable
      - `startedAt` string, nullable
      - `finishedAt` string, nullable
    - `more` string, nullable
    - `webhookSecret` string, nullable
    - `request_id` string
  - `next` string, nullable

## Other responses

- `422`: Validation Error

---

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