File: listing-message-batches.md | Updated: 11/15/2025
Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .
English
Search...
Ctrl K
Search...
Navigation
Message Batches
List Message Batches
Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes
cURL
cURL
Copy
curl https://api.anthropic.com/v1/messages/batches \
--header "x-api-key: $ANTHROPIC_API_KEY" \
--header "anthropic-version: 2023-06-01"
200
4XX
Copy
{
"data": [\
{\
"archived_at": "2024-08-20T18:37:24.100435Z",\
"cancel_initiated_at": "2024-08-20T18:37:24.100435Z",\
"created_at": "2024-08-20T18:37:24.100435Z",\
"ended_at": "2024-08-20T18:37:24.100435Z",\
"expires_at": "2024-08-20T18:37:24.100435Z",\
"id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",\
"processing_status": "in_progress",\
"request_counts": {\
"canceled": 10,\
"errored": 30,\
"expired": 10,\
"processing": 100,\
"succeeded": 50\
},\
"results_url": "https://api.anthropic.com/v1/messages/batches/msgbatch_013Zva2CMHLNnXjNJJKqJ2EF/results",\
"type": "message_batch"\
}\
],
"first_id": "<string>",
"has_more": true,
"last_id": "<string>"
}
GET
/
v1
/
messages
/
batches
cURL
cURL
Copy
curl https://api.anthropic.com/v1/messages/batches \
--header "x-api-key: $ANTHROPIC_API_KEY" \
--header "anthropic-version: 2023-06-01"
200
4XX
Copy
{
"data": [\
{\
"archived_at": "2024-08-20T18:37:24.100435Z",\
"cancel_initiated_at": "2024-08-20T18:37:24.100435Z",\
"created_at": "2024-08-20T18:37:24.100435Z",\
"ended_at": "2024-08-20T18:37:24.100435Z",\
"expires_at": "2024-08-20T18:37:24.100435Z",\
"id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",\
"processing_status": "in_progress",\
"request_counts": {\
"canceled": 10,\
"errored": 30,\
"expired": 10,\
"processing": 100,\
"succeeded": 50\
},\
"results_url": "https://api.anthropic.com/v1/messages/batches/msgbatch_013Zva2CMHLNnXjNJJKqJ2EF/results",\
"type": "message_batch"\
}\
],
"first_id": "<string>",
"has_more": true,
"last_id": "<string>"
}
anthropic-beta
string[]
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
anthropic-version
string
required
The version of the Claude API you want to use.
Read more about versioning and our version history here .
x-api-key
string
required
Your unique API key for authentication.
This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console . Each key is scoped to a Workspace.
before_id
string
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
after_id
string
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
limit
integer
default:20
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
Required range: 1 <= x <= 1000
200
application/json
Successful Response
data
MessageBatch ยท object[]
required
Show child attributes
first_id
string | null
required
First ID in the data list. Can be used as the before_id for the previous page.
has_more
boolean
required
Indicates if there are more results in the requested page direction.
last_id
string | null
required
Last ID in the data list. Can be used as the after_id for the next page.
Was this page helpful?
YesNo
Retrieve Message Batch Results Cancel a Message Batch
Assistant
Responses are generated using AI and may contain mistakes.