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 capture · api

One read of Claude Developer Platformapi-20261119T000710Z

259 pages moved out of 923 read.

Pages moved 259 significant first
Pages read 923 in this capture
Captured 00:07 UTC
Corpus hash 74cf54600c83 corpus-hash

What this read moved

151-175 of 259, page 7 of 11

This capture is too large to show at once. Changes 151-175 of 259 are below, significant first; the rest are on the following screens.

api/beta/skills/versions/create Changed · +26 / -0 lines

## Errors

from line 221
221221 
222222 The format and length of IDs may change over time.
223223 
224## Errors
225 
226Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
227 
228Each code below is the value of `error.details.error_code` in the response body.
229 
230- `claude_code_key_creator_not_member` (HTTP status 400)
231 
232 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.
233 
234- `cmek_key_disabled` (HTTP status 400)
235 
236 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
237 
238- `cmek_key_network_blocked` (HTTP status 400)
239 
240 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
241 
242- `organization_on_hold` (HTTP status 400)
243 
244 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.
245 
246- `cmek_context_unavailable` (HTTP status 503)
247 
248 The workspace's encryption settings could not be read, so the request was refused. Retry in a few minutes.
249 
224250## Example
225251 
226252```bash

api/beta/skills/versions/delete Changed · +14 / -0 lines

## Errors

from line 194
194194 Unique identifier for this Skill Version. The id addresses the version in
195195 paths and pins it in references.
196196 
197## Errors
198 
199Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
200 
201Each code below is the value of `error.details.error_code` in the response body.
202 
203- `claude_code_key_creator_not_member` (HTTP status 400)
204 
205 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.
206 
207- `organization_on_hold` (HTTP status 400)
208 
209 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.
210 
197211## Example
198212 
199213```bash

api/beta/skills/versions/list Changed · +14 / -0 lines

## Errors

from line 235
235235 
236236 If `null`, there are no more results available. Pass this value to the `page` parameter in the next request to get the next page.
237237 
238## Errors
239 
240Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
241 
242Each code below is the value of `error.details.error_code` in the response body.
243 
244- `claude_code_key_creator_not_member` (HTTP status 400)
245 
246 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.
247 
248- `organization_on_hold` (HTTP status 400)
249 
250 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.
251 
238252## Example
239253 
240254```bash

api/beta/skills/versions/retrieve Changed · +14 / -0 lines

## Errors

from line 219
219219 
220220 The format and length of IDs may change over time.
221221 
222## Errors
223 
224Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
225 
226Each code below is the value of `error.details.error_code` in the response body.
227 
228- `claude_code_key_creator_not_member` (HTTP status 400)
229 
230 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.
231 
232- `organization_on_hold` (HTTP status 400)
233 
234 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.
235 
222236## Example
223237 
224238```bash

api/files Changed · +223 / -69 lines

### Errors ### Errors ### Errors ### Errors ### Errors ## Errors ### file_not_downloadable ### storage_quota_exceeded ### file_expired

from line 91
9191 
9292 format: date-time
9393 
94### Errors
95 
96Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
97 
98Each code below is the value of `error.details.error_code` in the response body.
99 
100- `claude_code_key_creator_not_member` (HTTP status 400)
101 
102 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.
103 
104- `cmek_key_disabled` (HTTP status 400)
105 
106 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
107 
108- `cmek_key_network_blocked` (HTTP status 400)
109 
110 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
111 
112- `organization_on_hold` (HTTP status 400)
113 
114 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.
115 
116- `storage_quota_exceeded` (HTTP status 400)
117 
118 The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
119 
94120### Example
95121 
96122```bash
from line 238
212238 
213239 Opaque cursor for the next page. Supply as `?page=` to fetch the next page; null when there are no more results.
214240 
241### Errors
242 
243Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
244 
245Each code below is the value of `error.details.error_code` in the response body.
246 
247- `claude_code_key_creator_not_member` (HTTP status 400)
248 
249 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.
250 
251- `cmek_key_disabled` (HTTP status 400)
252 
253 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
254 
255- `cmek_key_network_blocked` (HTTP status 400)
256 
257 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
258 
259- `organization_on_hold` (HTTP status 400)
260 
261 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.
262 
215263### Example
216264 
217265```bash
from line 314
266314 
267315 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.
268316 
317### Errors
318 
319Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
320 
321Each code below is the value of `error.details.error_code` in the response body.
322 
323- `claude_code_key_creator_not_member` (HTTP status 400)
324 
325 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.
326 
327- `cmek_key_disabled` (HTTP status 400)
328 
329 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
330 
331- `cmek_key_network_blocked` (HTTP status 400)
332 
333 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
334 
335- `file_not_downloadable` (HTTP status 400)
336 
337 The file has `downloadable: false`. Only files generated by a tool, such as the code execution tool, can be downloaded.
338 
339- `organization_on_hold` (HTTP status 400)
340 
341 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.
342 
343- `file_expired` (HTTP status 404)
344 
345 The file's `expires_at` has passed, so its content is no longer available.
346 
269347### Example
270348 
271349```bash
from line 430
352430 
353431 format: date-time
354432 
433### Errors
434 
435Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
436 
437Each code below is the value of `error.details.error_code` in the response body.
438 
439- `claude_code_key_creator_not_member` (HTTP status 400)
440 
441 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.
442 
443- `cmek_key_disabled` (HTTP status 400)
444 
445 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
446 
447- `cmek_key_network_blocked` (HTTP status 400)
448 
449 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
450 
451- `organization_on_hold` (HTTP status 400)
452 
453 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.
454 
355455### Example
356456 
357457```bash
from line 517
417517 
418518 ID of the deleted file.
419519 
520### Errors
521 
522Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
523 
524Each code below is the value of `error.details.error_code` in the response body.
525 
526- `claude_code_key_creator_not_member` (HTTP status 400)
527 
528 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.
529 
530- `cmek_key_disabled` (HTTP status 400)
531 
532 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
533 
534- `cmek_key_network_blocked` (HTTP status 400)
535 
536 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
537 
538- `organization_on_hold` (HTTP status 400)
539 
540 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.
541 
420542### Example
421543 
422544```bash
from line 579
457579 
458580- `FileExpiredErrorDetails object`
459581 
460 The file's `expires_at` has passed, so its content is no longer available.
461 
462582 - `error_code: "file_expired"`
463583 
464584### File Metadata
from line 637
517637 
518638- `FileNotDownloadableErrorDetails object`
519639 
520 The file has `downloadable: false`. Only files generated by a tool, such as the code execution tool, can be downloaded.
521 
522640 - `error_code: "file_not_downloadable"`
523641 
524642### Storage Quota Exceeded Error Details
from line 643
525643 
526644- `StorageQuotaExceededErrorDetails object`
527645 
646 - `error_code: "storage_quota_exceeded"`
647 
648## Errors
649 
650### file_not_downloadable
651 
652HTTP status 400
653 
654- `"file_not_downloadable"`
655 
656 The file has `downloadable: false`. Only files generated by a tool, such as the code execution tool, can be downloaded.
657 
658 - `details: FileNotDownloadableErrorDetails`
659 
660 - `error_code: "file_not_downloadable"`
661 
662### storage_quota_exceeded
663 
664HTTP status 400
665 
666- `"storage_quota_exceeded"`
667 
528668 The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
529669 
530 - `error_code: "storage_quota_exceeded"`
670 - `details: StorageQuotaExceededErrorDetails`
671 
672 - `error_code: "storage_quota_exceeded"`
673 
674### file_expired
675 
676HTTP status 404
677 
678- `"file_expired"`
679 
680 The file's `expires_at` has passed, so its content is no longer available.
681 
682 - `details: FileExpiredErrorDetails`
683 
684 - `error_code: "file_expired"`
531685 

api/files/delete Changed · +22 / -0 lines

## Errors

from line 45
4545 
4646 ID of the deleted file.
4747 
48## Errors
49 
50Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
51 
52Each code below is the value of `error.details.error_code` in the response body.
53 
54- `claude_code_key_creator_not_member` (HTTP status 400)
55 
56 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.
57 
58- `cmek_key_disabled` (HTTP status 400)
59 
60 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
61 
62- `cmek_key_network_blocked` (HTTP status 400)
63 
64 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
65 
66- `organization_on_hold` (HTTP status 400)
67 
68 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.
69 
4870## Example
4971 
5072```bash

api/files/download Changed · +30 / -0 lines

## Errors

from line 29
2929 
3030 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.
3131 
32## Errors
33 
34Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
35 
36Each code below is the value of `error.details.error_code` in the response body.
37 
38- `claude_code_key_creator_not_member` (HTTP status 400)
39 
40 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.
41 
42- `cmek_key_disabled` (HTTP status 400)
43 
44 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
45 
46- `cmek_key_network_blocked` (HTTP status 400)
47 
48 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
49 
50- `file_not_downloadable` (HTTP status 400)
51 
52 The file has `downloadable: false`. Only files generated by a tool, such as the code execution tool, can be downloaded.
53 
54- `organization_on_hold` (HTTP status 400)
55 
56 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.
57 
58- `file_expired` (HTTP status 404)
59 
60 The file's `expires_at` has passed, so its content is no longer available.
61 
3262## Example
3363 
3464```bash

api/files/list Changed · +22 / -0 lines

## Errors

from line 99
9999 
100100 Opaque cursor for the next page. Supply as `?page=` to fetch the next page; null when there are no more results.
101101 
102## Errors
103 
104Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
105 
106Each code below is the value of `error.details.error_code` in the response body.
107 
108- `claude_code_key_creator_not_member` (HTTP status 400)
109 
110 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.
111 
112- `cmek_key_disabled` (HTTP status 400)
113 
114 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
115 
116- `cmek_key_network_blocked` (HTTP status 400)
117 
118 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
119 
120- `organization_on_hold` (HTTP status 400)
121 
122 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.
123 
102124## Example
103125 
104126```bash

