Anthropic

Create message batch (Anthropic-compatible)

Creates a native Anthropic Message Batch. Requests use the same Anthropic message parameters as /v1/messages.

post/v1/messages/batches

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/messages/batches
  • Auth: HTTP bearer

Headers

X-TokenLab-Delivery-Policy'auto' | 'verified' | 'official'

Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Verified first and may switch once to Official only before output, request acceptance, or persistent resource creation.

Request body

Example request

{
  "requests": [
    {
      "custom_id": "request-1",
      "params": {
        "model": "claude-sonnet-4-6"
      }
    }
  ]
}

Response

Created message batch

idstring required

Message batch identifier

type'message_batch' required
processing_statusstring required

Current processing status for the batch

request_countsobject required

Request count summary for the batch

ended_atstring nullable required

ISO timestamp when processing ended, when available

created_atstring required

ISO timestamp when the batch was created, when available

expires_atstring required

ISO timestamp when the batch expires, when available

cancel_initiated_atstring nullable required

ISO timestamp when cancellation was initiated, when available

archived_atstring nullable required

ISO timestamp when the batch was archived, when available

results_urlstring nullable required

Results URL, when available

Example response

{
  "id": "msgbatch_01ABC123",
  "processing_status": "in_progress"
}

Changes

No recorded changes to this operation across all 1 revision of this API.