Batches
List batches
GET
Your batches, newest first. Requires an admin API key or the console session. Other keys get 403 and can still retrieve a batch by its ID.
ApiKeyAuthheader
Authorization<token>limit?integerRange
1 <= value <= 100Default
20after?stringThe last_id of the previous page.
Successful response
application/json- response
data*array<>first_id*stringhas_more*booleanlast_id*stringPass as after for the next page; null on an empty page.
object*"list"Value in
"list"curl -X GET 'https://api.ohmygpt.com/v1/batches'Example Response
{ "data": [ { "completed_at": 0, "completion_window": "string", "created_at": 0, "endpoint": "string", "error_file_id": "string", "errors": { "data": [ { "code": "string", "message": "string" } ], "object": "list" }, "expires_at": 0, "failed_at": 0, "id": "string", "input_file_id": "string", "metadata": { "property1": "string", "property2": "string" }, "object": "batch", "output_file_id": "string", "request_counts": { "cancelled": 0, "completed": 0, "failed": 0, "total": 0 }, "status": "validating" } ], "first_id": "string", "has_more": true, "last_id": "string", "object": "list"}Still stuck? Live chat · [email protected] · Telegram group