Skip to main content
GET
/
anthropic
/
v1
/
messages
/
batches
List batch jobs (Anthropic format)
curl --request GET \
  --url http://localhost:8080/anthropic/v1/messages/batches
{
  "data": [
    {
      "id": "<string>",
      "type": "message_batch",
      "processing_status": "in_progress",
      "request_counts": {
        "processing": 123,
        "succeeded": 123,
        "errored": 123,
        "canceled": 123,
        "expired": 123
      },
      "ended_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "expires_at": "2023-11-07T05:31:56Z",
      "archived_at": "2023-11-07T05:31:56Z",
      "cancel_initiated_at": "2023-11-07T05:31:56Z",
      "results_url": "<string>"
    }
  ],
  "has_more": true,
  "first_id": "<string>",
  "last_id": "<string>"
}

Headers

x-model-provider
string

Provider to use (defaults to anthropic)

Query Parameters

page_size
integer
default:20

Maximum number of batches to return

page_token
string

Cursor for pagination

Response

Successful response

data
object[]
has_more
boolean
first_id
string
last_id
string