The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Retrieve a Message Batch
3url: https://platform.claude.com/docs/en/api/beta/messages/batches/retrieve
4---
5
16# Retrieve a Message Batch
27
38**GET** `/v1/messages/batches/{message_batch_id}`
from line 25
2025
2126 - `string`
2227
23 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
28 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
2429
2530 - `"message-batches-2024-09-24"`
2631
from line 73
6873
6974 - `"user-profiles-2026-08-18"`
7075
76 - `"user-profiles-2026-09-04"`
77
7178 - `"advisor-tool-2026-03-01"`
7279
7380 - `"managed-agents-2026-04-01"`
from line 117
110117
111118 - `"mid-conversation-system-clear-at-2026-08-21"`
112119
120- `"anthropic-workspace-id": optional string`
121
113122## Returns
114123
115124- `BetaMessageBatch object`
116125
126 - `type: "message_batch"`
127
128 Object type.
129
130 For Message Batches, this is always `"message_batch"`.
131
132 default: message_batch
133
117134 - `id: string`
118135
119136 Unique object identifier.
from line 228
211228 URL to a `.jsonl` file containing the results of the Message Batch requests. Specified only once processing ends.
212229
213230 Results in the file are not guaranteed to be in the same order as requests. Use the `custom_id` field to match results to requests.
214
215 - `type: "message_batch"`
216
217 Object type.
218
219 For Message Batches, this is always `"message_batch"`.
220
221 default: message_batch
222231
223232## Example
224233