---
title: "Create a message batch (Anthropic Message Batches API)"
method: POST
path: "/v1/messages/batches"
tags: ["messages"]
---

# Create a message batch (Anthropic Message Batches API)

`POST /v1/messages/batches`

## Request body

- AnthropicapiBatchCreateRequest
  - `requests` AnthropicapiBatchCreateItem[]
    - `custom_id` string
    - `params` object

## Response `200`

OK

- AnthropicapiMessageBatch
  - `archived_at` string
  - `cancel_initiated_at` string
  - `created_at` string
  - `ended_at` string
  - `expires_at` string
  - `id` string
  - `processing_status` string
  - `request_counts` AnthropicapiMessageBatchRequestCounts
    - `canceled` integer
    - `errored` integer
    - `expired` integer
    - `processing` integer
    - `succeeded` integer
  - `results_url` string
  - `type` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `429` — Too Many Requests
- `502` — Bad Gateway

---

[API](https://skmtc.net/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.net/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/revisions/4c27ea61fcfe/schema)
