Message Batches API changedbuild-with-claude/batch-processing
Nearest release: v2.1.310, published 11 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+3added
Lines−3removed
From line
421
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits27to this page, all time
The whole hunk
from line 421, old and new numbered
/
from line 421
421421
422422When a batch is first created, the response has a processing status of `in_progress`.
423423
424```text Output wrap
424```json Output
425425{
426426 "id": "msgbatch_01HkcTjaV5uDC8jWR4ZsDV8d",
427427 "type": "message_batch",
from line 918
918918
919919The results are in `.jsonl` format, where each line is a valid JSON object representing the result of a single request in the Message Batch. For each streamed result, you can do something different depending on its `custom_id` and result type. Here is an example set of results:
920920
921```text .jsonl file
921```jsonl .jsonl file
922922{"custom_id":"my-second-request","result":{"type":"succeeded","message":{"id":"msg_014VwiXbi91y3JMjcpyGBHX5","type":"message","role":"assistant","model":"claude-opus-5-5","content":[{"type":"text","text":"Hello again! It's nice to see you. How can I assist you today? Is there anything specific you'd like to chat about or any questions you have?"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":11,"output_tokens":36}}}}
923923{"custom_id":"my-first-request","result":{"type":"succeeded","message":{"id":"msg_01FqfsLoHwgeFbguDgpz48m7","type":"message","role":"assistant","model":"claude-opus-5-5","content":[{"type":"text","text":"Hello! How can I assist you today? Feel free to ask me any questions or let me know if there's anything you'd like to chat about."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":10,"output_tokens":34}}}}
924924```
from line 1017
10171017
10181018The response shows the batch in a `canceling` state:
10191019
1020```text Output wrap
1020```json Output
10211021{
10221022 "id": "msgbatch_013Zva2CMHLNnXjNJJKqJ2EF",
10231023 "type": "message_batch",
No line in this hunk matches that.