Cancel a Message Batch changedapi/beta/messages/batches/cancel
Nearest release: v2.1.309, published 2 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+2added
Lines−2removed
From line
258
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits17to this page, all time
The whole hunk
from line 258, old and new numbered
/
from line 258
258258```bash
259259curl https://api.anthropic.com/v1/messages/batches/$MESSAGE_BATCH_ID/cancel \
260260 -X POST \
261 -H 'anthropic-version: 2023-06-01' \
261 -H 'anthropic-version: 2026-10-21' \
262262 -H 'anthropic-beta: message-batches-2024-09-24' \
263 -H "X-Api-Key: $ANTHROPIC_API_KEY"
263 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
264264```
265265
266266### Response (200)
No line in this hunk matches that.