api/files/retrieve_metadata Changed · +22 / -0 lines

## Errors

from line 81
8181 
8282 format: date-time
8383 
84## Errors
85 
86Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
87 
88Each code below is the value of `error.details.error_code` in the response body.
89 
90- `claude_code_key_creator_not_member` (HTTP status 400)
91 
92 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.
93 
94- `cmek_key_disabled` (HTTP status 400)
95 
96 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
97 
98- `cmek_key_network_blocked` (HTTP status 400)
99 
100 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
101 
102- `organization_on_hold` (HTTP status 400)
103 
104 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.
105 
84106## Example
85107 
86108```bash

api/files/upload Changed · +26 / -0 lines

## Errors

from line 89
8989 
9090 format: date-time
9191 
92## Errors
93 
94Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
95 
96Each code below is the value of `error.details.error_code` in the response body.
97 
98- `claude_code_key_creator_not_member` (HTTP status 400)
99 
100 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.
101 
102- `cmek_key_disabled` (HTTP status 400)
103 
104 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
105 
106- `cmek_key_network_blocked` (HTTP status 400)
107 
108 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
109 
110- `organization_on_hold` (HTTP status 400)
111 
112 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.
113 
114- `storage_quota_exceeded` (HTTP status 400)
115 
116 The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
117 
92118## Example
93119 
94120```bash

api/messages Changed · +512 / -34 lines

### Errors ### Errors ## Errors ### available_tools_limit_exceeded ### compaction_block_ambiguous ### compaction_block_misplaced ### compaction_content_mismatch ### compaction_incomplete_turn ### compaction_nothing_to_summarize ### compaction_signature_invalid ### compaction_too_many_tool_references ### compaction_tool_changes_mismatch ### thread_already_continued ### thread_continue_in_flight ### thread_fingerprint_mismatch ### thread_unsupported_request ### tool_name_conflict ### tool_reference_unresolved ### thread_not_found ### compaction_unavailable #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors

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

The two sides of this change are more than 400 edits apart, too far apart to line up, so this is the differ's own diff of it and the words inside a line are not marked.

