OhMyGPT
Batches

List batches

GET
/v1/batches

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.

Authorization

ApiKeyAuth
headerAuthorization<token>

Query Parameters

limit?integer
Range1 <= value <= 100
Default20
after?string

The last_id of the previous page.

Response Body

Successful response

application/json
  1. response
data*array<>
first_id*string
has_more*boolean
last_id*string

Pass as after for the next page; null on an empty page.

object*"list"
Value in"list"
Example Request
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"}

Was this page helpful?

Still stuck? Live chat · [email protected] · Telegram group