Anthropic Integration

List batch jobs (Anthropic format)

Lists batch processing jobs.

GET
/anthropic/v1/messages/batches
AuthorizationBearer <token>

Bearer token authentication. Use your MPilot virtual-key JWT or admin JWT. Virtual keys (prefixed with sk-bf-) can also be passed here.

In: header

Query Parameters

page_size?integer

Maximum number of batches to return

Default20
page_token?string

Cursor for pagination

Header Parameters

x-model-provider?string

Provider to use (defaults to anthropic)

Response Body

curl -X GET "https://loading/{AI_GATEWAY_URL}/anthropic/v1/messages/batches?page_size=20&page_token=string" \  -H "x-model-provider: string"
{
  "data": [
    {
      "id": "string",
      "type": "message_batch",
      "processing_status": "in_progress",
      "request_counts": {
        "processing": 0,
        "succeeded": 0,
        "errored": 0,
        "canceled": 0,
        "expired": 0
      },
      "ended_at": "2019-08-24T14:15:22Z",
      "created_at": "2019-08-24T14:15:22Z",
      "expires_at": "2019-08-24T14:15:22Z",
      "archived_at": "2019-08-24T14:15:22Z",
      "cancel_initiated_at": "2019-08-24T14:15:22Z",
      "results_url": "string"
    }
  ],
  "has_more": true,
  "first_id": "string",
  "last_id": "string"
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string"
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string"
  }
}
On this page

On this page

No Headings