from line 4452
44524452 
44534453 - `index: number`
44544454 
4455### Errors
4456 
4457Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
4458 
4459Each code below is the value of `error.details.error_code` in the response body.
4460 
4461On a streaming call, the errors listed below apply when the API rejects the request before the stream starts. Once the stream has started, the response status is already 200, so a later error comes through the stream, with no status of its own. To identify it, use `error.details.error_code` if the error has one, and `error.type` if not.
4462 
4463- `available_tools_limit_exceeded` (HTTP status 400)
4464 
4465 The tools available after a message exceed a limit on their number or their size.
4466 
4467- `claude_code_key_creator_not_member` (HTTP status 400)
4468 
4469 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.
4470 
4471- `claude_code_version_too_old` (HTTP status 400)
4472 
4473 The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. Update Claude Code, then retry.
4474 
4475- `cmek_key_disabled` (HTTP status 400)
4476 
4477 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
4478 
4479- `cmek_key_network_blocked` (HTTP status 400)
4480 
4481 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
4482 
4483- `compaction_block_ambiguous` (HTTP status 400)
4484 
4485 `messages` holds more than one `compaction` block with content. Send only the block the conversation returned last.
4486 
4487- `compaction_block_misplaced` (HTTP status 400)
4488 
4489 The `compaction` block is not the first block of the conversation, or is in a `system` message.
4490 
4491- `compaction_content_mismatch` (HTTP status 400)
4492 
4493 The `compaction` block's `content` differs from the text its `signature` recorded.
4494 
4495- `compaction_incomplete_turn` (HTTP status 400)
4496 
4497 The compaction request ends on an `assistant` turn that is not finished.
4498 
4499- `compaction_nothing_to_summarize` (HTTP status 400)
4500 
4501 `messages` holds no `user` or `assistant` content to summarize or adopt.
4502 
4503- `compaction_signature_invalid` (HTTP status 400)
4504 
4505 The `compaction` block's `signature` does not verify.
4506 
4507- `compaction_too_many_tool_references` (HTTP status 400)
4508 
4509 The conversation references more distinct tools than a `compaction` block can record.
4510 
4511- `compaction_tool_changes_mismatch` (HTTP status 400)
4512 
4513 The `compaction` block's `tool_changes` differs from what was returned with the block.
4514 
4515- `organization_on_hold` (HTTP status 400)
4516 
4517 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.
4518 
4519- `request_body_encoding_invalid` (HTTP status 400)
4520 
4521 The request body is not valid for its `Content-Encoding`.
4522 
4523- `request_body_encoding_unsupported` (HTTP status 400)
4524 
4525 The request's `Content-Encoding` is not supported.
4526 
4527- `thread_already_continued` (HTTP status 400)
4528 
4529 The response that `previous_message_id` names has already been continued, and each response can be continued only once. Continue from the Thread's most recent response `id`.
4530 
4531- `thread_continue_in_flight` (HTTP status 400)
4532 
4533 Another request is still continuing from the same `previous_message_id`. Wait for it to complete and continue from its response `id`, or replay the full conversation with `thread: {"type": "create"}`.
4534 
4535- `thread_fingerprint_mismatch` (HTTP status 400)
4536 
4537 A field that must stay the same across a Thread's turns differs from the value stored with the Thread; the message names each such field. Send the stored values, or replay the full conversation with `thread: {"type": "create"}` to change them.
4538 
4539- `thread_unsupported_request` (HTTP status 400)
4540 
4541 The request combines `thread` with a request field or an organization setting that Threads do not support; `unsupported`, when present, names it. Send the full conversation without `thread`, or change that field.
4542 
4543- `tool_name_conflict` (HTTP status 400)
4544 
4545 A tool made available in `messages` takes a name that an available tool of another kind, or of another MCP server, already holds.
4546 
4547- `tool_reference_unresolved` (HTTP status 400)
4548 
4549 A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
4550 
4551- `thread_not_found` (HTTP status 404)
4552 
4553 No usable Thread state was found for `previous_message_id`. Replay the full conversation with `thread: {"type": "create"}` to start a new Thread.
4554 
4555- `skill_read_blocked_undecryptable` (HTTP status 409)
4556 
4557 A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt.
4558 
4559- `request_body_too_large_after_decoding` (HTTP status 413)
4560 
4561 The compressed request body exceeds the request size limit once decoded.
4562 
4563- `enforced_spend_limit_reached` (HTTP status 429)
4564 
4565 The organization has crossed the monthly API usage threshold of its API tier.
4566 
4567- `ramp_limit_exceeded` (HTTP status 429)
4568 
4569 The request would exceed a ramp limit, which caps how fast usage can grow. Retry after the time in the `retry-after` header.
4570 
4571- `cmek_key_unreachable` (HTTP status 503)
4572 
4573 The workspace's customer-managed encryption key could not be reached. Retry the request; if this continues, check that the key is available in your key management service, or contact Anthropic support.
4574 
4575- `compaction_unavailable` (HTTP status 529)
4576 
4577 The compaction could not be completed for a transient server reason. Retry the request.
4578 
44554579### Example
44564580 
44574581```bash
from line 7672
75487672 
75497673 The total number of tokens across the provided list of messages, system prompt, and tools.
75507674 
7675### Errors
7676 
7677Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
7678 
7679Each code below is the value of `error.details.error_code` in the response body.
7680 
7681- `available_tools_limit_exceeded` (HTTP status 400)
7682 
7683 The tools available after a message exceed a limit on their number or their size.
7684 
7685- `claude_code_key_creator_not_member` (HTTP status 400)
7686 
7687 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.
7688 
7689- `compaction_block_ambiguous` (HTTP status 400)
7690 
7691 `messages` holds more than one `compaction` block with content. Send only the block the conversation returned last.
7692 
7693- `compaction_block_misplaced` (HTTP status 400)
7694 
7695 The `compaction` block is not the first block of the conversation, or is in a `system` message.
7696 
7697- `compaction_content_mismatch` (HTTP status 400)
7698 
7699 The `compaction` block's `content` differs from the text its `signature` recorded.
7700 
7701- `compaction_nothing_to_summarize` (HTTP status 400)
7702 
7703 `messages` holds no `user` or `assistant` content to summarize or adopt.
7704 
7705- `compaction_signature_invalid` (HTTP status 400)
7706 
7707 The `compaction` block's `signature` does not verify.
7708 
7709- `compaction_tool_changes_mismatch` (HTTP status 400)
7710 
7711 The `compaction` block's `tool_changes` differs from what was returned with the block.
7712 
7713- `organization_on_hold` (HTTP status 400)
7714 
7715 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.
7716 
7717- `request_body_encoding_invalid` (HTTP status 400)
7718 
7719 The request body is not valid for its `Content-Encoding`.
7720 
7721- `request_body_encoding_unsupported` (HTTP status 400)
7722 
7723 The request's `Content-Encoding` is not supported.
7724 
7725- `tool_name_conflict` (HTTP status 400)
7726 
7727 A tool made available in `messages` takes a name that an available tool of another kind, or of another MCP server, already holds.
7728 
7729- `tool_reference_unresolved` (HTTP status 400)
7730 
7731 A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
7732 
7733- `request_body_too_large_after_decoding` (HTTP status 413)
7734 
7735 The compressed request body exceeds the request size limit once decoded.
7736 
7737- `enforced_spend_limit_reached` (HTTP status 429)
7738 
7739 The organization has crossed the monthly API usage threshold of its API tier.
7740 
7741- `compaction_unavailable` (HTTP status 529)
7742 
7743 The compaction could not be completed for a transient server reason. Retry the request.
7744 
75517745### Example
75527746 
75537747```bash
from line 8773
85798773 
85808774- `AvailableToolsLimitExceededErrorDetails object`
85818775 
8582 The tools available after a message exceed a limit on their number or their size.
8583 
85848776 - `error_code: "available_tools_limit_exceeded"`
85858777 
85868778### Base64 Image Source
from line 15949
1575715949 
1575815950- `CompactionBlockAmbiguousErrorDetails object`
1575915951 
15760 `messages` holds more than one `compaction` block with content. Send only the block the conversation returned last.
15761 
1576215952 - `error_code: "compaction_block_ambiguous"`
1576315953 
1576415954### Compaction Block Misplaced Error Details
1576515955 
1576615956- `CompactionBlockMisplacedErrorDetails object`
1576715957 
15768 The `compaction` block is not the first block of the conversation, or is in a `system` message.
15769 
1577015958 - `error_code: "compaction_block_misplaced"`
1577115959 
1577215960### Compaction Content Mismatch Error Details
1577315961 
1577415962- `CompactionContentMismatchErrorDetails object`
1577515963 
15776 The `compaction` block's `content` differs from the text its `signature` recorded.
15777 
1577815964 - `error_code: "compaction_content_mismatch"`
1577915965 
1578015966### Compaction Incomplete Turn Error Details
1578115967 
1578215968- `CompactionIncompleteTurnErrorDetails object`
1578315969 
15784 The compaction request ends on an `assistant` turn that is not finished.
15785 
1578615970 - `error_code: "compaction_incomplete_turn"`
1578715971 
1578815972### Compaction Nothing To Summarize Error Details
1578915973 
1579015974- `CompactionNothingToSummarizeErrorDetails object`
1579115975 
15792 `messages` holds no `user` or `assistant` content to summarize or adopt.
15793 
1579415976 - `error_code: "compaction_nothing_to_summarize"`
1579515977 
1579615978### Compaction Signature Invalid Error Details
1579715979 
1579815980- `CompactionSignatureInvalidErrorDetails object`
1579915981 
15800 The `compaction` block's `signature` does not verify.
15801 
1580215982 - `error_code: "compaction_signature_invalid"`
1580315983 
1580415984### Compaction Too Many Tool References Error Details
1580515985 
1580615986- `CompactionTooManyToolReferencesErrorDetails object`
1580715987 
15808 The conversation references more distinct tools than a `compaction` block can record.
15809 
1581015988 - `error_code: "compaction_too_many_tool_references"`
1581115989 
1581215990### Compaction Tool Changes Mismatch Error Details
1581315991 
1581415992- `CompactionToolChangesMismatchErrorDetails object`
1581515993 
15816 The `compaction` block's `tool_changes` differs from what was returned with the block.
15817 
1581815994 - `error_code: "compaction_tool_changes_mismatch"`
1581915995 
1582015996### Compaction Unavailable Error Details
1582115997 
1582215998- `CompactionUnavailableErrorDetails object`
1582315999 
15824 The compaction could not be completed for a transient server reason. Retry the request.
15825 
1582616000 - `error_code: "compaction_unavailable"`
1582716001 
1582816002### Computer Cursor Position Config
from line 31803
3162931803 
3163031804- `ThreadAlreadyContinuedErrorDetails object`
3163131805 
31632 The response that `previous_message_id` names has already been continued, and each response can be continued only once. Continue from the Thread's most recent response `id`.
31633 
3163431806 - `error_code: "thread_already_continued"`
3163531807 
3163631808### Thread Continue In Flight Error Details
3163731809 
3163831810- `ThreadContinueInFlightErrorDetails object`
3163931811 
31640 Another request is still continuing from the same `previous_message_id`. Wait for it to complete and continue from its response `id`, or replay the full conversation with `thread: {"type": "create"}`.
31641 
3164231812 - `error_code: "thread_continue_in_flight"`
3164331813 
3164431814### Thread Fingerprint Mismatch Error Details
3164531815 
3164631816- `ThreadFingerprintMismatchErrorDetails object`
3164731817 
31648 A field that must stay the same across a Thread's turns differs from the value stored with the Thread; the message names each such field. Send the stored values, or replay the full conversation with `thread: {"type": "create"}` to change them.
31649 
3165031818 - `error_code: "thread_fingerprint_mismatch"`
3165131819 
3165231820### Thread Not Found Error Details
3165331821 
3165431822- `ThreadNotFoundErrorDetails object`
3165531823 
31656 No usable Thread state was found for `previous_message_id`. Replay the full conversation with `thread: {"type": "create"}` to start a new Thread.
31657 
3165831824 - `error_code: "thread_not_found"`
3165931825 
3166031826### Thread Unsupported Feature Name
from line 31843
3167731843 
3167831844- `ThreadUnsupportedRequestErrorDetails object`
3167931845 
31680 The request combines `thread` with a request field or an organization setting that Threads do not support; `unsupported`, when present, names it. Send the full conversation without `thread`, or change that field.
31681 
3168231846 - `error_code: "thread_unsupported_request"`
3168331847 
3168431848 - `unsupported: optional array of ThreadUnsupportedFeatureName or null`
from line 32101
3193732101 
3193832102- `ToolNameConflictErrorDetails object`
3193932103 
31940 A tool made available in `messages` takes a name that an available tool of another kind, or of another MCP server, already holds.
31941 
3194232104 - `error_code: "tool_name_conflict"`
3194332105 
3194432106### Tool Reference Block
from line 32152
3199032152 
3199132153- `ToolReferenceUnresolvedErrorDetails object`
3199232154 
31993 A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
31994 
3199532155 - `error_code: "tool_reference_unresolved"`
3199632156 
3199732157### Tool Result Block Param
from line 39962
3980239962 
3980339963 - `"request_too_large"`
3980439964 
39965## Errors
39966 
39967### available_tools_limit_exceeded
39968 
39969HTTP status 400
39970 
39971- `"available_tools_limit_exceeded"`
39972 
39973 The tools available after a message exceed a limit on their number or their size.
39974 
39975 - `details: AvailableToolsLimitExceededErrorDetails`
39976 
39977 - `error_code: "available_tools_limit_exceeded"`
39978 
39979### compaction_block_ambiguous
39980 
39981HTTP status 400
39982 
39983- `"compaction_block_ambiguous"`
39984 
39985 `messages` holds more than one `compaction` block with content. Send only the block the conversation returned last.
39986 
39987 - `details: CompactionBlockAmbiguousErrorDetails`
39988 
39989 - `error_code: "compaction_block_ambiguous"`
39990 
39991### compaction_block_misplaced
39992 
39993HTTP status 400
39994 
39995- `"compaction_block_misplaced"`
39996 
39997 The `compaction` block is not the first block of the conversation, or is in a `system` message.
39998 
39999 - `details: CompactionBlockMisplacedErrorDetails`
40000 
40001 - `error_code: "compaction_block_misplaced"`
40002 
40003### compaction_content_mismatch
40004 
40005HTTP status 400
40006 
40007- `"compaction_content_mismatch"`
40008 
40009 The `compaction` block's `content` differs from the text its `signature` recorded.
40010 
40011 - `details: CompactionContentMismatchErrorDetails`
40012 
40013 - `error_code: "compaction_content_mismatch"`
40014 
40015### compaction_incomplete_turn
40016 
40017HTTP status 400
40018 
40019- `"compaction_incomplete_turn"`
40020 
40021 The compaction request ends on an `assistant` turn that is not finished.
40022 
40023 - `details: CompactionIncompleteTurnErrorDetails`
40024 
40025 - `error_code: "compaction_incomplete_turn"`
40026 
40027### compaction_nothing_to_summarize
40028 
40029HTTP status 400
40030 
40031- `"compaction_nothing_to_summarize"`
40032 
40033 `messages` holds no `user` or `assistant` content to summarize or adopt.
40034 
40035 - `details: CompactionNothingToSummarizeErrorDetails`
40036 
40037 - `error_code: "compaction_nothing_to_summarize"`
40038 
40039### compaction_signature_invalid
40040 
40041HTTP status 400
40042 
40043- `"compaction_signature_invalid"`
40044 
40045 The `compaction` block's `signature` does not verify.
40046 
40047 - `details: CompactionSignatureInvalidErrorDetails`
40048 
40049 - `error_code: "compaction_signature_invalid"`
40050 
40051### compaction_too_many_tool_references
40052 
40053HTTP status 400
40054 
40055- `"compaction_too_many_tool_references"`
40056 
40057 The conversation references more distinct tools than a `compaction` block can record.
40058 
40059 - `details: CompactionTooManyToolReferencesErrorDetails`
40060 
40061 - `error_code: "compaction_too_many_tool_references"`
40062 
40063### compaction_tool_changes_mismatch
40064 
40065HTTP status 400
40066 
40067- `"compaction_tool_changes_mismatch"`
40068 
40069 The `compaction` block's `tool_changes` differs from what was returned with the block.
40070 
40071 - `details: CompactionToolChangesMismatchErrorDetails`
40072 
40073 - `error_code: "compaction_tool_changes_mismatch"`
40074 
40075### thread_already_continued
40076 
40077HTTP status 400
40078 
40079- `"thread_already_continued"`
40080 
40081 The response that `previous_message_id` names has already been continued, and each response can be continued only once. Continue from the Thread's most recent response `id`.
40082 
40083 - `details: ThreadAlreadyContinuedErrorDetails`
40084 
40085 - `error_code: "thread_already_continued"`
40086 
40087### thread_continue_in_flight
40088 
40089HTTP status 400
40090 
40091- `"thread_continue_in_flight"`
40092 
40093 Another request is still continuing from the same `previous_message_id`. Wait for it to complete and continue from its response `id`, or replay the full conversation with `thread: {"type": "create"}`.
40094 
40095 - `details: ThreadContinueInFlightErrorDetails`
40096 
40097 - `error_code: "thread_continue_in_flight"`
40098 
40099### thread_fingerprint_mismatch
40100 
40101HTTP status 400
40102 
40103- `"thread_fingerprint_mismatch"`
40104 
40105 A field that must stay the same across a Thread's turns differs from the value stored with the Thread; the message names each such field. Send the stored values, or replay the full conversation with `thread: {"type": "create"}` to change them.
40106 
40107 - `details: ThreadFingerprintMismatchErrorDetails`
40108 
40109 - `error_code: "thread_fingerprint_mismatch"`
40110 
40111### thread_unsupported_request
40112 
40113HTTP status 400
40114 
40115- `"thread_unsupported_request"`
40116 
40117 The request combines `thread` with a request field or an organization setting that Threads do not support; `unsupported`, when present, names it. Send the full conversation without `thread`, or change that field.
40118 
40119 - `details: ThreadUnsupportedRequestErrorDetails`
40120 
40121 - `error_code: "thread_unsupported_request"`
40122 
40123 - `unsupported: optional array of ThreadUnsupportedFeatureName or null`
40124 
40125 Each entry names a request field or an organization setting that Threads do not support. On a value you do not recognize, send the full conversation without `thread`.
40126 
40127 - `"cache_control"`
40128 
40129 - `"context_management"`
40130 
40131 - `"fallbacks"`
40132 
40133 - `"hipaa"`
40134 
40135 - `"inference_hooks"`
40136 
40137 - `"thinking"`
40138 
40139### tool_name_conflict
40140 
40141HTTP status 400
40142 
40143- `"tool_name_conflict"`
40144 
40145 A tool made available in `messages` takes a name that an available tool of another kind, or of another MCP server, already holds.
40146 
40147 - `details: ToolNameConflictErrorDetails`
40148 
40149 - `error_code: "tool_name_conflict"`
40150 
40151### tool_reference_unresolved
40152 
40153HTTP status 400
40154 
40155- `"tool_reference_unresolved"`
40156 
40157 A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
40158 
40159 - `details: ToolReferenceUnresolvedErrorDetails`
40160 
40161 - `error_code: "tool_reference_unresolved"`
40162 
40163### thread_not_found
40164 
40165HTTP status 404
40166 
40167- `"thread_not_found"`
40168 
40169 No usable Thread state was found for `previous_message_id`. Replay the full conversation with `thread: {"type": "create"}` to start a new Thread.
40170 
40171 - `details: ThreadNotFoundErrorDetails`
40172 
40173 - `error_code: "thread_not_found"`
40174 
40175### compaction_unavailable
40176 
40177HTTP status 529
40178 
40179- `"compaction_unavailable"`
40180 
40181 The compaction could not be completed for a transient server reason. Retry the request.
40182 
40183 - `details: CompactionUnavailableErrorDetails`
40184 
40185 - `error_code: "compaction_unavailable"`
40186 
3980540187## Messages › Batches
3980640188 
3980740189### Create a Message Batch
from line 43408
4302643408 
4302743409 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.
4302843410 
43411#### Errors
43412 
43413Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
43414 
43415Each code below is the value of `error.details.error_code` in the response body.
43416 
43417- `claude_code_key_creator_not_member` (HTTP status 400)
43418 
43419 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.
43420 
43421- `cmek_key_disabled` (HTTP status 400)
43422 
43423 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
43424 
43425- `organization_on_hold` (HTTP status 400)
43426 
43427 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.
43428 
43429- `enforced_spend_limit_reached` (HTTP status 429)
43430 
43431 The organization has crossed the monthly API usage threshold of its API tier.
43432 
4302943433#### Example
4303043434 
4303143435```bash
from line 43617
4321343617 
4321443618 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.
4321543619 
43620#### Errors
43621 
43622Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
43623 
43624Each code below is the value of `error.details.error_code` in the response body.
43625 
43626- `claude_code_key_creator_not_member` (HTTP status 400)
43627 
43628 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.
43629 
43630- `organization_on_hold` (HTTP status 400)
43631 
43632 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.
43633 
4321643634#### Example
4321743635 
4321843636```bash
from line 43824
4340643824 
4340743825 Last ID in the `data` list. Can be used as the `after_id` for the next page.
4340843826 
43827#### Errors
43828 
43829Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
43830 
43831Each code below is the value of `error.details.error_code` in the response body.
43832 
43833- `claude_code_key_creator_not_member` (HTTP status 400)
43834 
43835 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.
43836 
43837- `organization_on_hold` (HTTP status 400)
43838 
43839 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.
43840 
4340943841#### Example
4341043842 
4341143843```bash
from line 44016
4358444016 
4358544017 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.
4358644018 
44019#### Errors
44020 
44021Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
44022 
44023Each code below is the value of `error.details.error_code` in the response body.
44024 
44025- `claude_code_key_creator_not_member` (HTTP status 400)
44026 
44027 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.
44028 
44029- `organization_on_hold` (HTTP status 400)
44030 
44031 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.
44032 
4358744033#### Example
4358844034 
4358944035```bash
from line 44108
4366244108 
4366344109 ID of the Message Batch.
4366444110 
44111#### Errors
44112 
44113Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
44114 
44115Each code below is the value of `error.details.error_code` in the response body.
44116 
44117- `claude_code_key_creator_not_member` (HTTP status 400)
44118 
44119 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.
44120 
44121- `organization_on_hold` (HTTP status 400)
44122 
44123 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.
44124 
4366544125#### Example
4366644126 
4366744127```bash
from line 45506
4504645506 
4504745507 default: expired
4504845508 
45509#### Errors
45510 
45511Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
45512 
45513Each code below is the value of `error.details.error_code` in the response body.
45514 
45515- `claude_code_key_creator_not_member` (HTTP status 400)
45516 
45517 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.
45518 
45519- `cmek_key_disabled` (HTTP status 400)
45520 
45521 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
45522 
45523- `organization_on_hold` (HTTP status 400)
45524 
45525 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.
45526 
4504945527#### Example
4505045528 
4505145529```bash
4505245530 

