List Message Batches
Changed onList all Message Batches within a Workspace. Most recently created batches are returned first.
Learn more about the Message Batches API in our user guide
Request
- Base URLhttps://api.anthropic.com
- Authnone declared
Query parameters
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
Headers
The version of the Claude API you want to use.
Read more about versioning and our version history here.
Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
Response
Successful Response
Example response
{
"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"
}
]
}Changes
- warning
deleted the
headerrequest parameterx-api-key
- warning
- breaking
the
response's property type changed from no type toobjectfor status - info
added the optional property
/to the response with the status - info
removed discriminator from
response property for the response status - info
removed from the
response propertyoneOflist for the response status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking