列出 batch
GET
/v1/batches列出当前用户的 batch 作业,按创建时间倒序。支持通过 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.
此页面对您有帮助吗?