api/messages/batches Changed · +96 / -0 lines

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

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

api/messages/batches/cancel Changed · +14 / -0 lines

## Errors

from line 143
143143 
144144 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.
145145 
146## Errors
147 
148Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
149 
150Each code below is the value of `error.details.error_code` in the response body.
151 
152- `claude_code_key_creator_not_member` (HTTP status 400)
153 
154 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.
155 
156- `organization_on_hold` (HTTP status 400)
157 
158 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.
159 
146160## Example
147161 
148162```bash

api/messages/batches/create Changed · +22 / -0 lines

## Errors

from line 3225
32253225 
32263226 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.
32273227 
3228## Errors
3229 
3230Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3231 
3232Each code below is the value of `error.details.error_code` in the response body.
3233 
3234- `claude_code_key_creator_not_member` (HTTP status 400)
3235 
3236 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.
3237 
3238- `cmek_key_disabled` (HTTP status 400)
3239 
3240 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
3241 
3242- `organization_on_hold` (HTTP status 400)
3243 
3244 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.
3245 
3246- `enforced_spend_limit_reached` (HTTP status 429)
3247 
3248 The organization has crossed the monthly API usage threshold of its API tier.
3249 
32283250## Example
32293251 
32303252```bash

api/messages/batches/delete Changed · +14 / -0 lines

## Errors

from line 49
4949 
5050 ID of the Message Batch.
5151 
52## Errors
53 
54Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
55 
56Each code below is the value of `error.details.error_code` in the response body.
57 
58- `claude_code_key_creator_not_member` (HTTP status 400)
59 
60 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.
61 
62- `organization_on_hold` (HTTP status 400)
63 
64 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.
65 
5266## Example
5367 
5468```bash

api/messages/batches/list Changed · +14 / -0 lines

## Errors

from line 165
165165 
166166 Last ID in the `data` list. Can be used as the `after_id` for the next page.
167167 
168## Errors
169 
170Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
171 
172Each code below is the value of `error.details.error_code` in the response body.
173 
174- `claude_code_key_creator_not_member` (HTTP status 400)
175 
176 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.
177 
178- `organization_on_hold` (HTTP status 400)
179 
180 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.
181 
168182## Example
169183 
170184```bash

api/messages/batches/results Changed · +18 / -0 lines

## Errors

from line 1369
13691369 
13701370 default: expired
13711371 
1372## Errors
1373 
1374Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1375 
1376Each code below is the value of `error.details.error_code` in the response body.
1377 
1378- `claude_code_key_creator_not_member` (HTTP status 400)
1379 
1380 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.
1381 
1382- `cmek_key_disabled` (HTTP status 400)
1383 
1384 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
1385 
1386- `organization_on_hold` (HTTP status 400)
1387 
1388 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.
1389 
13721390## Example
13731391 
13741392```bash

api/messages/batches/retrieve Changed · +14 / -0 lines

## Errors

from line 141
141141 
142142 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.
143143 
144## Errors
145 
146Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
147 
148Each code below is the value of `error.details.error_code` in the response body.
149 
150- `claude_code_key_creator_not_member` (HTTP status 400)
151 
152 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.
153 
154- `organization_on_hold` (HTTP status 400)
155 
156 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.
157 
144158## Example
145159 
146160```bash

