GET
/
openai
/
v1
/
batches
List batch
curl --request GET \
  --url https://api.novita.ai/openai/v1/batches \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "endpoint": "<string>",
      "input_file_id": "<string>",
      "output_file_id": "<string>",
      "error_file_id": "<string>",
      "completion_window": "<string>",
      "in_progress_at": {},
      "expires_at": {},
      "finalizing_at": {},
      "completed_at": {},
      "failed_at": {},
      "expired_at": {},
      "cancelling_at": {},
      "cancelled_at": {},
      "status": "<string>",
      "errors": "<string>",
      "version": 123,
      "created_at": "<string>",
      "updated_at": {},
      "created_by": "<string>",
      "created_by_key_id": "<string>",
      "remark": "<string>",
      "total": 123,
      "completed": 123,
      "failed": 123,
      "metadata": {},
      "request_counts": {
        "total": 123,
        "completed": 123,
        "failed": 123
      }
    }
  ],
  "first_id": "<string>",
  "has_more": true,
  "last_id": "<string>",
  "object": "<string>"
}
Displays a list of all available batch jobs.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Response

data
array
required
An array of batch job objects.
first_id
string
required
The ID of the first batch in the list.
has_more
boolean
required
Indicates whether there are more batches available beyond this list.
last_id
string
required
The ID of the last batch in the list.
object
string
required
The object type, which is always list.