List batches
GET
/v1/batchesList batch jobs for the authenticated user, newest first. Supports cursor pagination via after.
Authentication
Authorization Bearer
Query Parameters
limitintegerMaximum items to return (default 20, max 100).
afterstringCursor: batch ID from a previous page (last_id).
Response
objectstringlist
dataarrayArray of batch objects (same shape as GET /v1/batches/{id}).
data.idstringBatch ID.
data.objectstringAlways batch.
data.endpointstringTarget endpoint for batch requests.
data.statusstringBatch status.
data.input_file_idstringUploaded input JSONL file ID.
data.output_file_idstring | nullOutput file ID when available.
data.error_file_idstring | nullError file ID when available.
data.request_countsobjectRequest counts when available.
data.errorsobject | nullValidation or platform errors when failed.
has_morebooleanWhether more pages exist.
first_idstringFirst batch ID in this page.
last_idstringLast batch ID; pass as after for next page.
Was this page helpful?