api/messages/count_tokens Changed · +70 / -0 lines

## Errors

from line 3001
30013001 
30023002 The total number of tokens across the provided list of messages, system prompt, and tools.
30033003 
3004## Errors
3005 
3006Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3007 
3008Each code below is the value of `error.details.error_code` in the response body.
3009 
3010- `available_tools_limit_exceeded` (HTTP status 400)
3011 
3012 The tools available after a message exceed a limit on their number or their size.
3013 
3014- `claude_code_key_creator_not_member` (HTTP status 400)
3015 
3016 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.
3017 
3018- `compaction_block_ambiguous` (HTTP status 400)
3019 
3020 `messages` holds more than one `compaction` block with content. Send only the block the conversation returned last.
3021 
3022- `compaction_block_misplaced` (HTTP status 400)
3023 
3024 The `compaction` block is not the first block of the conversation, or is in a `system` message.
3025 
3026- `compaction_content_mismatch` (HTTP status 400)
3027 
3028 The `compaction` block's `content` differs from the text its `signature` recorded.
3029 
3030- `compaction_nothing_to_summarize` (HTTP status 400)
3031 
3032 `messages` holds no `user` or `assistant` content to summarize or adopt.
3033 
3034- `compaction_signature_invalid` (HTTP status 400)
3035 
3036 The `compaction` block's `signature` does not verify.
3037 
3038- `compaction_tool_changes_mismatch` (HTTP status 400)
3039 
3040 The `compaction` block's `tool_changes` differs from what was returned with the block.
3041 
3042- `organization_on_hold` (HTTP status 400)
3043 
3044 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.
3045 
3046- `request_body_encoding_invalid` (HTTP status 400)
3047 
3048 The request body is not valid for its `Content-Encoding`.
3049 
3050- `request_body_encoding_unsupported` (HTTP status 400)
3051 
3052 The request's `Content-Encoding` is not supported.
3053 
3054- `tool_name_conflict` (HTTP status 400)
3055 
3056 A tool made available in `messages` takes a name that an available tool of another kind, or of another MCP server, already holds.
3057 
3058- `tool_reference_unresolved` (HTTP status 400)
3059 
3060 A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
3061 
3062- `request_body_too_large_after_decoding` (HTTP status 413)
3063 
3064 The compressed request body exceeds the request size limit once decoded.
3065 
3066- `enforced_spend_limit_reached` (HTTP status 429)
3067 
3068 The organization has crossed the monthly API usage threshold of its API tier.
3069 
3070- `compaction_unavailable` (HTTP status 529)
3071 
3072 The compaction could not be completed for a transient server reason. Retry the request.
3073 
30043074## Example
30053075 
30063076```bash

api/messages/create Changed · +124 / -0 lines

## Errors

from line 4450
44504450 
44514451 - `index: number`
44524452 
4453## Errors
4454 
4455Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
4456 
4457Each code below is the value of `error.details.error_code` in the response body.
4458 
4459On a streaming call, the errors listed below apply when the API rejects the request before the stream starts. Once the stream has started, the response status is already 200, so a later error comes through the stream, with no status of its own. To identify it, use `error.details.error_code` if the error has one, and `error.type` if not.
4460 
4461- `available_tools_limit_exceeded` (HTTP status 400)
4462 
4463 The tools available after a message exceed a limit on their number or their size.
4464 
4465- `claude_code_key_creator_not_member` (HTTP status 400)
4466 
4467 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.
4468 
4469- `claude_code_version_too_old` (HTTP status 400)
4470 
4471 The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. Update Claude Code, then retry.
4472 
4473- `cmek_key_disabled` (HTTP status 400)
4474 
4475 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
4476 
4477- `cmek_key_network_blocked` (HTTP status 400)
4478 
4479 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
4480 
4481- `compaction_block_ambiguous` (HTTP status 400)
4482 
4483 `messages` holds more than one `compaction` block with content. Send only the block the conversation returned last.
4484 
4485- `compaction_block_misplaced` (HTTP status 400)
4486 
4487 The `compaction` block is not the first block of the conversation, or is in a `system` message.
4488 
4489- `compaction_content_mismatch` (HTTP status 400)
4490 
4491 The `compaction` block's `content` differs from the text its `signature` recorded.
4492 
4493- `compaction_incomplete_turn` (HTTP status 400)
4494 
4495 The compaction request ends on an `assistant` turn that is not finished.
4496 
4497- `compaction_nothing_to_summarize` (HTTP status 400)
4498 
4499 `messages` holds no `user` or `assistant` content to summarize or adopt.
4500 
4501- `compaction_signature_invalid` (HTTP status 400)
4502 
4503 The `compaction` block's `signature` does not verify.
4504 
4505- `compaction_too_many_tool_references` (HTTP status 400)
4506 
4507 The conversation references more distinct tools than a `compaction` block can record.
4508 
4509- `compaction_tool_changes_mismatch` (HTTP status 400)
4510 
4511 The `compaction` block's `tool_changes` differs from what was returned with the block.
4512 
4513- `organization_on_hold` (HTTP status 400)
4514 
4515 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.
4516 
4517- `request_body_encoding_invalid` (HTTP status 400)
4518 
4519 The request body is not valid for its `Content-Encoding`.
4520 
4521- `request_body_encoding_unsupported` (HTTP status 400)
4522 
4523 The request's `Content-Encoding` is not supported.
4524 
4525- `thread_already_continued` (HTTP status 400)
4526 
4527 The response that `previous_message_id` names has already been continued, and each response can be continued only once. Continue from the Thread's most recent response `id`.
4528 
4529- `thread_continue_in_flight` (HTTP status 400)
4530 
4531 Another request is still continuing from the same `previous_message_id`. Wait for it to complete and continue from its response `id`, or replay the full conversation with `thread: {"type": "create"}`.
4532 
4533- `thread_fingerprint_mismatch` (HTTP status 400)
4534 
4535 A field that must stay the same across a Thread's turns differs from the value stored with the Thread; the message names each such field. Send the stored values, or replay the full conversation with `thread: {"type": "create"}` to change them.
4536 
4537- `thread_unsupported_request` (HTTP status 400)
4538 
4539 The request combines `thread` with a request field or an organization setting that Threads do not support; `unsupported`, when present, names it. Send the full conversation without `thread`, or change that field.
4540 
4541- `tool_name_conflict` (HTTP status 400)
4542 
4543 A tool made available in `messages` takes a name that an available tool of another kind, or of another MCP server, already holds.
4544 
4545- `tool_reference_unresolved` (HTTP status 400)
4546 
4547 A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
4548 
4549- `thread_not_found` (HTTP status 404)
4550 
4551 No usable Thread state was found for `previous_message_id`. Replay the full conversation with `thread: {"type": "create"}` to start a new Thread.
4552 
4553- `skill_read_blocked_undecryptable` (HTTP status 409)
4554 
4555 A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt.
4556 
4557- `request_body_too_large_after_decoding` (HTTP status 413)
4558 
4559 The compressed request body exceeds the request size limit once decoded.
4560 
4561- `enforced_spend_limit_reached` (HTTP status 429)
4562 
4563 The organization has crossed the monthly API usage threshold of its API tier.
4564 
4565- `ramp_limit_exceeded` (HTTP status 429)
4566 
4567 The request would exceed a ramp limit, which caps how fast usage can grow. Retry after the time in the `retry-after` header.
4568 
4569- `cmek_key_unreachable` (HTTP status 503)
4570 
4571 The workspace's customer-managed encryption key could not be reached. Retry the request; if this continues, check that the key is available in your key management service, or contact Anthropic support.
4572 
4573- `compaction_unavailable` (HTTP status 529)
4574 
4575 The compaction could not be completed for a transient server reason. Retry the request.
4576 
44534577## Example
44544578 
44554579```bash

api/models Changed · +28 / -0 lines

### Errors ### Errors

from line 269
269269 
270270 Last ID in the `data` list. Can be used as the `after_id` for the next page.
271271 
272### Errors
273 
274Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
275 
276Each code below is the value of `error.details.error_code` in the response body.
277 
278- `claude_code_key_creator_not_member` (HTTP status 400)
279 
280 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.
281 
282- `organization_on_hold` (HTTP status 400)
283 
284 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.
285 
272286### Example
273287 
274288```bash
from line 618
604618 RFC 3339 datetime string representing the model's currently scheduled retirement date. The schedule can be revised until retirement occurs; `null` while the model is `active` or while no retirement is scheduled. A past date on a `deprecated` model means retirement is overdue, not that it has occurred: `lifecycle` is the retirement signal.
605619 
606620 format: date-time
621 
622### Errors
623 
624Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
625 
626Each code below is the value of `error.details.error_code` in the response body.
627 
628- `claude_code_key_creator_not_member` (HTTP status 400)
629 
630 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.
631 
632- `organization_on_hold` (HTTP status 400)
633 
634 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.
607635 
608636### Example
609637 

api/models/list Changed · +14 / -0 lines

## Errors

from line 267
267267 
268268 Last ID in the `data` list. Can be used as the `after_id` for the next page.
269269 
270## Errors
271 
272Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
273 
274Each code below is the value of `error.details.error_code` in the response body.
275 
276- `claude_code_key_creator_not_member` (HTTP status 400)
277 
278 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.
279 
280- `organization_on_hold` (HTTP status 400)
281 
282 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.
283 
270284## Example
271285 
272286```bash

