List batches
Batch
Batch list (Beta)
List owned async batch jobs for the authenticated workspace.
GET
List batches
Returns the authenticated workspace’s owned batch jobs from AI Stats’ persisted async job store.
Use query parameters to narrow the response:
limitto cap the number of returned jobs. The gateway defaults to20and caps the value at100.- repeated
statusvalues, comma-separatedstatusvalues, or a comma-separatedstatusesvalue, to filter by lifecycle state.
pendingorqueuedin_progress,running, orprocessingcompletedfailedcancelledorcanceledexpired
list envelope whose data array contains the same public batch objects returned by POST /batches and GET /batches/{batch_id}.
Use each item’s gateway-owned id for future polling, cancellation, and websocket subscriptions. native_batch_id, when present, is provider-native correlation metadata and may not be resolvable by AI Stats routes.
Batch objects can include:
lifecycle_statusprogressderived from provider request counts when availablepolling_urlcancel_urlwhen the batch is still cancellable and the provider supports gateway cancellationnative_batch_idwhen the provider id differs from the gateway idrequest_id,provider, andsession_id- sanitized
webhookconfiguration and delivery state billingreservation/settlement state, including held estimates before final settlementpricing_lineswhen settlement details are available
Authorizations
Bearer token authentication
Query Parameters
Maximum number of batch jobs to return. Defaults to 20 and caps at 100.
Required range:
1 <= x <= 100Batch lifecycle status filter. Repeat the parameter, use a comma-separated status value, or use statuses for comma-separated filters.
Comma-separated lifecycle status filters.
Last modified on June 11, 2026