Skip to main content
POST
List All Batches

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The request model for listing batches.

status
enum<string> | null

Filter batches by status.

Available options:
PENDING,
QUEUED,
IN_PROGRESS,
PROCESSING,
COMPLETED,
COMPLETED_WITH_ERRORS,
FAILED,
CANCELED,
INTERRUPTED,
UNKNOWN,
SKIPPED,
DRAFT,
ACTIVE,
ARCHIVED,
SUSPENDED
collection_id
string | null

Filter batches to only those associated with a specific collection ID. Useful for tracking the processing state of all batches for a given collection.

bucket_id
string | null

Filter batches to only those belonging to a specific bucket. Useful with the org-level POST /v1/batches/list endpoint to scope results.

offset
integer
default:0

The number of batches to skip.

Required range: x >= 0
limit
integer
default:100

The maximum number of batches to return.

Required range: 1 <= x <= 1000
cursor
string | null

Cursor for deep pagination. Use next_cursor from a previous response to fetch the next page. More efficient than offset for large result sets.

Response

Successful Response

The response model for listing batches.

Each batch in results includes bucket_id, enabling callers to build batch-to-bucket mappings without additional queries.

results
BatchModel · object[]
required

A list of batches.

total_count
integer
required

The total number of batches found.

pagination
Pagination · object | null

Pagination metadata including next_cursor for deep pagination.