api/models/retrieve Changed · +14 / -0 lines

## Errors

from line 231
231231 
232232 format: date-time
233233 
234## Errors
235 
236Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
237 
238Each code below is the value of `error.details.error_code` in the response body.
239 
240- `claude_code_key_creator_not_member` (HTTP status 400)
241 
242 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.
243 
244- `organization_on_hold` (HTTP status 400)
245 
246 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.
247 
234248## Example
235249 
236250```bash

api/organization Changed · +689 / -61 lines

## Errors ### org_member_limit_exceeded ### rbac_role_not_found ### concurrent_membership_change #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors

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

The two sides of this change are more than 400 edits apart, too far apart to line up, so this is the differ's own diff of it and the words inside a line are not marked.

from line 65
6565 
6666- `ConcurrentMembershipChangeErrorDetails object`
6767 
68 - `error_code: "concurrent_membership_change"`
69 
70### Org Member Limit Exceeded Error Details
71 
72- `OrgMemberLimitExceededErrorDetails object`
73 
74 - `error_code: "org_member_limit_exceeded"`
75 
76### Organization Info
77 
78- `OrganizationInfo object`
79 
80 - `type: "organization"`
81 
82 Object type.
83 
84 For Organizations, this is always `"organization"`.
85 
86 default: organization
87 
88 - `id: string`
89 
90 ID of the Organization.
91 
92 format: uuid
93 
94 - `name: string`
95 
96 Name of the Organization.
97 
98### Organization Role
99 
100- `OrganizationRole = "admin" or "billing" or "claude_code_user" or 6 more`
101 
102 - `"admin"`
103 
104 - `"billing"`
105 
106 - `"claude_code_user"`
107 
108 - `"developer"`
109 
110 - `"managed"`
111 
112 - `"membership_admin"`
113 
114 - `"owner"`
115 
116 - `"primary_owner"`
117 
118 - `"user"`
119 
120### RBAC Role Not Found Error Details
121 
122- `RBACRoleNotFoundErrorDetails object`
123 
124 - `error_code: "rbac_role_not_found"`
125 
126## Errors
127 
128### org_member_limit_exceeded
129 
130HTTP status 400
131 
132- `"org_member_limit_exceeded"`
133 
134 The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.
135 
136 - `details: OrgMemberLimitExceededErrorDetails`
137 
138 - `error_code: "org_member_limit_exceeded"`
139 
140### rbac_role_not_found
141 
142HTTP status 404
143 
144- `"rbac_role_not_found"`
145 
146 No RBAC Role with this ID was found.
147 
148 - `details: RBACRoleNotFoundErrorDetails`
149 
150 - `error_code: "rbac_role_not_found"`
151 
152### concurrent_membership_change
153 
154HTTP status 409
155 
156- `"concurrent_membership_change"`
157 
68158 Another change to the organization's members is in progress. Retry the request once it completes.
69159 
70 - `error_code: "concurrent_membership_change"`
71 
72### Org Member Limit Exceeded Error Details
73 
74- `OrgMemberLimitExceededErrorDetails object`
75 
76 The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.
77 
78 - `error_code: "org_member_limit_exceeded"`
79 
80### Organization Info
81 
82- `OrganizationInfo object`
83 
84 - `type: "organization"`
85 
86 Object type.
87 
88 For Organizations, this is always `"organization"`.
89 
90 default: organization
91 
92 - `id: string`
93 
94 ID of the Organization.
95 
96 format: uuid
97 
98 - `name: string`
99 
100 Name of the Organization.
101 
102### Organization Role
103 
104- `OrganizationRole = "admin" or "billing" or "claude_code_user" or 6 more`
105 
106 - `"admin"`
107 
108 - `"billing"`
109 
110 - `"claude_code_user"`
111 
112 - `"developer"`
113 
114 - `"managed"`
115 
116 - `"membership_admin"`
117 
118 - `"owner"`
119 
120 - `"primary_owner"`
121 
122 - `"user"`
123 
124### RBAC Role Not Found Error Details
125 
126- `RBACRoleNotFoundErrorDetails object`
127 
128 No RBAC Role with this ID was found.
129 
130 - `error_code: "rbac_role_not_found"`
160 - `details: ConcurrentMembershipChangeErrorDetails`
161 
162 - `error_code: "concurrent_membership_change"`
131163 
132164## Organization › API Keys
133165 
from line 714
682714 
683715 - `"inactive"`
684716 
717#### Errors
718 
719Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
720 
721Each code below is the value of `error.details.error_code` in the response body.
722 
723- `org_api_key_limit_exceeded` (HTTP status 400)
724 
725 The organization has reached its limit of active API keys.
726 
727- `workspace_api_key_limit_exceeded` (HTTP status 400)
728 
729 The workspace has reached its limit of active API keys.
730 
731- `sandbox_egress_restricted` (HTTP status 403)
732 
733 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
734 
685735#### Example
686736 
687737```bash
from line 959
909959 - `user_profile_id: string or null`
910960 
911961 ID of the user profile the key is bound to, or null if the key is not bound to one. A key bound to a user profile can only be attached to a Workspace that has the same user profile. A key that isn't bound can only be attached to a Workspace that has no user profile.
962 
963#### Errors
964 
965Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
966 
967Each code below is the value of `error.details.error_code` in the response body.
968 
969- `user_profile_not_found` (HTTP status 400)
970 
971 The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
972 
973- `sandbox_egress_restricted` (HTTP status 403)
974 
975 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
912976 
913977#### Example
914978 
from line 1539
14751539 
14761540 ID of the user profile the key is bound to, or null if the key is not bound to one. A key bound to a user profile can only be attached to a Workspace that has the same user profile. A key that isn't bound can only be attached to a Workspace that has no user profile.
14771541 
1542#### Errors
1543 
1544Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1545 
1546Each code below is the value of `error.details.error_code` in the response body.
1547 
1548- `external_key_in_workspace_policy` (HTTP status 400)
1549 
1550 The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.
1551 
1552- `sandbox_egress_restricted` (HTTP status 403)
1553 
1554 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
1555 
14781556#### Example
14791557 
14801558```bash
from line 1620
15421620 
15431621 ID of the deleted External Key.
15441622 
1623#### Errors
1624 
1625Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1626 
1627Each code below is the value of `error.details.error_code` in the response body.
1628 
1629- `external_key_in_workspace_policy` (HTTP status 400)
1630 
1631 The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.
1632 
1633- `sandbox_egress_restricted` (HTTP status 403)
1634 
1635 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
1636 
15451637#### Example
15461638 
15471639```bash
from line 1696
16041696 - `"failure"`
16051697 
16061698 - `"success"`
1699 
1700#### Errors
1701 
1702Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1703 
1704Each code below is the value of `error.details.error_code` in the response body.
1705 
1706- `sandbox_egress_restricted` (HTTP status 403)
1707 
1708 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
16071709 
16081710#### Example
16091711 
from line 1966
18641966 - `updated_by_actor_id: string or null`
18651967 
18661968 Tagged ID (`user_`/`svac_`) of the actor that last updated this issuer.
1969 
1970#### Errors
1971 
1972Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1973 
1974Each code below is the value of `error.details.error_code` in the response body.
1975 
1976- `sandbox_egress_restricted` (HTTP status 403)
1977 
1978 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
18671979 
18681980#### Example
18691981 
from line 2682
25702682 
25712683 Tagged ID (`user_`/`svac_`) of the actor that last updated this issuer.
25722684 
2685#### Errors
2686 
2687Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2688 
2689Each code below is the value of `error.details.error_code` in the response body.
2690 
2691- `sandbox_egress_restricted` (HTTP status 403)
2692 
2693 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
2694 
25732695#### Example
25742696 
25752697```bash
from line 2898
27762898 
27772899 Tagged ID (`user_`/`svac_`) of the actor that last updated this issuer.
27782900 
2901#### Errors
2902 
2903Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2904 
2905Each code below is the value of `error.details.error_code` in the response body.
2906 
2907- `sandbox_egress_restricted` (HTTP status 403)
2908 
2909 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
2910 
27792911#### Example
27802912 
27812913```bash
from line 3193
30613193 - `workspace_ids: array of string`
30623194 
30633195 Tagged IDs of the workspaces this rule is enabled for. May be empty for older rules that only carry the legacy `workspace_id` binding. Ignored at exchange time when `applies_to_all_workspaces` is true (the list may still be non-empty).
3196 
3197#### Errors
3198 
3199Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3200 
3201Each code below is the value of `error.details.error_code` in the response body.
3202 
3203- `sandbox_egress_restricted` (HTTP status 403)
3204 
3205 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
30643206 
30653207#### Example
30663208 
from line 3941
37993941 
38003942 Tagged IDs of the workspaces this rule is enabled for. May be empty for older rules that only carry the legacy `workspace_id` binding. Ignored at exchange time when `applies_to_all_workspaces` is true (the list may still be non-empty).
38013943 
3944#### Errors
3945 
3946Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3947 
3948Each code below is the value of `error.details.error_code` in the response body.
3949 
3950- `sandbox_egress_restricted` (HTTP status 403)
3951 
3952 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
3953 
38023954#### Example
38033955 
38043956```bash
from line 4166
40144166 
40154167 Tagged IDs of the workspaces this rule is enabled for. May be empty for older rules that only carry the legacy `workspace_id` binding. Ignored at exchange time when `applies_to_all_workspaces` is true (the list may still be non-empty).
40164168 
4169#### Errors
4170 
4171Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
4172 
4173Each code below is the value of `error.details.error_code` in the response body.
4174 
4175- `sandbox_egress_restricted` (HTTP status 403)
4176 
4177 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
4178 
40174179#### Example
40184180 
40194181```bash
from line 4296
41344296 
41354297 Workspace display name. Populated when listing; null in the enable response.
41364298 
4299#### Errors
4300 
4301Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
4302 
4303Each code below is the value of `error.details.error_code` in the response body.
4304 
4305- `sandbox_egress_restricted` (HTTP status 403)
4306 
4307 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
4308 
41374309#### Example
41384310 
41394311```bash
from line 4476
43044476 
43054477 Tagged ID of the workspace named in the delete request. Removal is idempotent.
43064478 
4479#### Errors
4480 
4481Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
4482 
4483Each code below is the value of `error.details.error_code` in the response body.
4484 
4485- `sandbox_egress_restricted` (HTTP status 403)
4486 
4487 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
4488 
43074489#### Example
43084490 
43094491```bash
from line 4628
44464628 - `"expired"`
44474629 
44484630 - `"pending"`
4631 
4632#### Errors
4633 
4634Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
4635 
4636Each code below is the value of `error.details.error_code` in the response body.
4637 
4638- `already_member` (HTTP status 400)
4639 
4640 The email address already belongs to a user in the organization. The message names the user.
4641 
4642- `cannot_invite_emails_with_unverified_domains` (HTTP status 400)
4643 
4644 The email address's domain is not one of the verified domains of the organization's parent organization.
4645 
4646- `email_domain_not_allowed` (HTTP status 400)
4647 
4648 The organization restricts invites to an allowed list of email domains, and the list is empty or does not include the email address's domain.
4649 
4650- `invite_already_exists` (HTTP status 400)
4651 
4652 A pending invite already exists for the email address. The message names the invite.
4653 
4654- `org_member_limit_exceeded` (HTTP status 400)
4655 
4656 The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.
4657 
4658- `rbac_group_grants_owner_access` (HTTP status 400)
4659 
4660 A role attached to an RBAC Group in the request grants owner access, so this API does not add members to that group (directly or through an invite), remove its members, or delete it. Make the change in the organization's admin settings in Claude.
4661 
4662- `rbac_group_owner_access_unconfirmed` (HTTP status 400)
4663 
4664 The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. Retrying the same request will not help. Make the change in the organization's admin settings in Claude.
4665 
4666- `sandbox_egress_restricted` (HTTP status 403)
4667 
4668 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
44494669 
44504670#### Example
44514671 
from line 5029
48095029 
48105030 ID of the Invite.
48115031 
5032#### Errors
5033 
5034Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
5035 
5036Each code below is the value of `error.details.error_code` in the response body.
5037 
5038- `sandbox_egress_restricted` (HTTP status 403)
5039 
5040 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
5041 
48125042#### Example
48135043 
48145044```bash
from line 5167
49375167 - `updated_by_actor_id: string or null`
49385168 
49395169 Tagged ID (`user_`/`svac_`) of the actor that last updated this service account.
5170 
5171#### Errors
5172 
5173Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
5174 
5175Each code below is the value of `error.details.error_code` in the response body.
5176 
5177- `sandbox_egress_restricted` (HTTP status 403)
5178 
5179 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
49405180 
49415181#### Example
49425182 
from line 5556
53165556 
53175557 Tagged ID (`user_`/`svac_`) of the actor that last updated this service account.
53185558 
5559#### Errors
5560 
5561Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
5562 
5563Each code below is the value of `error.details.error_code` in the response body.
5564 
5565- `sandbox_egress_restricted` (HTTP status 403)
5566 
5567 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
5568 
53195569#### Example
53205570 
53215571```bash
from line 5684
54345684 
54355685 Tagged ID (`user_`/`svac_`) of the actor that last updated this service account.
54365686 
5687#### Errors
5688 
5689Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
5690 
5691Each code below is the value of `error.details.error_code` in the response body.
5692 
5693- `sandbox_egress_restricted` (HTTP status 403)
5694 
5695 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
5696 
54375697#### Example
54385698 
54395699```bash
from line 5808
55485808 
55495809 - `"workspace_user"`
55505810 
5811#### Errors
5812 
5813Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
5814 
5815Each code below is the value of `error.details.error_code` in the response body.
5816 
5817- `sandbox_egress_restricted` (HTTP status 403)
5818 
5819 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
5820 
55515821#### Example
55525822 
55535823```bash
from line 6007
57376007- `workspace_id: string`
57386008 
57396009 Tagged workspace ID (`wrkspc_...`) named in the delete request.
6010 
6011#### Errors
6012 
6013Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
6014 
6015Each code below is the value of `error.details.error_code` in the response body.
6016 
6017- `sandbox_egress_restricted` (HTTP status 403)
6018 
6019 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
57406020 
57416021#### Example
57426022 
from line 6358
60786358 
60796359 - `"user"`
60806360 
6361#### Errors
6362 
6363Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
6364 
6365Each code below is the value of `error.details.error_code` in the response body.
6366 
6367- `sandbox_egress_restricted` (HTTP status 403)
6368 
6369 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
6370 
60816371#### Example
60826372 
60836373```bash
from line 6426
61366426- `id: string`
61376427 
61386428 ID of the User.
6429 
6430#### Errors
6431 
6432Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
6433 
6434Each code below is the value of `error.details.error_code` in the response body.
6435 
6436- `cannot_remove_last_member` (HTTP status 400)
6437 
6438 The user is the organization's only member. Add another member before removing this one.
6439 
6440- `sandbox_egress_restricted` (HTTP status 403)
6441 
6442 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
6443 
6444- `concurrent_membership_change` (HTTP status 409)
6445 
6446 Another change to the organization's members is in progress. Retry the request once it completes.
61396447 
61406448#### Example
61416449 
from line 6843
65356843 
65366844 ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.
65376845 
6846#### Errors
6847 
6848Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
6849 
6850Each code below is the value of `error.details.error_code` in the response body.
6851 
6852- `external_key_validation_failed` (HTTP status 400)
6853 
6854 The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
6855 
6856- `external_key_validation_timed_out` (HTTP status 400)
6857 
6858 Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
6859 
6860- `key_profile_mismatch` (HTTP status 400)
6861 
6862 After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
6863 
6864- `user_profile_not_found` (HTTP status 400)
6865 
6866 The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
6867 
6868- `workspace_policy_violation` (HTTP status 400)
6869 
6870 The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
6871 
6872- `sandbox_egress_restricted` (HTTP status 403)
6873 
6874 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
6875 
6876- `external_key_changed` (HTTP status 409)
6877 
6878 The external key changed while the request was validating it. Send the request again.
6879 
65386880#### Example
65396881 
65406882```bash
from line 7252
69107252 
69117253 ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.
69127254 
7255#### Errors
7256 
7257Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
7258 
7259Each code below is the value of `error.details.error_code` in the response body.
7260 
7261- `external_key_validation_failed` (HTTP status 400)
7262 
7263 The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
7264 
7265- `external_key_validation_timed_out` (HTTP status 400)
7266 
7267 Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
7268 
7269- `key_profile_mismatch` (HTTP status 400)
7270 
7271 After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
7272 
7273- `user_profile_not_found` (HTTP status 400)
7274 
7275 The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
7276 
7277- `workspace_policy_violation` (HTTP status 400)
7278 
7279 The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
7280 
7281- `sandbox_egress_restricted` (HTTP status 403)
7282 
7283 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
7284 
7285- `external_key_changed` (HTTP status 409)
7286 
7287 The external key changed while the request was validating it. Send the request again.
7288 
69137289#### Example
69147290 
69157291```bash
from line 7447
70717447 - `user_profile_id: string or null`
70727448 
70737449 ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.
7450 
7451#### Errors
7452 
7453Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
7454 
7455Each code below is the value of `error.details.error_code` in the response body.
7456 
7457- `sandbox_egress_restricted` (HTTP status 403)
7458 
7459 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
70747460 
70757461#### Example
70767462 
from line 7953
75677953 
75687954 ID of the Workspace this entry applies to.
75697955 
7956#### Errors
7957 
7958Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
7959 
7960Each code below is the value of `error.details.error_code` in the response body.
7961 
7962- `sandbox_egress_restricted` (HTTP status 403)
7963 
7964 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
7965 
75707966#### Example
75717967 
75727968```bash
from line 8192
77968192 
77978193 - `"workspace_user"`
77988194 
8195#### Errors
8196 
8197Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
8198 
8199Each code below is the value of `error.details.error_code` in the response body.
8200 
8201- `workspace_member_limit_exceeded` (HTTP status 400)
8202 
8203 The workspace has reached the member limit that Anthropic set for it.
8204 
8205- `sandbox_egress_restricted` (HTTP status 403)
8206 
8207 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
8208 
77998209#### Example
78008210 
78018211```bash
from line 8381
79718381 
79728382 - `"workspace_user"`
79738383 
8384#### Errors
8385 
8386Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
8387 
8388Each code below is the value of `error.details.error_code` in the response body.
8389 
8390- `workspace_member_limit_exceeded` (HTTP status 400)
8391 
8392 The workspace has reached the member limit that Anthropic set for it.
8393 
8394- `sandbox_egress_restricted` (HTTP status 403)
8395 
8396 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
8397 
79748398#### Example
79758399 
79768400```bash
from line 8459
80358459- `workspace_id: string`
80368460 
80378461 ID of the Workspace.
8462 
8463#### Errors
8464 
8465Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
8466 
8467Each code below is the value of `error.details.error_code` in the response body.
8468 
8469- `sandbox_egress_restricted` (HTTP status 403)
8470 
8471 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
80388472 
80398473#### Example
80408474 
from line 8687
82538687 
82548688 - `"workspace_user"`
82558689 
8690#### Errors
8691 
8692Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
8693 
8694Each code below is the value of `error.details.error_code` in the response body.
8695 
8696- `sandbox_egress_restricted` (HTTP status 403)
8697 
8698 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
8699 
82568700#### Example
82578701 
82588702```bash
from line 8900
84568900 
84578901 - `"workspace_user"`
84588902 
8903#### Errors
8904 
8905Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
8906 
8907Each code below is the value of `error.details.error_code` in the response body.
8908 
8909- `sandbox_egress_restricted` (HTTP status 403)
8910 
8911 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
8912 
84598913#### Example
84608914 
84618915```bash
from line 8980
85268980- `workspace_id: string`
85278981 
85288982 Tagged workspace ID (`wrkspc_...`) named in the delete request.
8983 
8984#### Errors
8985 
8986Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
8987 
8988Each code below is the value of `error.details.error_code` in the response body.
8989 
8990- `sandbox_egress_restricted` (HTTP status 403)
8991 
8992 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
85298993 
85308994#### Example
85318995 
from line 9351
88879351 - `type: "disabled"`
88889352 
88899353 default: disabled
9354 
9355#### Errors
9356 
9357Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
9358 
9359Each code below is the value of `error.details.error_code` in the response body.
9360 
9361- `sandbox_egress_restricted` (HTTP status 403)
9362 
9363 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
88909364 
88919365#### Example
88929366 
from line 11658
1118411658 
1118511659- `next_page: string or null`
1118611660 
11661#### Errors
11662 
11663Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
11664 
11665Each code below is the value of `error.details.error_code` in the response body.
11666 
11667- `organization_type_not_supported` (HTTP status 400)
11668 
11669 The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
11670 
1118711671#### Example
1118811672 
1118911673```bash
from line 12681
1219712681 - `"denied"`
1219812682 
1219912683 - `"pending"`
12684 
12685#### Errors
12686 
12687Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
12688 
12689Each code below is the value of `error.details.error_code` in the response body.
12690 
12691- `sandbox_egress_restricted` (HTTP status 403)
12692 
12693 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
1220012694 
1220112695#### Example
1220212696 
from line 13021
1252713021 
1252813022 - `"pending"`
1252913023 
13024#### Errors
13025 
13026Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
13027 
13028Each code below is the value of `error.details.error_code` in the response body.
13029 
13030- `sandbox_egress_restricted` (HTTP status 403)
13031 
13032 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
13033 
1253013034#### Example
1253113035 
1253213036```bash
from line 13160
1265613160 
1265713161 format: date-time
1265813162 
13163#### Errors
13164 
13165Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
13166 
13167Each code below is the value of `error.details.error_code` in the response body.
13168 
13169- `sandbox_egress_restricted` (HTTP status 403)
13170 
13171 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
13172 
1265913173#### Example
1266013174 
1266113175```bash
from line 13474
1296013474 
1296113475 format: date-time
1296213476 
13477#### Errors
13478 
13479Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
13480 
13481Each code below is the value of `error.details.error_code` in the response body.
13482 
13483- `sandbox_egress_restricted` (HTTP status 403)
13484 
13485 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
13486 
1296313487#### Example
1296413488 
1296513489```bash
from line 13549
1302513549 - `id: string`
1302613550 
1302713551 ID of the RBAC Group.
13552 
13553#### Errors
13554 
13555Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
13556 
13557Each code below is the value of `error.details.error_code` in the response body.
13558 
13559- `rbac_group_grants_owner_access` (HTTP status 400)
13560 
13561 A role attached to an RBAC Group in the request grants owner access, so this API does not add members to that group (directly or through an invite), remove its members, or delete it. Make the change in the organization's admin settings in Claude.
13562 
13563- `rbac_group_owner_access_unconfirmed` (HTTP status 400)
13564 
13565 The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. Retrying the same request will not help. Make the change in the organization's admin settings in Claude.
13566 
13567- `sandbox_egress_restricted` (HTTP status 403)
13568 
13569 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
1302813570 
1302913571#### Example
1303013572 
from line 13746
1320413746 
1320513747 ID of the User.
1320613748 
13749#### Errors
13750 
13751Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
13752 
13753Each code below is the value of `error.details.error_code` in the response body.
13754 
13755- `rbac_group_grants_owner_access` (HTTP status 400)
13756 
13757 A role attached to an RBAC Group in the request grants owner access, so this API does not add members to that group (directly or through an invite), remove its members, or delete it. Make the change in the organization's admin settings in Claude.
13758 
13759- `rbac_group_owner_access_unconfirmed` (HTTP status 400)
13760 
13761 The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. Retrying the same request will not help. Make the change in the organization's admin settings in Claude.
13762 
13763- `sandbox_egress_restricted` (HTTP status 403)
13764 
13765 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
13766 
1320713767#### Example
1320813768 
1320913769```bash
from line 13832
1327213832 
1327313833 ID of the User.
1327413834 
13835#### Errors
13836 
13837Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
13838 
13839Each code below is the value of `error.details.error_code` in the response body.
13840 
13841- `rbac_group_grants_owner_access` (HTTP status 400)
13842 
13843 A role attached to an RBAC Group in the request grants owner access, so this API does not add members to that group (directly or through an invite), remove its members, or delete it. Make the change in the organization's admin settings in Claude.
13844 
13845- `rbac_group_owner_access_unconfirmed` (HTTP status 400)
13846 
13847 The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. Retrying the same request will not help. Make the change in the organization's admin settings in Claude.
13848 
13849- `sandbox_egress_restricted` (HTTP status 403)
13850 
13851 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
13852 
1327513853#### Example
1327613854 
1327713855```bash
from line 13961
1338313961 
1338413962 Opaque cursor for the next page. Pass as the `page` parameter on the next
1338513963 request.
13964 
13965#### Errors
13966 
13967Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
13968 
13969Each code below is the value of `error.details.error_code` in the response body.
13970 
13971- `organization_type_not_supported` (HTTP status 400)
13972 
13973 The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
13974 
13975- `parent_organization_required` (HTTP status 400)
13976 
13977 The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
1338613978 
1338713979#### Example
1338813980 
from line 14079
1348714079 
1348814080 format: date-time
1348914081 
14082#### Errors
14083 
14084Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
14085 
14086Each code below is the value of `error.details.error_code` in the response body.
14087 
14088- `organization_type_not_supported` (HTTP status 400)
14089 
14090 The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
14091 
14092- `parent_organization_required` (HTTP status 400)
14093 
14094 The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
14095 
14096- `rbac_role_not_found` (HTTP status 404)
14097 
14098 No RBAC Role with this ID was found.
14099 
1349014100#### Example
1349114101 
1349214102```bash
from line 14281
1367114281 Opaque cursor for the next page. Pass as the `page` parameter on the next
1367214282 request.
1367314283 
14284#### Errors
14285 
14286Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
14287 
14288Each code below is the value of `error.details.error_code` in the response body.
14289 
14290- `organization_type_not_supported` (HTTP status 400)
14291 
14292 The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
14293 
14294- `parent_organization_required` (HTTP status 400)
14295 
14296 The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
14297 
14298- `rbac_role_not_found` (HTTP status 404)
14299 
14300 No RBAC Role with this ID was found.
14301 
1367414302#### Example
1367514303 
1367614304```bash
1367714305 

