Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Batches changedapi/messages/batches

Nearest release: v2.1.328, published under an hour before 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+96added
Lines−0removed
From line 3,227 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits30to this page, all time

### Errors ### Errors ### Errors ### Errors ### Errors ### Errors

The whole hunk

from line 3227, old and new numbered
/
lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 3227
32273227 
32283228 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.
32293229 
3230### Errors
3231 
3232Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3233 
3234Each code below is the value of `error.details.error_code` in the response body.
3235 
3236- `claude_code_key_creator_not_member` (HTTP status 400)
3237 
3238 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
3239 
3240- `cmek_key_disabled` (HTTP status 400)
3241 
3242 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
3243 
3244- `organization_on_hold` (HTTP status 400)
3245 
3246 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
3247 
3248- `enforced_spend_limit_reached` (HTTP status 429)
3249 
3250 The organization has crossed the monthly API usage threshold of its API tier.
3251 
32303252### Example
32313253 
32323254```bash
from line 3436
34143436 
34153437 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.
34163438 
3439### Errors
3440 
3441Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3442 
3443Each code below is the value of `error.details.error_code` in the response body.
3444 
3445- `claude_code_key_creator_not_member` (HTTP status 400)
3446 
3447 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
3448 
3449- `organization_on_hold` (HTTP status 400)
3450 
3451 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
3452 
34173453### Example
34183454 
34193455```bash
from line 3643
36073643 
36083644 Last ID in the `data` list. Can be used as the `after_id` for the next page.
36093645 
3646### Errors
3647 
3648Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3649 
3650Each code below is the value of `error.details.error_code` in the response body.
3651 
3652- `claude_code_key_creator_not_member` (HTTP status 400)
3653 
3654 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
3655 
3656- `organization_on_hold` (HTTP status 400)
3657 
3658 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
3659 
36103660### Example
36113661 
36123662```bash
from line 3835
37853835 
37863836 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.
37873837 
3838### Errors
3839 
3840Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3841 
3842Each code below is the value of `error.details.error_code` in the response body.
3843 
3844- `claude_code_key_creator_not_member` (HTTP status 400)
3845 
3846 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
3847 
3848- `organization_on_hold` (HTTP status 400)
3849 
3850 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
3851 
37883852### Example
37893853 
37903854```bash
from line 3927
38633927 
38643928 ID of the Message Batch.
38653929 
3930### Errors
3931 
3932Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3933 
3934Each code below is the value of `error.details.error_code` in the response body.
3935 
3936- `claude_code_key_creator_not_member` (HTTP status 400)
3937 
3938 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
3939 
3940- `organization_on_hold` (HTTP status 400)
3941 
3942 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
3943 
38663944### Example
38673945 
38683946```bash
from line 5325
52475325 
52485326 default: expired
52495327 
5328### Errors
5329 
5330Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
5331 
5332Each code below is the value of `error.details.error_code` in the response body.
5333 
5334- `claude_code_key_creator_not_member` (HTTP status 400)
5335 
5336 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
5337 
5338- `cmek_key_disabled` (HTTP status 400)
5339 
5340 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
5341 
5342- `organization_on_hold` (HTTP status 400)
5343 
5344 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
5345 
52505346### Example
52515347 
52525348```bash
from line 8217
81218217 
81228218 default: Invalid request
81238219 
8124 - `AuthenticationError object`
8125 
8126 - `type: "authentication_error"`
8127 
8128 The broad category of the error.
8129 
8130 default: authentication_error
8131 
8132 - `message: string`
8133 
8134 A human-readable explanation of the error. Its wording can change, so don't match on it.
8135 
8136 default: Authentication error
8137 
8138 - `BillingError object`
8139 
8140 - `type: "billing_error"`
8141 
8142 The broad category of the error.
8143 
8144 default: billing_error
8145 
8146 - `message: string`
8147 
8148 A human-readable explanation of the error. Its wording can change, so don't match on it.
8149 
8150 default: Billing error
8151 
8152 - `PermissionError object`
8153 
8154 - `type: "permission_error"`
8155 
8156 The broad category of the error.
8157 
8158 default: permission_error
8159 
8160 - `message: string`
8161 
8162 A human-readable explanation of the error. Its wording can change, so don't match on it.
8163 
8164 default: Permission denied
8165 
8166 - `NotFoundError object`
8167 
8168 - `type: "not_found_error"`
8169 
8170 The broad category of the error.
8171 
8172 default: not_found_error
8173 
8174 - `message: string`
8175 
8176 A human-readable explanation of the error. Its wording can change, so don't match on it.
8177 
8178 default: Not found
8179 
8180 - `RateLimitError object`
8181 
8182 - `type: "rate_limit_error"`
8183 
8184 The broad category of the error.
8185 
8186 default: rate_limit_error
8187 
8188 - `message: string`
8189 
8190 A human-readable explanation of the error. Its wording can change, so don't match on it.
8191 
8192 default: Rate limited
8193 
8194 - `GatewayTimeoutError object`
8195 
8196 - `type: "timeout_error"`
8197 
8198 The broad category of the error.
8199 
8200 default: timeout_error
8201 
8202 - `message: string`
8203 
8204 A human-readable explanation of the error. Its wording can change, so don't match on it.
8205 
8206 default: Request timeout
8207 
8208 - `APIErrorObject object`
8209 
8210 - `type: "api_error"`
8211 
8212 The broad category of the error.
8213 
8214 default: api_error
8215 
8216 - `message: string`
8217 
8218 A human-readable explanation of the error. Its wording can change, so don't match on it.
8219 
8220 default: Internal server error
8221 
8222 - `OverloadedError object`
8223 
8224 - `type: "overloaded_error"`
8225 
8226 The broad category of the error.
8227 
8228 default: overloaded_error
8229 
8230 - `message: string`
8231 
8232 A human-readable explanation of the error. Its wording can change, so don't match on it.
8233 
8234 default: Overloaded
8235 
8236 - `request_id: string or null`
8237 
8238 - `MessageBatchCanceledResult object`
8239 
8240 - `type: "canceled"`
8241 
8242 default: canceled
8243 
8244 - `MessageBatchExpiredResult object`
8245 
8246 - `type: "expired"`
8247 
8248 default: expired
8249 
8250### Message Batch Succeeded Result
8251 
8252- `MessageBatchSucceededResult object`
8253 
8254 - `type: "succeeded"`
8255 
8256 default: succeeded
8257 
8258 - `message: Message`
8259 
8260 - `type: "message"`
8261 
8262 Object type.
8263 
8264 For Messages, this is always `"message"`.
8265 
8266 default: message
8267 
8268 - `id: string`
8269 
8270 Unique object identifier.
8271 
8272 The format and length of IDs may change over time.
8273 
8274 - `container: Container or null`
8275 
8276 Information about the container used in this request.
8277 
8278 This will be non-null if a container tool (e.g. code execution) was used.
8279 
8280 - `id: string`
8281 
8282 Identifier for the container used in this request
8283 
8284 - `expires_at: string`
8285 
8286 The time at which the container will expire.
8287 
8288 format: date-time
8289 
8290 - `skills: array of ContainerSkill or null`
8291 
8292 Skills loaded in the container
8293 
8294 - `type: "anthropic" or "custom"`
8295 
8296 Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
8297 
8298 - `"anthropic"`
8299 
8300 - `"custom"`
8301 
8302 - `skill_id: string`
8303 
8304 Skill ID
8305 
8306 minLength: 1, maxLength: 64
8307 
8308 - `version: string`
8309 
8310 The resolved version: a skill version ID for custom skills.
8311 
8312 minLength: 1, maxLength: 64
8313 
8314 - `content: array of ContentBlock`
8315 
8316 Content generated by the model.
8317 
8318 This is an array of content blocks, each of which has a `type` that determines its shape.
8319 
8320 Example:
8321 
8322 ```json
8323 [{"type": "text", "text": "Hi, I'm Claude."}]
8324 ```
8325 
8326 If the request input `messages` ended with an `assistant` turn, then the response `content` will continue directly from that last turn. You can use this to constrain the model's output.
8327 
8328 For example, if th
8220 - `Authenti
Feedback