api/organization/api_keys Changed · +46 / -6 lines

### Errors ## Errors ### org_api_key_limit_exceeded ### workspace_api_key_limit_exceeded

from line 556
556556 
557557 - `"inactive"`
558558 
559### Errors
560 
561Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
562 
563Each code below is the value of `error.details.error_code` in the response body.
564 
565- `org_api_key_limit_exceeded` (HTTP status 400)
566 
567 The organization has reached its limit of active API keys.
568 
569- `workspace_api_key_limit_exceeded` (HTTP status 400)
570 
571 The workspace has reached its limit of active API keys.
572 
573- `sandbox_egress_restricted` (HTTP status 403)
574 
575 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
576 
559577### Example
560578 
561579```bash
from line 802
784802 
785803- `OrgAPIKeyLimitExceededErrorDetails object`
786804 
787 The organization has reached its limit of active API keys.
788 
789805 - `error_code: "org_api_key_limit_exceeded"`
790806 
791807### Workspace API Key Limit Exceeded Error Details
from line 808
792808 
793809- `WorkspaceAPIKeyLimitExceededErrorDetails object`
794810 
811 - `error_code: "workspace_api_key_limit_exceeded"`
812 
813## Errors
814 
815### org_api_key_limit_exceeded
816 
817HTTP status 400
818 
819- `"org_api_key_limit_exceeded"`
820 
821 The organization has reached its limit of active API keys.
822 
823 - `details: OrgAPIKeyLimitExceededErrorDetails`
824 
825 - `error_code: "org_api_key_limit_exceeded"`
826 
827### workspace_api_key_limit_exceeded
828 
829HTTP status 400
830 
831- `"workspace_api_key_limit_exceeded"`
832 
795833 The workspace has reached its limit of active API keys.
796834 
797 - `error_code: "workspace_api_key_limit_exceeded"`
835 - `details: WorkspaceAPIKeyLimitExceededErrorDetails`
836 
837 - `error_code: "workspace_api_key_limit_exceeded"`
798838 
Feedback