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-20261120T193709Z

650 pages moved out of 936 read.

Pages moved 650 significant first
Pages read 936 in this capture
Captured 19:37 UTC
Corpus hash 721918d8c137 corpus-hash

What this read moved

151-175 of 650, page 7 of 26

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

api/claude-models-on-google-cloud-anthropic-managed-iam-permissions Changed · +104 / -104 lines

from line 10
1010 
1111The following table describes the Google Cloud service for Claude Models on Google Cloud (Anthropic managed).
1212 
13| Attribute | Value |
14| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
15| **Service** | `claude.googleapis.com` |
16| **Where permissions are checked** | A workspace or the Anthropic organization |
17| **Audit log types** | Data Access, Admin Activity<br />To turn on Data Access logs, see [Monitoring and logging](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#monitoring-and-logging). |
13| Attribute | Value |
14| ----- | ----- |
15| **Service** | `claude.googleapis.com` |
16| **Where permissions are checked** | A workspace or the Anthropic organization |
17| **Audit log types** | Data Access, Admin Activity<br />To turn on Data Access logs, see [Monitoring and logging](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#monitoring-and-logging). |
1818 
1919Grant roles on the Google Cloud project. For how projects, organizations, and workspaces relate, see [Workspaces](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#workspaces).
2020 
from line 24
2424 
2525The following table lists the predefined roles for Claude Models on Google Cloud (Anthropic managed).
2626 
27| Role | Display name | Permissions |
28| --------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
29| `roles/claude.viewer` | Claude Viewer | Every `get` and `list` permission on workspace resources. |
30| `roles/claude.user` | Claude User | Everything in `roles/claude.viewer`, plus every other permission on workspace resources.<br />For example, `messages.create`, `messages.countTokens`, and `environments.processWork`. |
31| `roles/claude.admin` | Claude Admin | Everything in `roles/claude.user`, plus the permissions checked on your Anthropic organization.<br />For example, `externalKeys.*` and `usageAnalytics.list`. |
27| Role | Display name | Permissions |
28| ----- | ----- | ----- |
29| `roles/claude.viewer` | Claude Viewer | Every `get` and `list` permission on workspace resources. |
30| `roles/claude.user` | Claude User | Everything in `roles/claude.viewer`, plus every other permission on workspace resources.<br />For example, `messages.create`, `messages.countTokens`, and `environments.processWork`. |
31| `roles/claude.admin` | Claude Admin | Everything in `roles/claude.user`, plus the permissions checked on your Anthropic organization.<br />For example, `externalKeys.*` and `usageAnalytics.list`. |
3232 
3333In the following tables, **Admin**, **User**, and **Viewer** stand for these three roles.
3434 
from line 46
4646 
4747### Messages
4848 
49| Permission | Roles | Routes authorized |
50| ---------------------- | ----------- | -------------------------------- |
51| `messages.create` | Admin, User | `POST /v1/messages` |
49| Permission | Roles | Routes authorized |
50| ----- | ----- | ----- |
51| `messages.create` | Admin, User | `POST /v1/messages` |
5252| `messages.countTokens` | Admin, User | `POST /v1/messages/count_tokens` |
5353 
5454### Message batches
5555 
56| Permission | Roles | Routes authorized |
57| ----------------------- | ------------------- | -------------------------------------------------------------------------------------------------------- |
58| `messageBatches.create` | Admin, User | `POST /v1/messages/batches` |
59| `messageBatches.get` | Admin, User, Viewer | `GET /v1/messages/batches/{message_batch_id}`<br />`GET /v1/messages/batches/{message_batch_id}/results` |
60| `messageBatches.list` | Admin, User, Viewer | `GET /v1/messages/batches` |
61| `messageBatches.delete` | Admin, User | `DELETE /v1/messages/batches/{message_batch_id}` |
62| `messageBatches.cancel` | Admin, User | `POST /v1/messages/batches/{message_batch_id}/cancel` |
56| Permission | Roles | Routes authorized |
57| ----- | ----- | ----- |
58| `messageBatches.create` | Admin, User | `POST /v1/messages/batches` |
59| `messageBatches.get` | Admin, User, Viewer | `GET /v1/messages/batches/{message_batch_id}`<br />`GET /v1/messages/batches/{message_batch_id}/results` |
60| `messageBatches.list` | Admin, User, Viewer | `GET /v1/messages/batches` |
61| `messageBatches.delete` | Admin, User | `DELETE /v1/messages/batches/{message_batch_id}` |
62| `messageBatches.cancel` | Admin, User | `POST /v1/messages/batches/{message_batch_id}/cancel` |
6363 
6464`roles/claude.viewer` can read batch results. `messageBatches.get` authorizes both reading a batch’s metadata and downloading its results.
6565 
6666### Models
6767 
68| Permission | Roles | Routes authorized |
69| ------------- | ------------------- | --------------------------- |
70| `models.get` | Admin, User, Viewer | `GET /v1/models/{model_id}` |
71| `models.list` | Admin, User, Viewer | `GET /v1/models` |
68| Permission | Roles | Routes authorized |
69| ----- | ----- | ----- |
70| `models.get` | Admin, User, Viewer | `GET /v1/models/{model_id}` |
71| `models.list` | Admin, User, Viewer | `GET /v1/models` |
7272 
7373### Files
7474 
75| Permission | Roles | Routes authorized |
76| -------------- | ------------------- | ---------------------------------------------------------------- |
77| `files.create` | Admin, User | `POST /v1/files` |
78| `files.get` | Admin, User, Viewer | `GET /v1/files/{file_id}`<br />`GET /v1/files/{file_id}/content` |
79| `files.list` | Admin, User, Viewer | `GET /v1/files` |
80| `files.delete` | Admin, User | `DELETE /v1/files/{file_id}` |
75| Permission | Roles | Routes authorized |
76| ----- | ----- | ----- |
77| `files.create` | Admin, User | `POST /v1/files` |
78| `files.get` | Admin, User, Viewer | `GET /v1/files/{file_id}`<br />`GET /v1/files/{file_id}/content` |
79| `files.list` | Admin, User, Viewer | `GET /v1/files` |
80| `files.delete` | Admin, User | `DELETE /v1/files/{file_id}` |
8181 
8282`roles/claude.viewer` can download files. `files.get` authorizes both reading a file’s metadata and downloading its content.
8383 
8484### Skills
8585 
86| Permission | Roles | Routes authorized |
87| --------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88| `skills.create` | Admin, User | `POST /v1/skills` |
89| `skills.get` | Admin, User, Viewer | `GET /v1/skills/{skill_id}`<br />`GET /v1/skills/{skill_id}/versions`<br />`GET /v1/skills/{skill_id}/versions/{version}`<br />`GET /v1/skills/{skill_id}/versions/{version}/content` |
90| `skills.list` | Admin, User, Viewer | `GET /v1/skills` |
91| `skills.update` | Admin, User | `POST /v1/skills/{skill_id}/versions`<br />`DELETE /v1/skills/{skill_id}/versions/{version}` |
92| `skills.delete` | Admin, User | `DELETE /v1/skills/{skill_id}` |
86| Permission | Roles | Routes authorized |
87| ----- | ----- | ----- |
88| `skills.create` | Admin, User | `POST /v1/skills` |
89| `skills.get` | Admin, User, Viewer | `GET /v1/skills/{skill_id}`<br />`GET /v1/skills/{skill_id}/versions`<br />`GET /v1/skills/{skill_id}/versions/{version}`<br />`GET /v1/skills/{skill_id}/versions/{version}/content` |
90| `skills.list` | Admin, User, Viewer | `GET /v1/skills` |
91| `skills.update` | Admin, User | `POST /v1/skills/{skill_id}/versions`<br />`DELETE /v1/skills/{skill_id}/versions/{version}` |
92| `skills.delete` | Admin, User | `DELETE /v1/skills/{skill_id}` |
9393 
9494Creating or deleting a skill version needs `skills.update`, not `skills.create` or `skills.delete`.
9595 
9696### Agents
9797 
98| Permission | Roles | Routes authorized |
99| ---------------- | ------------------- | --------------------------------------------------------------------- |
100| `agents.create` | Admin, User | `POST /v1/agents` |
101| `agents.get` | Admin, User, Viewer | `GET /v1/agents/{agent_id}`<br />`GET /v1/agents/{agent_id}/versions` |
102| `agents.list` | Admin, User, Viewer | `GET /v1/agents` |
103| `agents.update` | Admin, User | `POST /v1/agents/{agent_id}` |
104| `agents.archive` | Admin, User | `POST /v1/agents/{agent_id}/archive` |
98| Permission | Roles | Routes authorized |
99| ----- | ----- | ----- |
100| `agents.create` | Admin, User | `POST /v1/agents` |
101| `agents.get` | Admin, User, Viewer | `GET /v1/agents/{agent_id}`<br />`GET /v1/agents/{agent_id}/versions` |
102| `agents.list` | Admin, User, Viewer | `GET /v1/agents` |
103| `agents.update` | Admin, User | `POST /v1/agents/{agent_id}` |
104| `agents.archive` | Admin, User | `POST /v1/agents/{agent_id}/archive` |
105105 
106106You can archive an agent but not delete it.
107107 
108108### Sessions
109109 
110| Permission | Roles | Routes authorized |
111| ------------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
112| `sessions.create` | Admin, User | `POST /v1/sessions` |
113| `sessions.get` | Admin, User, Viewer | `GET /v1/sessions/{session_id}`<br />`GET /v1/sessions/{session_id}/events`<br />`GET /v1/sessions/{session_id}/events/stream`<br />`GET /v1/sessions/{session_id}/resources`<br />`GET /v1/sessions/{session_id}/resources/{resource_id}`<br />`GET /v1/sessions/{session_id}/threads`<br />`GET /v1/sessions/{session_id}/threads/{thread_id}`<br />`GET /v1/sessions/{session_id}/threads/{thread_id}/events`<br />`GET /v1/sessions/{session_id}/threads/{thread_id}/stream` |
114| `sessions.list` | Admin, User, Viewer | `GET /v1/sessions` |
115| `sessions.update` | Admin, User | `POST /v1/sessions/{session_id}`<br />`POST /v1/sessions/{session_id}/events`<br />`POST /v1/sessions/{session_id}/resources`<br />`POST /v1/sessions/{session_id}/resources/{resource_id}`<br />`DELETE /v1/sessions/{session_id}/resources/{resource_id}` |
116| `sessions.archive` | Admin, User | `POST /v1/sessions/{session_id}/archive`<br />`POST /v1/sessions/{session_id}/threads/{thread_id}/archive` |
117| `sessions.delete` | Admin, User | `DELETE /v1/sessions/{session_id}` |
110| Permission | Roles | Routes authorized |
111| ----- | ----- | ----- |
112| `sessions.create` | Admin, User | `POST /v1/sessions` |
113| `sessions.get` | Admin, User, Viewer | `GET /v1/sessions/{session_id}`<br />`GET /v1/sessions/{session_id}/events`<br />`GET /v1/sessions/{session_id}/events/stream`<br />`GET /v1/sessions/{session_id}/resources`<br />`GET /v1/sessions/{session_id}/resources/{resource_id}`<br />`GET /v1/sessions/{session_id}/threads`<br />`GET /v1/sessions/{session_id}/threads/{thread_id}`<br />`GET /v1/sessions/{session_id}/threads/{thread_id}/events`<br />`GET /v1/sessions/{session_id}/threads/{thread_id}/stream` |
114| `sessions.list` | Admin, User, Viewer | `GET /v1/sessions` |
115| `sessions.update` | Admin, User | `POST /v1/sessions/{session_id}`<br />`POST /v1/sessions/{session_id}/events`<br />`POST /v1/sessions/{session_id}/resources`<br />`POST /v1/sessions/{session_id}/resources/{resource_id}`<br />`DELETE /v1/sessions/{session_id}/resources/{resource_id}` |
116| `sessions.archive` | Admin, User | `POST /v1/sessions/{session_id}/archive`<br />`POST /v1/sessions/{session_id}/threads/{thread_id}/archive` |
117| `sessions.delete` | Admin, User | `DELETE /v1/sessions/{session_id}` |
118118 
119119`sessions.get` authorizes reading the session, its event history and event stream, its resources, and its threads. As a result, `roles/claude.viewer` can read every session’s full event history.
120120 
from line 126
126126 
127127### Environments
128128 
129| Permission | Roles | Routes authorized |
130| -------------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
131| `environments.create` | Admin, User | `POST /v1/environments` |
132| `environments.get` | Admin, User, Viewer | `GET /v1/environments/{environment_id}`<br />`GET /v1/environments/{environment_id}/work`<br />`GET /v1/environments/{environment_id}/work/stats`<br />`GET /v1/environments/{environment_id}/work/{work_id}` |
133| `environments.list` | Admin, User, Viewer | `GET /v1/environments` |
134| `environments.update` | Admin, User | `POST /v1/environments/{environment_id}` |
135| `environments.archive` | Admin, User | `POST /v1/environments/{environment_id}/archive` |
136| `environments.delete` | Admin, User | `DELETE /v1/environments/{environment_id}` |
137| `environments.processWork` | Admin, User | `GET /v1/environments/{environment_id}/work/poll`<br />`POST /v1/environments/{environment_id}/work/{work_id}`<br />`POST /v1/environments/{environment_id}/work/{work_id}/ack`<br />`POST /v1/environments/{environment_id}/work/{work_id}/heartbeat`<br />`POST /v1/environments/{environment_id}/work/{work_id}/stop` |
129| Permission | Roles | Routes authorized |
130| ----- | ----- | ----- |
131| `environments.create` | Admin, User | `POST /v1/environments` |
132| `environments.get` | Admin, User, Viewer | `GET /v1/environments/{environment_id}`<br />`GET /v1/environments/{environment_id}/work`<br />`GET /v1/environments/{environment_id}/work/stats`<br />`GET /v1/environments/{environment_id}/work/{work_id}` |
133| `environments.list` | Admin, User, Viewer | `GET /v1/environments` |
134| `environments.update` | Admin, User | `POST /v1/environments/{environment_id}` |
135| `environments.archive` | Admin, User | `POST /v1/environments/{environment_id}/archive` |
136| `environments.delete` | Admin, User | `DELETE /v1/environments/{environment_id}` |
137| `environments.processWork` | Admin, User | `GET /v1/environments/{environment_id}/work/poll`<br />`POST /v1/environments/{environment_id}/work/{work_id}`<br />`POST /v1/environments/{environment_id}/work/{work_id}/ack`<br />`POST /v1/environments/{environment_id}/work/{work_id}/heartbeat`<br />`POST /v1/environments/{environment_id}/work/{work_id}/stop` |
138138 
139139`roles/claude.user` and `roles/claude.admin` include every permission that a [self-hosted sandbox](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes) worker needs. `environments.processWork` authorizes these worker actions:
140140 
from line 150
150150 
151151### Vaults
152152 
153| Permission | Roles | Routes authorized |
154| ---------------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
155| `vaults.create` | Admin, User | `POST /v1/vaults` |
156| `vaults.get` | Admin, User, Viewer | `GET /v1/vaults/{vault_id}`<br />`GET /v1/vaults/{vault_id}/credentials`<br />`GET /v1/vaults/{vault_id}/credentials/{credential_id}` |
157| `vaults.list` | Admin, User, Viewer | `GET /v1/vaults` |
158| `vaults.update` | Admin, User | `POST /v1/vaults/{vault_id}`<br />`POST /v1/vaults/{vault_id}/credentials`<br />`POST /v1/vaults/{vault_id}/credentials/{credential_id}`<br />`DELETE /v1/vaults/{vault_id}/credentials/{credential_id}` |
159| `vaults.archive` | Admin, User | `POST /v1/vaults/{vault_id}/archive`<br />`POST /v1/vaults/{vault_id}/credentials/{credential_id}/archive` |
160| `vaults.delete` | Admin, User | `DELETE /v1/vaults/{vault_id}` |
161| `vaults.verify` | Admin, User | `POST /v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate` |
153| Permission | Roles | Routes authorized |
154| ----- | ----- | ----- |
155| `vaults.create` | Admin, User | `POST /v1/vaults` |
156| `vaults.get` | Admin, User, Viewer | `GET /v1/vaults/{vault_id}`<br />`GET /v1/vaults/{vault_id}/credentials`<br />`GET /v1/vaults/{vault_id}/credentials/{credential_id}` |
157| `vaults.list` | Admin, User, Viewer | `GET /v1/vaults` |
158| `vaults.update` | Admin, User | `POST /v1/vaults/{vault_id}`<br />`POST /v1/vaults/{vault_id}/credentials`<br />`POST /v1/vaults/{vault_id}/credentials/{credential_id}`<br />`DELETE /v1/vaults/{vault_id}/credentials/{credential_id}` |
159| `vaults.archive` | Admin, User | `POST /v1/vaults/{vault_id}/archive`<br />`POST /v1/vaults/{vault_id}/credentials/{credential_id}/archive` |
160| `vaults.delete` | Admin, User | `DELETE /v1/vaults/{vault_id}` |
161| `vaults.verify` | Admin, User | `POST /v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate` |
162162 
163163Credential operations need the following permissions:
164164 
from line 171
171171 
172172### Memory stores
173173 
174| Permission | Roles | Routes authorized |
175| ---------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
176| `memoryStores.create` | Admin, User | `POST /v1/memory_stores` |
177| `memoryStores.get` | Admin, User, Viewer | `GET /v1/memory_stores/{memory_store_id}`<br />`GET /v1/memory_stores/{memory_store_id}/memories`<br />`GET /v1/memory_stores/{memory_store_id}/memories/{memory_id}`<br />`GET /v1/memory_stores/{memory_store_id}/memory_versions`<br />`GET /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}` |
178| `memoryStores.list` | Admin, User, Viewer | `GET /v1/memory_stores` |
179| `memoryStores.update` | Admin, User | `POST /v1/memory_stores/{memory_store_id}`<br />`POST /v1/memory_stores/{memory_store_id}/memories`<br />`POST /v1/memory_stores/{memory_store_id}/memories/{memory_id}`<br />`DELETE /v1/memory_stores/{memory_store_id}/memories/{memory_id}`<br />`POST /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact` |
180| `memoryStores.archive` | Admin, User | `POST /v1/memory_stores/{memory_store_id}/archive` |
181| `memoryStores.delete` | Admin, User | `DELETE /v1/memory_stores/{memory_store_id}` |
174| Permission | Roles | Routes authorized |
175| ----- | ----- | ----- |
176| `memoryStores.create` | Admin, User | `POST /v1/memory_stores` |
177| `memoryStores.get` | Admin, User, Viewer | `GET /v1/memory_stores/{memory_store_id}`<br />`GET /v1/memory_stores/{memory_store_id}/memories`<br />`GET /v1/memory_stores/{memory_store_id}/memories/{memory_id}`<br />`GET /v1/memory_stores/{memory_store_id}/memory_versions`<br />`GET /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}` |
178| `memoryStores.list` | Admin, User, Viewer | `GET /v1/memory_stores` |
179| `memoryStores.update` | Admin, User | `POST /v1/memory_stores/{memory_store_id}`<br />`POST /v1/memory_stores/{memory_store_id}/memories`<br />`POST /v1/memory_stores/{memory_store_id}/memories/{memory_id}`<br />`DELETE /v1/memory_stores/{memory_store_id}/memories/{memory_id}`<br />`POST /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact` |
180| `memoryStores.archive` | Admin, User | `POST /v1/memory_stores/{memory_store_id}/archive` |
181| `memoryStores.delete` | Admin, User | `DELETE /v1/memory_stores/{memory_store_id}` |
182182 
183183Memory store operations need the following permissions:
184184 
from line 188
188188 
189189### Deployments
190190 
191| Permission | Roles | Routes authorized |
192| --------------------- | ------------------- | ----------------------------------------------------------------------------------------------------------------------- |
193| `deployments.create` | Admin, User | `POST /v1/deployments` |
194| `deployments.get` | Admin, User, Viewer | `GET /v1/deployment_runs`<br />`GET /v1/deployment_runs/{deployment_run_id}`<br />`GET /v1/deployments/{deployment_id}` |
195| `deployments.list` | Admin, User, Viewer | `GET /v1/deployments` |
196| `deployments.update` | Admin, User | `POST /v1/deployments/{deployment_id}` |
197| `deployments.archive` | Admin, User | `POST /v1/deployments/{deployment_id}/archive` |
198| `deployments.run` | Admin, User | `POST /v1/deployments/{deployment_id}/run` |
199| `deployments.pause` | Admin, User | `POST /v1/deployments/{deployment_id}/pause` |
200| `deployments.unpause` | Admin, User | `POST /v1/deployments/{deployment_id}/unpause` |
191| Permission | Roles | Routes authorized |
192| ----- | ----- | ----- |
193| `deployments.create` | Admin, User | `POST /v1/deployments` |
194| `deployments.get` | Admin, User, Viewer | `GET /v1/deployment_runs`<br />`GET /v1/deployment_runs/{deployment_run_id}`<br />`GET /v1/deployments/{deployment_id}` |
195| `deployments.list` | Admin, User, Viewer | `GET /v1/deployments` |
196| `deployments.update` | Admin, User | `POST /v1/deployments/{deployment_id}` |
197| `deployments.archive` | Admin, User | `POST /v1/deployments/{deployment_id}/archive` |
198| `deployments.run` | Admin, User | `POST /v1/deployments/{deployment_id}/run` |
199| `deployments.pause` | Admin, User | `POST /v1/deployments/{deployment_id}/pause` |
200| `deployments.unpause` | Admin, User | `POST /v1/deployments/{deployment_id}/unpause` |
201201 
202202Reading deployment runs needs `deployments.get`.
203203 
204204### Dreams
205205 
206| Permission | Roles | Routes authorized |
207| ---------------- | ------------------- | ------------------------------------ |
208| `dreams.create` | Admin, User | `POST /v1/dreams` |
209| `dreams.get` | Admin, User, Viewer | `GET /v1/dreams/{dream_id}` |
210| `dreams.list` | Admin, User, Viewer | `GET /v1/dreams` |
211| `dreams.archive` | Admin, User | `POST /v1/dreams/{dream_id}/archive` |
212| `dreams.cancel` | Admin, User | `POST /v1/dreams/{dream_id}/cancel` |
206| Permission | Roles | Routes authorized |
207| ----- | ----- | ----- |
208| `dreams.create` | Admin, User | `POST /v1/dreams` |
209| `dreams.get` | Admin, User, Viewer | `GET /v1/dreams/{dream_id}` |
210| `dreams.list` | Admin, User, Viewer | `GET /v1/dreams` |
211| `dreams.archive` | Admin, User | `POST /v1/dreams/{dream_id}/archive` |
212| `dreams.cancel` | Admin, User | `POST /v1/dreams/{dream_id}/cancel` |
213213 
214214Dreams is a research preview feature. To request access, see [Dreams](https://platform.claude.com/docs/en/managed-agents/dreams).
215215 
from line 217
217217 
218218Google Cloud records these routes in Admin Activity audit logs.
219219 
220| Permission | Roles | Routes authorized |
221| --------------------- | ----- | ---------------------------------------------------------- |
222| `externalKeys.create` | Admin | `POST /v1/organizations/external_keys` |
223| `externalKeys.get` | Admin | `GET /v1/organizations/external_keys/{external_key_id}` |
224| `externalKeys.list` | Admin | `GET /v1/organizations/external_keys` |
225| `externalKeys.update` | Admin | `POST /v1/organizations/external_keys/{external_key_id}` |
220| Permission | Roles | Routes authorized |
221| ----- | ----- | ----- |
222| `externalKeys.create` | Admin | `POST /v1/organizations/external_keys` |
223| `externalKeys.get` | Admin | `GET /v1/organizations/external_keys/{external_key_id}` |
224| `externalKeys.list` | Admin | `GET /v1/organizations/external_keys` |
225| `externalKeys.update` | Admin | `POST /v1/organizations/external_keys/{external_key_id}` |
226226| `externalKeys.delete` | Admin | `DELETE /v1/organizations/external_keys/{external_key_id}` |
227227 
228228These permissions manage your organization’s encryption key registrations. Of the three predefined roles, only `roles/claude.admin` includes them.
from line 229
229229 
230230### Usage reports
231231 
232| Permission | Roles | Routes authorized |
233| --------------------- | ----- | ------------------------------------------------------------------------------------------ |
232| Permission | Roles | Routes authorized |
233| ----- | ----- | ----- |
234234| `usageAnalytics.list` | Admin | `GET /v1/organizations/usage_report/messages`<br />`GET /v1/organizations/analytics/usage` |
235| `costAnalytics.list` | Admin | `GET /v1/organizations/analytics/cost` |
235| `costAnalytics.list` | Admin | `GET /v1/organizations/analytics/cost` |
236236 
237237Of the three predefined roles, only `roles/claude.admin` includes `usageAnalytics.list` and `costAnalytics.list`.
238238 

api/claude-platform-on-aws-iam-actions Changed · +254 / -254 lines

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 8
88 
99## Service details
1010 
11| Attribute | Value |
12| ---------------------- | ------------------------ |
11| Attribute | Value |
12| ----- | ----- |
1313| **IAM service prefix** | `aws-external-anthropic` |
14| **Resource types** | `workspace` |
14| **Resource types** | `workspace` |
1515 
1616Workspace ARN format:
1717 
from line 27
2727 
2828### Inference
2929 
30| Action | Routes authorized |
31| ----------------- | -------------------------------- |
32| `CreateInference` | `POST /v1/messages` |
33| `CountTokens` | `POST /v1/messages/count_tokens` |
30| Action | Routes authorized |
31| ----- | ----- |
32| `CreateInference` | `POST /v1/messages` |
33| `CountTokens` | `POST /v1/messages/count_tokens` |
3434 
3535### Batch processing
3636 
37| Action | Routes authorized |
38| ---------------------- | ---------------------------------------------------------------------------- |
39| `CreateBatchInference` | `POST /v1/messages/batches` |
40| `GetBatchInference` | `GET /v1/messages/batches/{id}`<br />`GET /v1/messages/batches/{id}/results` |
41| `ListBatchInferences` | `GET /v1/messages/batches` |
42| `CancelBatchInference` | `POST /v1/messages/batches/{id}/cancel` |
43| `DeleteBatchInference` | `DELETE /v1/messages/batches/{id}` |
37| Action | Routes authorized |
38| ----- | ----- |
39| `CreateBatchInference` | `POST /v1/messages/batches` |
40| `GetBatchInference` | `GET /v1/messages/batches/{id}`<br />`GET /v1/messages/batches/{id}/results` |
41| `ListBatchInferences` | `GET /v1/messages/batches` |
42| `CancelBatchInference` | `POST /v1/messages/batches/{id}/cancel` |
43| `DeleteBatchInference` | `DELETE /v1/messages/batches/{id}` |
4444 
4545<Note>
4646 `GetBatchInference` authorizes both reading batch metadata and downloading batch results. The `AnthropicReadOnlyAccess`, `AnthropicInferenceAccess`, and `AnthropicLimitedAccess` policies’ `Get*` wildcards include this action.
from line 48
4848 
4949### Models
5050 
51| Action | Routes authorized |
52| ------------ | --------------------- |
53| `GetModel` | `GET /v1/models/{id}` |
54| `ListModels` | `GET /v1/models` |
51| Action | Routes authorized |
52| ----- | ----- |
53| `GetModel` | `GET /v1/models/{id}` |
54| `ListModels` | `GET /v1/models` |
5555 
5656### Files
5757 
58| Action | Routes authorized |
59| ------------ | ------------------------------------------------------ |
60| `CreateFile` | `POST /v1/files` |
61| `GetFile` | `GET /v1/files/{id}`<br />`GET /v1/files/{id}/content` |
62| `ListFiles` | `GET /v1/files` |
63| `DeleteFile` | `DELETE /v1/files/{id}` |
58| Action | Routes authorized |
59| ----- | ----- |
60| `CreateFile` | `POST /v1/files` |
61| `GetFile` | `GET /v1/files/{id}`<br />`GET /v1/files/{id}/content` |
62| `ListFiles` | `GET /v1/files` |
63| `DeleteFile` | `DELETE /v1/files/{id}` |
6464 
6565<Note>
6666 `GetFile` authorizes both metadata and content download. A principal with read-only access can download file bytes, not just list files.
from line 68
6868 
6969### Skills
7070 
71| Action | Routes authorized |
72| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
73| `CreateSkill` | `POST /v1/skills` |
74| `GetSkill` | `GET /v1/skills/{id}`<br />`GET /v1/skills/{id}/versions`<br />`GET /v1/skills/{id}/versions/{version}`<br />`GET /v1/skills/{id}/versions/{version}/content` |
75| `ListSkills` | `GET /v1/skills` |
76| `UpdateSkill` | `POST /v1/skills/{id}/versions`<br />`DELETE /v1/skills/{id}/versions/{version}` |
77| `DeleteSkill` | `DELETE /v1/skills/{id}` |
71| Action | Routes authorized |
72| ----- | ----- |
73| `CreateSkill` | `POST /v1/skills` |
74| `GetSkill` | `GET /v1/skills/{id}`<br />`GET /v1/skills/{id}/versions`<br />`GET /v1/skills/{id}/versions/{version}`<br />`GET /v1/skills/{id}/versions/{version}/content` |
75| `ListSkills` | `GET /v1/skills` |
76| `UpdateSkill` | `POST /v1/skills/{id}/versions`<br />`DELETE /v1/skills/{id}/versions/{version}` |
77| `DeleteSkill` | `DELETE /v1/skills/{id}` |
7878 
7979<Note>
8080 `GetSkill` authorizes both skill metadata and skill-content download. A principal with read-only access can download skill bytes, not just list skills.
from line 86
8686 
8787### Agents
8888 
89| Action | Routes authorized |
90| -------------- | --------------------------------------------------------- |
91| `CreateAgent` | `POST /v1/agents` |
92| `GetAgent` | `GET /v1/agents/{id}`<br />`GET /v1/agents/{id}/versions` |
93| `ListAgents` | `GET /v1/agents` |
94| `UpdateAgent` | `POST /v1/agents/{id}` |
95| `ArchiveAgent` | `POST /v1/agents/{id}/archive` |
89| Action | Routes authorized |
90| ----- | ----- |
91| `CreateAgent` | `POST /v1/agents` |
92| `GetAgent` | `GET /v1/agents/{id}`<br />`GET /v1/agents/{id}/versions` |
93| `ListAgents` | `GET /v1/agents` |
94| `UpdateAgent` | `POST /v1/agents/{id}` |
95| `ArchiveAgent` | `POST /v1/agents/{id}/archive` |
9696 
9797<Note>
9898 Agents support only archive, not hard delete. A policy that denies `aws-external-anthropic:Delete*` does not block `ArchiveAgent`. To block every write route under `/v1/agents`, deny `CreateAgent`, `UpdateAgent`, and `ArchiveAgent`.
from line 100
100100 
101101### Sessions
102102 
103| Action | Routes authorized |
104| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
105| `CreateSession` | `POST /v1/sessions` |
106| `GetSession` | `GET /v1/sessions/{id}`<br />`GET /v1/sessions/{id}/events`<br />`GET /v1/sessions/{id}/events/stream`<br />`GET /v1/sessions/{id}/resources`<br />`GET /v1/sessions/{id}/resources/{id}`<br />`GET /v1/sessions/{id}/threads`<br />`GET /v1/sessions/{id}/threads/{id}`<br />`GET /v1/sessions/{id}/threads/{id}/events`<br />`GET /v1/sessions/{id}/threads/{id}/stream` |
107| `ListSessions` | `GET /v1/sessions` |
108| `UpdateSession` | `POST /v1/sessions/{id}`<br />`POST /v1/sessions/{id}/events`<br />`POST /v1/sessions/{id}/resources`<br />`POST /v1/sessions/{id}/resources/{id}`<br />`DELETE /v1/sessions/{id}/resources/{id}`<br />`POST /v1/sessions/{id}/threads/{id}/archive` |
109| `ArchiveSession` | `POST /v1/sessions/{id}/archive` |
110| `DeleteSession` | `DELETE /v1/sessions/{id}` |
103| Action | Routes authorized |
104| ----- | ----- |
105| `CreateSession` | `POST /v1/sessions` |
106| `GetSession` | `GET /v1/sessions/{id}`<br />`GET /v1/sessions/{id}/events`<br />`GET /v1/sessions/{id}/events/stream`<br />`GET /v1/sessions/{id}/resources`<br />`GET /v1/sessions/{id}/resources/{id}`<br />`GET /v1/sessions/{id}/threads`<br />`GET /v1/sessions/{id}/threads/{id}`<br />`GET /v1/sessions/{id}/threads/{id}/events`<br />`GET /v1/sessions/{id}/threads/{id}/stream` |
107| `ListSessions` | `GET /v1/sessions` |
108| `UpdateSession` | `POST /v1/sessions/{id}`<br />`POST /v1/sessions/{id}/events`<br />`POST /v1/sessions/{id}/resources`<br />`POST /v1/sessions/{id}/resources/{id}`<br />`DELETE /v1/sessions/{id}/resources/{id}`<br />`POST /v1/sessions/{id}/threads/{id}/archive` |
109| `ArchiveSession` | `POST /v1/sessions/{id}/archive` |
110| `DeleteSession` | `DELETE /v1/sessions/{id}` |
111111 
112112<Note>
113113 `GetSession` authorizes reading session metadata, the event stream (conversation history), session resources, and [session threads](https://platform.claude.com/docs/en/managed-agents/session-threads), including each thread’s events. The `AnthropicReadOnlyAccess`, `AnthropicInferenceAccess`, and `AnthropicLimitedAccess` policies’ `Get*` wildcards include this action, and the `AnthropicSelfHostedEnvironmentAccess` policy grants it explicitly.
from line 119
119119 
120120### Environments
121121 
122| Action | Routes authorized |
123| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
124| `CreateEnvironment` | `POST /v1/environments` |
125| `GetEnvironment` | `GET /v1/environments/{id}`<br />`GET /v1/environments/{id}/work`<br />`GET /v1/environments/{id}/work/{work_id}`<br />`GET /v1/environments/{id}/work/stats` |
126| `ListEnvironments` | `GET /v1/environments` |
127| `UpdateEnvironment` | `POST /v1/environments/{id}` |
128| `ArchiveEnvironment` | `POST /v1/environments/{id}/archive` |
129| `DeleteEnvironment` | `DELETE /v1/environments/{id}` |
122| Action | Routes authorized |
123| ----- | ----- |
124| `CreateEnvironment` | `POST /v1/environments` |
125| `GetEnvironment` | `GET /v1/environments/{id}`<br />`GET /v1/environments/{id}/work`<br />`GET /v1/environments/{id}/work/{work_id}`<br />`GET /v1/environments/{id}/work/stats` |
126| `ListEnvironments` | `GET /v1/environments` |
127| `UpdateEnvironment` | `POST /v1/environments/{id}` |
128| `ArchiveEnvironment` | `POST /v1/environments/{id}/archive` |
129| `DeleteEnvironment` | `DELETE /v1/environments/{id}` |
130130| `ProcessEnvironmentWork` | `GET /v1/environments/{id}/work/poll`<br />`POST /v1/environments/{id}/work/{work_id}`<br />`POST /v1/environments/{id}/work/{work_id}/ack`<br />`POST /v1/environments/{id}/work/{work_id}/heartbeat`<br />`POST /v1/environments/{id}/work/{work_id}/stop` |
131131 
132132<Note>
from line 139
139139 
140140### Vaults
141141 
142| Action | Routes authorized |
143| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
144| `CreateVault` | `POST /v1/vaults` |
145| `GetVault` | `GET /v1/vaults/{id}`<br />`GET /v1/vaults/{id}/credentials`<br />`GET /v1/vaults/{id}/credentials/{id}` |
146| `ListVaults` | `GET /v1/vaults` |
147| `UpdateVault` | `POST /v1/vaults/{id}`<br />`POST /v1/vaults/{id}/credentials`<br />`POST /v1/vaults/{id}/credentials/{id}`<br />`POST /v1/vaults/{id}/credentials/{id}/archive`<br />`DELETE /v1/vaults/{id}/credentials/{id}` |
148| `ArchiveVault` | `POST /v1/vaults/{id}/archive` |
149| `DeleteVault` | `DELETE /v1/vaults/{id}` |
142| Action | Routes authorized |
143| ----- | ----- |
144| `CreateVault` | `POST /v1/vaults` |
145| `GetVault` | `GET /v1/vaults/{id}`<br />`GET /v1/vaults/{id}/credentials`<br />`GET /v1/vaults/{id}/credentials/{id}` |
146| `ListVaults` | `GET /v1/vaults` |
147| `UpdateVault` | `POST /v1/vaults/{id}`<br />`POST /v1/vaults/{id}/credentials`<br />`POST /v1/vaults/{id}/credentials/{id}`<br />`POST /v1/vaults/{id}/credentials/{id}/archive`<br />`DELETE /v1/vaults/{id}/credentials/{id}` |
148| `ArchiveVault` | `POST /v1/vaults/{id}/archive` |
149| `DeleteVault` | `DELETE /v1/vaults/{id}` |
150150 
151151<Note>
152152 Creating, updating, archiving, or deleting an individual vault credential maps to `UpdateVault`. Reading a credential maps to `GetVault`. Vault credential secrets are not exposed: secret fields are write-only and are never returned by `GetVault` (see [Authenticate with vaults](https://platform.claude.com/docs/en/managed-agents/vaults)). A policy that denies `aws-external-anthropic:Create*`, `Delete*`, or `Archive*` still allows creating, deleting, and archiving credentials. To block every write route under `/v1/vaults`, deny `CreateVault`, `UpdateVault`, `ArchiveVault`, and `DeleteVault`.
from line 154
154154 
155155### Memory stores
156156 
157| Action | Routes authorized |
158| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
159| `CreateMemoryStore` | `POST /v1/memory_stores` |
160| `GetMemoryStore` | `GET /v1/memory_stores/{id}`<br />`GET /v1/memory_stores/{id}/memories`<br />`GET /v1/memory_stores/{id}/memories/{id}`<br />`GET /v1/memory_stores/{id}/memory_versions`<br />`GET /v1/memory_stores/{id}/memory_versions/{id}` |
161| `ListMemoryStores` | `GET /v1/memory_stores` |
162| `UpdateMemoryStore` | `POST /v1/memory_stores/{id}`<br />`POST /v1/memory_stores/{id}/memories`<br />`POST /v1/memory_stores/{id}/memories/{id}`<br />`DELETE /v1/memory_stores/{id}/memories/{id}`<br />`POST /v1/memory_stores/{id}/memory_versions/{id}/redact` |
163| `ArchiveMemoryStore` | `POST /v1/memory_stores/{id}/archive` |
164| `DeleteMemoryStore` | `DELETE /v1/memory_stores/{id}` |
157| Action | Routes authorized |
158| ----- | ----- |
159| `CreateMemoryStore` | `POST /v1/memory_stores` |
160| `GetMemoryStore` | `GET /v1/memory_stores/{id}`<br />`GET /v1/memory_stores/{id}/memories`<br />`GET /v1/memory_stores/{id}/memories/{id}`<br />`GET /v1/memory_stores/{id}/memory_versions`<br />`GET /v1/memory_stores/{id}/memory_versions/{id}` |
161| `ListMemoryStores` | `GET /v1/memory_stores` |
162| `UpdateMemoryStore` | `POST /v1/memory_stores/{id}`<br />`POST /v1/memory_stores/{id}/memories`<br />`POST /v1/memory_stores/{id}/memories/{id}`<br />`DELETE /v1/memory_stores/{id}/memories/{id}`<br />`POST /v1/memory_stores/{id}/memory_versions/{id}/redact` |
163| `ArchiveMemoryStore` | `POST /v1/memory_stores/{id}/archive` |
164| `DeleteMemoryStore` | `DELETE /v1/memory_stores/{id}` |
165165 
166166<Note>
167167 `GetMemoryStore` authorizes reading store metadata, all memories, and memory version history. The `AnthropicReadOnlyAccess`, `AnthropicInferenceAccess`, and `AnthropicLimitedAccess` policies’ `Get*` wildcards include this action.
from line 173
173173 
174174### Webhooks
175175 
176| Action | Routes authorized |
177| --------------------- | -------------------------------------------------- |
178| `CreateWebhook` | `POST /v1/webhooks` |
179| `GetWebhook` | `GET /v1/webhooks/{id}` |
180| `ListWebhooks` | `GET /v1/webhooks` |
181| `UpdateWebhook` | `POST /v1/webhooks/{id}` |
182| `DeleteWebhook` | `DELETE /v1/webhooks/{id}` |
176| Action | Routes authorized |
177| ----- | ----- |
178| `CreateWebhook` | `POST /v1/webhooks` |
179| `GetWebhook` | `GET /v1/webhooks/{id}` |
180| `ListWebhooks` | `GET /v1/webhooks` |
181| `UpdateWebhook` | `POST /v1/webhooks/{id}` |
182| `DeleteWebhook` | `DELETE /v1/webhooks/{id}` |
183183| `RotateWebhookSecret` | `POST /v1/webhooks/{id}/regenerate_signing_secret` |
184184 
185185<Note>
from line 192
192192 
193193### User profiles
194194 
195| Action | Routes authorized |
196| -------------------------------- | -------------------------------------------- |
197| `CreateUserProfile` | `POST /v1/user_profiles` |
198| `GetUserProfile` | `GET /v1/user_profiles/{id}` |
199| `ListUserProfiles` | `GET /v1/user_profiles` |
200| `UpdateUserProfile` | `POST /v1/user_profiles/{id}` |
201| `DeleteUserProfile` | `DELETE /v1/user_profiles/{id}` |
195| Action | Routes authorized |
196| ----- | ----- |
197| `CreateUserProfile` | `POST /v1/user_profiles` |
198| `GetUserProfile` | `GET /v1/user_profiles/{id}` |
199| `ListUserProfiles` | `GET /v1/user_profiles` |
200| `UpdateUserProfile` | `POST /v1/user_profiles/{id}` |
201| `DeleteUserProfile` | `DELETE /v1/user_profiles/{id}` |
202202| `CreateUserProfileEnrollmentUrl` | `POST /v1/user_profiles/{id}/enrollment_url` |
203203 
204204<Note>
from line 211
211211 
212212### Workspaces
213213 
214| Action | Routes authorized |
215| ------------------ | ------------------------------------------------ |
216| `CreateWorkspace` | `POST /v1/organizations/workspaces` |
217| `GetWorkspace` | `GET /v1/organizations/workspaces/{id}` |
218| `ListWorkspaces` | `GET /v1/organizations/workspaces` |
219| `UpdateWorkspace` | `POST /v1/organizations/workspaces/{id}` |
214| Action | Routes authorized |
215| ----- | ----- |
216| `CreateWorkspace` | `POST /v1/organizations/workspaces` |
217| `GetWorkspace` | `GET /v1/organizations/workspaces/{id}` |
218| `ListWorkspaces` | `GET /v1/organizations/workspaces` |
219| `UpdateWorkspace` | `POST /v1/organizations/workspaces/{id}` |
220220| `ArchiveWorkspace` | `POST /v1/organizations/workspaces/{id}/archive` |
221221 
222222<Note>
from line 225
225225 
226226### Encryption keys
227227 
228| Action | Routes authorized |
229| ------------- | --------------------------------------------- |
230| `RegisterKey` | `POST /v1/organizations/external_keys` |
231| `GetKey` | `GET /v1/organizations/external_keys/{id}` |
232| `ListKeys` | `GET /v1/organizations/external_keys` |
233| `UpdateKey` | `POST /v1/organizations/external_keys/{id}` |
234| `DisableKey` | `DELETE /v1/organizations/external_keys/{id}` |
228| Action | Routes authorized |
229| ----- | ----- |
230| `RegisterKey` | `POST /v1/organizations/external_keys` |
231| `GetKey` | `GET /v1/organizations/external_keys/{id}` |
232| `ListKeys` | `GET /v1/organizations/external_keys` |
233| `UpdateKey` | `POST /v1/organizations/external_keys/{id}` |
234| `DisableKey` | `DELETE /v1/organizations/external_keys/{id}` |
235235 
236236<Note>
237237 These actions manage your organization’s [customer-managed encryption key (CMEK)](https://platform.claude.com/docs/en/manage-claude/cmek-claude-platform-on-aws) registrations, the record of which AWS KMS key ARNs are registered. They do not create, change, or disable the keys in AWS KMS. `DisableKey` removes a registration and is rejected while any workspace still uses the key. `RegisterKey` and `DisableKey` are not matched by `Create*`, `Update*`, or `Delete*` wildcards. To block every write route under `/v1/organizations/external_keys`, deny `RegisterKey`, `UpdateKey`, and `DisableKey`. In these routes, `{id}` is the URL-encoded KMS key ARN. Attaching a registered key to a workspace is a workspace operation, authorized by `CreateWorkspace` or `UpdateWorkspace`; the principal that attaches a key also needs `kms:DescribeKey`, `kms:Encrypt`, and `kms:Decrypt` on that key (see the [prerequisites](https://platform.claude.com/docs/en/manage-claude/cmek-claude-platform-on-aws#prerequisites)). External key actions are account-scoped: specifying a workspace ARN on them has no effect; use `Resource: "*"`.
from line 239
239239 
240240### Compliance
241241 
242| Action | Routes authorized |
243| -------------------------- | ------------------------------- |
242| Action | Routes authorized |
243| ----- | ----- |
244244| `ListComplianceActivities` | `GET /v1/compliance/activities` |
245245 
246246<Note>
from line 253
253253 
254254### Telemetry destinations
255255 
256| Action | Routes authorized |
257| ------------------------------------------- | -------------------------------------------------------------------------------- |
258| `CreateAccountTelemetryDestination` | `POST /v1/organizations/telemetry_destinations` |
259| `GetAccountTelemetryDestination` | `GET /v1/organizations/telemetry_destinations/{id}` |
260| `ListAccountTelemetryDestinations` | `GET /v1/organizations/telemetry_destinations` |
261| `UpdateAccountTelemetryDestination` | `POST /v1/organizations/telemetry_destinations/{id}` |
262| `DeleteAccountTelemetryDestination` | `DELETE /v1/organizations/telemetry_destinations/{id}` |
263| `TestAccountTelemetryDestination` | `POST /v1/organizations/telemetry_destinations/{id}/test` |
264| `ListAccountTelemetryDestinationWorkspaces` | `GET /v1/organizations/telemetry_destinations/{id}/workspaces` |
265| `AddTelemetryDestinationWorkspace` | `POST /v1/organizations/telemetry_destinations/{id}/workspaces/{workspace_id}` |
266| `RemoveTelemetryDestinationWorkspace` | `DELETE /v1/organizations/telemetry_destinations/{id}/workspaces/{workspace_id}` |
256| Action | Routes authorized |
257| ----- | ----- |
258| `CreateAccountTelemetryDestination` | `POST /v1/organizations/telemetry_destinations` |
259| `GetAccountTelemetryDestination` | `GET /v1/organizations/telemetry_destinations/{id}` |
260| `ListAccountTelemetryDestinations` | `GET /v1/organizations/telemetry_destinations` |
261| `UpdateAccountTelemetryDestination` | `POST /v1/organizations/telemetry_destinations/{id}` |
262| `DeleteAccountTelemetryDestination` | `DELETE /v1/organizations/telemetry_destinations/{id}` |
263| `TestAccountTelemetryDestination` | `POST /v1/organizations/telemetry_destinations/{id}/test` |
264| `ListAccountTelemetryDestinationWorkspaces` | `GET /v1/organizations/telemetry_destinations/{id}/workspaces` |
265| `AddTelemetryDestinationWorkspace` | `POST /v1/organizations/telemetry_destinations/{id}/workspaces/{workspace_id}` |
266| `RemoveTelemetryDestinationWorkspace` | `DELETE /v1/organizations/telemetry_destinations/{id}/workspaces/{workspace_id}` |
267267 
268268<Note>
269269 All of these actions except `AddTelemetryDestinationWorkspace` and `RemoveTelemetryDestinationWorkspace` are account-scoped, so a workspace ARN on them has no effect. Use `Resource: "*"`. A destination can export telemetry from every workspace in the organization, in every region. Grant `CreateAccountTelemetryDestination` and `UpdateAccountTelemetryDestination` only to principals you trust with all of that telemetry.
from line 275
275275 
276276### Usage and cost
277277 
278| Action | Routes authorized |
279| ------------------ | --------------------------------------- |
278| Action | Routes authorized |
279| ----- | ----- |
280280| `ListAccountUsage` | `GET /v1/organizations/analytics/usage` |
281| `ListAccountCost` | `GET /v1/organizations/analytics/cost` |
281| `ListAccountCost` | `GET /v1/organizations/analytics/cost` |
282282 
283283<Note>
284284 These actions authorize the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api). Both are account-scoped. Specifying a workspace ARN on these actions has no effect; use `Resource: "*"`.
from line 286
286286 
287287### Authentication
288288 
289| Action | Routes authorized |
290| --------------------- | ----------------- |
291| `CallWithBearerToken` | (none) |
289| Action | Routes authorized |
290| ----- | ----- |
291| `CallWithBearerToken` | (none) |
292292 
293293`CallWithBearerToken` is an authentication-layer permission that authorizes a principal to authenticate through an API key (bearer token) rather than AWS SigV4. It does not map to a route. Grant it alongside the route-mapped actions you want the API key holder to perform.
294294 
295295### Console access
296296 
297| Action | Routes authorized |
298| --------------- | ----------------- |
299| `AssumeConsole` | (none) |
297| Action | Routes authorized |
298| ----- | ----- |
299| `AssumeConsole` | (none) |
300300 
301301`AssumeConsole` authorizes a principal to open the Claude Console for its Claude Platform on AWS organization through the AWS Console federation flow. It does not map to a route or bind to a workspace ARN, so a statement that grants it needs `Resource: "*"`. Grant it to principals who should be able to click **Open Claude Console** on the Claude Platform on AWS service page in the AWS Console. See [Using the Claude Console](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#using-the-claude-console) for the sign-in flow and what each Claude Console role (Admin or Developer) can do.
302302 
from line 310
310310 
311311CloudTrail classifies each action as either a Data event (high-volume, data-plane operations) or a Management event (control-plane operations). It classifies vault and webhook actions as Management events because they hold secrets (vault credentials and webhook signing secrets) and benefit from default-on audit logging. It also classifies workspace, external key, telemetry destination, compliance, and rate limit increase request actions as Management events. These actions are organization-scoped control-plane operations. CloudTrail classifies all other actions as Data events. These include inference, batch, model, file, skill, user profile, usage and cost, and the remaining Claude Managed Agents actions.
312312 
313| Method | Route | IAM action | CloudTrail event type |
314| -------- | ------------------------------------------------------------------------- | ------------------------------------------- | --------------------- |
315| `POST` | `/v1/messages` | `CreateInference` | Data |
316| `POST` | `/v1/messages/count_tokens` | `CountTokens` | Data |
317| `POST` | `/v1/messages/batches` | `CreateBatchInference` | Data |
318| `GET` | `/v1/messages/batches` | `ListBatchInferences` | Data |
319| `GET` | `/v1/messages/batches/{id}` | `GetBatchInference` | Data |
320| `GET` | `/v1/messages/batches/{id}/results` | `GetBatchInference` | Data |
321| `POST` | `/v1/messages/batches/{id}/cancel` | `CancelBatchInference` | Data |
322| `DELETE` | `/v1/messages/batches/{id}` | `DeleteBatchInference` | Data |
323| `GET` | `/v1/models` | `ListModels` | Data |
324| `GET` | `/v1/models/{id}` | `GetModel` | Data |
325| `POST` | `/v1/files` | `CreateFile` | Data |
326| `GET` | `/v1/files` | `ListFiles` | Data |
327| `GET` | `/v1/files/{id}` | `GetFile` | Data |
328| `GET` | `/v1/files/{id}/content` | `GetFile` | Data |
329| `DELETE` | `/v1/files/{id}` | `DeleteFile` | Data |
330| `POST` | `/v1/skills` | `CreateSkill` | Data |
331| `GET` | `/v1/skills` | `ListSkills` | Data |
332| `GET` | `/v1/skills/{id}` | `GetSkill` | Data |
333| `DELETE` | `/v1/skills/{id}` | `DeleteSkill` | Data |
334| `POST` | `/v1/skills/{id}/versions` | `UpdateSkill` | Data |
335| `GET` | `/v1/skills/{id}/versions` | `GetSkill` | Data |
336| `GET` | `/v1/skills/{id}/versions/{version}` | `GetSkill` | Data |
337| `GET` | `/v1/skills/{id}/versions/{version}/content` | `GetSkill` | Data |
338| `DELETE` | `/v1/skills/{id}/versions/{version}` | `UpdateSkill` | Data |
339| `POST` | `/v1/user_profiles` | `CreateUserProfile` | Data |
340| `GET` | `/v1/user_profiles` | `ListUserProfiles` | Data |
341| `GET` | `/v1/user_profiles/{id}` | `GetUserProfile` | Data |
342| `POST` | `/v1/user_profiles/{id}` | `UpdateUserProfile` | Data |
343| `DELETE` | `/v1/user_profiles/{id}` | `DeleteUserProfile` | Data |
344| `POST` | `/v1/user_profiles/{id}/enrollment_url` | `CreateUserProfileEnrollmentUrl` | Data |
345| `POST` | `/v1/organizations/workspaces` | `CreateWorkspace` | Management |
346| `GET` | `/v1/organizations/workspaces` | `ListWorkspaces` | Management |
347| `GET` | `/v1/organizations/workspaces/{id}` | `GetWorkspace` | Management |
348| `POST` | `/v1/organizations/workspaces/{id}` | `UpdateWorkspace` | Management |
349| `POST` | `/v1/organizations/workspaces/{id}/archive` | `ArchiveWorkspace` | Management |
350| `POST` | `/v1/organizations/external_keys` | `RegisterKey` | Management |
351| `GET` | `/v1/organizations/external_keys` | `ListKeys` | Management |
352| `GET` | `/v1/organizations/external_keys/{id}` | `GetKey` | Management |
353| `POST` | `/v1/organizations/external_keys/{id}` | `UpdateKey` | Management |
354| `DELETE` | `/v1/organizations/external_keys/{id}` | `DisableKey` | Management |
355| `POST` | `/v1/organizations/telemetry_destinations` | `CreateAccountTelemetryDestination` | Management |
356| `GET` | `/v1/organizations/telemetry_destinations` | `ListAccountTelemetryDestinations` | Management |
357| `GET` | `/v1/organizations/telemetry_destinations/{id}` | `GetAccountTelemetryDestination` | Management |
358| `POST` | `/v1/organizations/telemetry_destinations/{id}` | `UpdateAccountTelemetryDestination` | Management |
359| `DELETE` | `/v1/organizations/telemetry_destinations/{id}` | `DeleteAccountTelemetryDestination` | Management |
360| `POST` | `/v1/organizations/telemetry_destinations/{id}/test` | `TestAccountTelemetryDestination` | Management |
361| `GET` | `/v1/organizations/telemetry_destinations/{id}/workspaces` | `ListAccountTelemetryDestinationWorkspaces` | Management |
362| `POST` | `/v1/organizations/telemetry_destinations/{id}/workspaces/{workspace_id}` | `AddTelemetryDestinationWorkspace` | Management |
363| `DELETE` | `/v1/organizations/telemetry_destinations/{id}/workspaces/{workspace_id}` | `RemoveTelemetryDestinationWorkspace` | Management |
364| `GET` | `/v1/compliance/activities` | `ListComplianceActivities` | Management |
365| `POST` | `/v1/agents` | `CreateAgent` | Data |
366| `GET` | `/v1/agents` | `ListAgents` | Data |
367| `GET` | `/v1/agents/{id}` | `GetAgent` | Data |
368| `POST` | `/v1/agents/{id}` | `UpdateAgent` | Data |
369| `POST` | `/v1/agents/{id}/archive` | `ArchiveAgent` | Data |
370| `GET` | `/v1/agents/{id}/versions` | `GetAgent` | Data |
371| `POST` | `/v1/sessions` | `CreateSession` | Data |
372| `GET` | `/v1/sessions` | `ListSessions` | Data |
373| `GET` | `/v1/sessions/{id}` | `GetSession` | Data |
374| `POST` | `/v1/sessions/{id}` | `UpdateSession` | Data |
375| `POST` | `/v1/sessions/{id}/archive` | `ArchiveSession` | Data |
376| `DELETE` | `/v1/sessions/{id}` | `DeleteSession` | Data |
377| `GET` | `/v1/sessions/{id}/events` | `GetSession` | Data |
378| `POST` | `/v1/sessions/{id}/events` | `UpdateSession` | Data |
379| `GET` | `/v1/sessions/{id}/events/stream` | `GetSession` | Data |
380| `GET` | `/v1/sessions/{id}/resources` | `GetSession` | Data |
381| `GET` | `/v1/sessions/{id}/resources/{id}` | `GetSession` | Data |
382| `POST` | `/v1/sessions/{id}/resources` | `UpdateSession` | Data |
383| `POST` | `/v1/sessions/{id}/resources/{id}` | `UpdateSession` | Data |
384| `DELETE` | `/v1/sessions/{id}/resources/{id}` | `UpdateSession` | Data |
385| `GET` | `/v1/sessions/{id}/threads` | `GetSession` | Data |
386| `GET` | `/v1/sessions/{id}/threads/{id}` | `GetSession` | Data |
387| `GET` | `/v1/sessions/{id}/threads/{id}/events` | `GetSession` | Data |
388| `GET` | `/v1/sessions/{id}/threads/{id}/stream` | `GetSession` | Data |
389| `POST` | `/v1/sessions/{id}/threads/{id}/archive` | `UpdateSession` | Data |
390| `POST` | `/v1/environments` | `CreateEnvironment` | Data |
391| `GET` | `/v1/environments` | `ListEnvironments` | Data |
392| `GET` | `/v1/environments/{id}` | `GetEnvironment` | Data |
393| `POST` | `/v1/environments/{id}` | `UpdateEnvironment` | Data |
394| `POST` | `/v1/environments/{id}/archive` | `ArchiveEnvironment` | Data |
395| `DELETE` | `/v1/environments/{id}` | `DeleteEnvironment` | Data |
396| `GET` | `/v1/environments/{id}/work` | `GetEnvironment` | Data |
397| `GET` | `/v1/environments/{id}/work/poll` | `ProcessEnvironmentWork` | Data |
398| `GET` | `/v1/environments/{id}/work/{work_id}` | `GetEnvironment` | Data |
399| `GET` | `/v1/environments/{id}/work/stats` | `GetEnvironment` | Data |
400| `POST` | `/v1/environments/{id}/work/{work_id}` | `ProcessEnvironmentWork` | Data |
401| `POST` | `/v1/environments/{id}/work/{work_id}/ack` | `ProcessEnvironmentWork` | Data |
402| `POST` | `/v1/environments/{id}/work/{work_id}/heartbeat` | `ProcessEnvironmentWork` | Data |
403| `POST` | `/v1/environments/{id}/work/{work_id}/stop` | `ProcessEnvironmentWork` | Data |
404| `POST` | `/v1/vaults` | `CreateVault` | Management |
405| `GET` | `/v1/vaults` | `ListVaults` | Management |
406| `GET` | `/v1/vaults/{id}` | `GetVault` | Management |
407| `POST` | `/v1/vaults/{id}` | `UpdateVault` | Management |
408| `POST` | `/v1/vaults/{id}/archive` | `ArchiveVault` | Management |
409| `DELETE` | `/v1/vaults/{id}` | `DeleteVault` | Management |
410| `GET` | `/v1/vaults/{id}/credentials` | `GetVault` | Management |
411| `POST` | `/v1/vaults/{id}/credentials` | `UpdateVault` | Management |
412| `GET` | `/v1/vaults/{id}/credentials/{id}` | `GetVault` | Management |
413| `POST` | `/v1/vaults/{id}/credentials/{id}` | `UpdateVault` | Management |
414| `POST` | `/v1/vaults/{id}/credentials/{id}/archive` | `UpdateVault` | Management |
415| `DELETE` | `/v1/vaults/{id}/credentials/{id}` | `UpdateVault` | Management |
416| `POST` | `/v1/memory_stores` | `CreateMemoryStore` | Data |
417| `GET` | `/v1/memory_stores` | `ListMemoryStores` | Data |
418| `GET` | `/v1/memory_stores/{id}` | `GetMemoryStore` | Data |
419| `POST` | `/v1/memory_stores/{id}` | `UpdateMemoryStore` | Data |
420| `POST` | `/v1/memory_stores/{id}/archive` | `ArchiveMemoryStore` | Data |
421| `DELETE` | `/v1/memory_stores/{id}` | `DeleteMemoryStore` | Data |
422| `POST` | `/v1/memory_stores/{id}/memories` | `UpdateMemoryStore` | Data |
423| `GET` | `/v1/memory_stores/{id}/memories` | `GetMemoryStore` | Data |
424| `GET` | `/v1/memory_stores/{id}/memories/{id}` | `GetMemoryStore` | Data |
425| `POST` | `/v1/memory_stores/{id}/memories/{id}` | `UpdateMemoryStore` | Data |
426| `DELETE` | `/v1/memory_stores/{id}/memories/{id}` | `UpdateMemoryStore` | Data |
427| `GET` | `/v1/memory_stores/{id}/memory_versions` | `GetMemoryStore` | Data |
428| `GET` | `/v1/memory_stores/{id}/memory_versions/{id}` | `GetMemoryStore` | Data |
429| `POST` | `/v1/memory_stores/{id}/memory_versions/{id}/redact` | `UpdateMemoryStore` | Data |
430| `GET` | `/v1/webhooks` | `ListWebhooks` | Management |
431| `GET` | `/v1/webhooks/{id}` | `GetWebhook` | Management |
432| `POST` | `/v1/webhooks` | `CreateWebhook` | Management |
433| `POST` | `/v1/webhooks/{id}` | `UpdateWebhook` | Management |
434| `DELETE` | `/v1/webhooks/{id}` | `DeleteWebhook` | Management |
435| `POST` | `/v1/webhooks/{id}/regenerate_signing_secret` | `RotateWebhookSecret` | Management |
436 
437| Method | Route | IAM action | CloudTrail event type |
438| ------ | ----------------------------------- | ------------------ | --------------------- |
439| `GET` | `/v1/organizations/analytics/usage` | `ListAccountUsage` | Data |
440| `GET` | `/v1/organizations/analytics/cost` | `ListAccountCost` | Data |
313| Method | Route | IAM action | CloudTrail event type |
314| ----- | ----- | ----- | ----- |
315| `POST` | `/v1/messages` | `CreateInference` | Data |
316| `POST` | `/v1/messages/count_tokens` | `CountTokens` | Data |
317| `POST` | `/v1/messages/batches` | `CreateBatchInference` | Data |
318| `GET` | `/v1/messages/batches` | `ListBatchInferences` | Data |
319| `GET` | `/v1/messages/batches/{id}` | `GetBatchInference` | Data |
320| `GET` | `/v1/messages/batches/{id}/results` | `GetBatchInference` | Data |
321| `POST` | `/v1/messages/batches/{id}/cancel` | `CancelBatchInference` | Data |
322| `DELETE` | `/v1/messages/batches/{id}` | `DeleteBatchInference` | Data |
323| `GET` | `/v1/models` | `ListModels` | Data |
324| `GET` | `/v1/models/{id}` | `GetModel` | Data |
325| `POST` | `/v1/files` | `CreateFile` | Data |
326| `GET` | `/v1/files` | `ListFiles` | Data |
327| `GET` | `/v1/files/{id}` | `GetFile` | Data |
328| `GET` | `/v1/files/{id}/content` | `GetFile` | Data |
329| `DELETE` | `/v1/files/{id}` | `DeleteFile` | Data |
330| `POST` | `/v1/skills` | `CreateSkill` | Data |
331| `GET` | `/v1/skills` | `ListSkills` | Data |
332| `GET` | `/v1/skills/{id}` | `GetSkill` | Data |
333| `DELETE` | `/v1/skills/{id}` | `DeleteSkill` | Data |
334| `POST` | `/v1/skills/{id}/versions` | `UpdateSkill` | Data |
335| `GET` | `/v1/skills/{id}/versions` | `GetSkill` | Data |
336| `GET` | `/v1/skills/{id}/versions/{version}` | `GetSkill` | Data |
337| `GET` | `/v1/skills/{id}/versions/{version}/content` | `GetSkill` | Data |
338| `DELETE` | `/v1/skills/{id}/versions/{version}` | `UpdateSkill` | Data |
339| `POST` | `/v1/user_profiles` | `CreateUserProfile` | Data |
340| `GET` | `/v1/user_profiles` | `ListUserProfiles` | Data |
341| `GET` | `/v1/user_profiles/{id}` | `GetUserProfile` | Data |
342| `POST` | `/v1/user_profiles/{id}` | `UpdateUserProfile` | Data |
343| `DELETE` | `/v1/user_profiles/{id}` | `DeleteUserProfile` | Data |
344| `POST` | `/v1/user_profiles/{id}/enrollment_url` | `CreateUserProfileEnrollmentUrl` | Data |
345| `POST` | `/v1/organizations/workspaces` | `CreateWorkspace` | Management |
346| `GET` | `/v1/organizations/workspaces` | `ListWorkspaces` | Management |
347| `GET` | `/v1/organizations/workspaces/{id}` | `GetWorkspace` | Management |
348| `POST` | `/v1/organizations/workspaces/{id}` | `UpdateWorkspace` | Management |
349| `POST` | `/v1/organizations/workspaces/{id}/archive` | `ArchiveWorkspace` | Management |
350| `POST` | `/v1/organizations/external_keys` | `RegisterKey` | Management |
351| `GET` | `/v1/organizations/external_keys` | `ListKeys` | Management |
352| `GET` | `/v1/organizations/external_keys/{id}` | `GetKey` | Management |
353| `POST` | `/v1/organizations/external_keys/{id}` | `UpdateKey` | Management |
354| `DELETE` | `/v1/organizations/external_keys/{id}` | `DisableKey` | Management |
355| `POST` | `/v1/organizations/telemetry_destinations` | `CreateAccountTelemetryDestination` | Management |
356| `GET` | `/v1/organizations/telemetry_destinations` | `ListAccountTelemetryDestinations` | Management |
357| `GET` | `/v1/organizations/telemetry_destinations/{id}` | `GetAccountTelemetryDestination` | Management |
358| `POST` | `/v1/organizations/telemetry_destinations/{id}` | `UpdateAccountTelemetryDestination` | Management |
359| `DELETE` | `/v1/organizations/telemetry_destinations/{id}` | `DeleteAccountTelemetryDestination` | Management |
360| `POST` | `/v1/organizations/telemetry_destinations/{id}/test` | `TestAccountTelemetryDestination` | Management |
361| `GET` | `/v1/organizations/telemetry_destinations/{id}/workspaces` | `ListAccountTelemetryDestinationWorkspaces` | Management |
362| `POST` | `/v1/organizations/telemetry_destinations/{id}/workspaces/{workspace_id}` | `AddTelemetryDestinationWorkspace` | Management |
363| `DELETE` | `/v1/organizations/telemetry_destinations/{id}/workspaces/{workspace_id}` | `RemoveTelemetryDestinationWorkspace` | Management |
364| `GET` | `/v1/compliance/activities` | `ListComplianceActivities` | Management |
365| `POST` | `/v1/agents` | `CreateAgent` | Data |
366| `GET` | `/v1/agents` | `ListAgents` | Data |
367| `GET` | `/v1/agents/{id}` | `GetAgent` | Data |
368| `POST` | `/v1/agents/{id}` | `UpdateAgent` | Data |
369| `POST` | `/v1/agents/{id}/archive` | `ArchiveAgent` | Data |
370| `GET` | `/v1/agents/{id}/versions` | `GetAgent` | Data |
371| `POST` | `/v1/sessions` | `CreateSession` | Data |
372| `GET` | `/v1/sessions` | `ListSessions` | Data |
373| `GET` | `/v1/sessions/{id}` | `GetSession` | Data |
374| `POST` | `/v1/sessions/{id}` | `UpdateSession` | Data |
375| `POST` | `/v1/sessions/{id}/archive` | `ArchiveSession` | Data |
376| `DELETE` | `/v1/sessions/{id}` | `DeleteSession` | Data |
377| `GET` | `/v1/sessions/{id}/events` | `GetSession` | Data |
378| `POST` | `/v1/sessions/{id}/events` | `UpdateSession` | Data |
379| `GET` | `/v1/sessions/{id}/events/stream` | `GetSession` | Data |
380| `GET` | `/v1/sessions/{id}/resources` | `GetSession` | Data |
381| `GET` | `/v1/sessions/{id}/resources/{id}` | `GetSession` | Data |
382| `POST` | `/v1/sessions/{id}/resources` | `UpdateSession` | Data |
383| `POST` | `/v1/sessions/{id}/resources/{id}` | `UpdateSession` | Data |
384| `DELETE` | `/v1/sessions/{id}/resources/{id}` | `UpdateSession` | Data |
385| `GET` | `/v1/sessions/{id}/threads` | `GetSession` | Data |
386| `GET` | `/v1/sessions/{id}/threads/{id}` | `GetSession` | Data |
387| `GET` | `/v1/sessions/{id}/threads/{id}/events` | `GetSession` | Data |
388| `GET` | `/v1/sessions/{id}/threads/{id}/stream` | `GetSession` | Data |
389| `POST` | `/v1/sessions/{id}/threads/{id}/archive` | `UpdateSession` | Data |
390| `POST` | `/v1/environments` | `CreateEnvironment` | Data |
391| `GET` | `/v1/environments` | `ListEnvironments` | Data |
392| `GET` | `/v1/environments/{id}` | `GetEnvironment` | Data |
393| `POST` | `/v1/environments/{id}` | `UpdateEnvironment` | Data |
394| `POST` | `/v1/environments/{id}/archive` | `ArchiveEnvironment` | Data |
395| `DELETE` | `/v1/environments/{id}` | `DeleteEnvironment` | Data |
396| `GET` | `/v1/environments/{id}/work` | `GetEnvironment` | Data |
397| `GET` | `/v1/environments/{id}/work/poll` | `ProcessEnvironmentWork` | Data |
398| `GET` | `/v1/environments/{id}/work/{work_id}` | `GetEnvironment` | Data |
399| `GET` | `/v1/environments/{id}/work/stats` | `GetEnvironment` | Data |
400| `POST` | `/v1/environments/{id}/work/{work_id}` | `ProcessEnvironmentWork` | Data |
401| `POST` | `/v1/environments/{id}/work/{work_id}/ack` | `ProcessEnvironmentWork` | Data |
402| `POST` | `/v1/environments/{id}/work/{work_id}/heartbeat` | `ProcessEnvironmentWork` | Data |
403| `POST` | `/v1/environments/{id}/work/{work_id}/stop` | `ProcessEnvironmentWork` | Data |
404| `POST` | `/v1/vaults` | `CreateVault` | Management |
405| `GET` | `/v1/vaults` | `ListVaults` | Management |
406| `GET` | `/v1/vaults/{id}` | `GetVault` | Management |
407| `POST` | `/v1/vaults/{id}` | `UpdateVault` | Management |
408| `POST` | `/v1/vaults/{id}/archive` | `ArchiveVault` | Management |
409| `DELETE` | `/v1/vaults/{id}` | `DeleteVault` | Management |
410| `GET` | `/v1/vaults/{id}/credentials` | `GetVault` | Management |
411| `POST` | `/v1/vaults/{id}/credentials` | `UpdateVault` | Management |
412| `GET` | `/v1/vaults/{id}/credentials/{id}` | `GetVault` | Management |
413| `POST` | `/v1/vaults/{id}/credentials/{id}` | `UpdateVault` | Management |
414| `POST` | `/v1/vaults/{id}/credentials/{id}/archive` | `UpdateVault` | Management |
415| `DELETE` | `/v1/vaults/{id}/credentials/{id}` | `UpdateVault` | Management |
416| `POST` | `/v1/memory_stores` | `CreateMemoryStore` | Data |
417| `GET` | `/v1/memory_stores` | `ListMemoryStores` | Data |
418| `GET` | `/v1/memory_stores/{id}` | `GetMemoryStore` | Data |
419| `POST` | `/v1/memory_stores/{id}` | `UpdateMemoryStore` | Data |
420| `POST` | `/v1/memory_stores/{id}/archive` | `ArchiveMemoryStore` | Data |
421| `DELETE` | `/v1/memory_stores/{id}` | `DeleteMemoryStore` | Data |
422| `POST` | `/v1/memory_stores/{id}/memories` | `UpdateMemoryStore` | Data |
423| `GET` | `/v1/memory_stores/{id}/memories` | `GetMemoryStore` | Data |
424| `GET` | `/v1/memory_stores/{id}/memories/{id}` | `GetMemoryStore` | Data |
425| `POST` | `/v1/memory_stores/{id}/memories/{id}` | `UpdateMemoryStore` | Data |
426| `DELETE` | `/v1/memory_stores/{id}/memories/{id}` | `UpdateMemoryStore` | Data |
427| `GET` | `/v1/memory_stores/{id}/memory_versions` | `GetMemoryStore` | Data |
428| `GET` | `/v1/memory_stores/{id}/memory_versions/{id}` | `GetMemoryStore` | Data |
429| `POST` | `/v1/memory_stores/{id}/memory_versions/{id}/redact` | `UpdateMemoryStore` | Data |
430| `GET` | `/v1/webhooks` | `ListWebhooks` | Management |
431| `GET` | `/v1/webhooks/{id}` | `GetWebhook` | Management |
432| `POST` | `/v1/webhooks` | `CreateWebhook` | Management |
433| `POST` | `/v1/webhooks/{id}` | `UpdateWebhook` | Management |
434| `DELETE` | `/v1/webhooks/{id}` | `DeleteWebhook` | Management |
435| `POST` | `/v1/webhooks/{id}/regenerate_signing_secret` | `RotateWebhookSecret` | Management |
436 
437| Method | Route | IAM action | CloudTrail event type |
438| ----- | ----- | ----- | ----- |
439| `GET` | `/v1/organizations/analytics/usage` | `ListAccountUsage` | Data |
440| `GET` | `/v1/organizations/analytics/cost` | `ListAccountCost` | Data |
441441 
442442Public API routes not in these tables are not available on Claude Platform on AWS. The gateway denies them.
443443 
from line 449
449449 
450450AWS provides five managed policies for Claude Platform on AWS. All managed policies apply to `Resource: "*"`.
451451 
452| Policy | Grants |
453| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
454| `AnthropicFullAccess` | `aws-external-anthropic:*` |
455| `AnthropicReadOnlyAccess` | `Get*`, `List*`, `CallWithBearerToken` |
456| `AnthropicInferenceAccess` | `Get*`, `List*`, `CreateInference`, `CreateBatchInference`, `CancelBatchInference`, `DeleteBatchInference`, `CountTokens`, `CallWithBearerToken` |
457| `AnthropicLimitedAccess` | All `AnthropicInferenceAccess` actions, plus all Claude Managed Agents actions (agents, sessions, environments, vaults, memory stores, webhooks, and self-hosted environment work) |
458| `AnthropicSelfHostedEnvironmentAccess` | `GetEnvironment`, `ProcessEnvironmentWork`, `GetSession`, `UpdateSession`, `GetSkill`, `CallWithBearerToken` |
452| Policy | Grants |
453| ----- | ----- |
454| `AnthropicFullAccess` | `aws-external-anthropic:*` |
455| `AnthropicReadOnlyAccess` | `Get*`, `List*`, `CallWithBearerToken` |
456| `AnthropicInferenceAccess` | `Get*`, `List*`, `CreateInference`, `CreateBatchInference`, `CancelBatchInference`, `DeleteBatchInference`, `CountTokens`, `CallWithBearerToken` |
457| `AnthropicLimitedAccess` | All `AnthropicInferenceAccess` actions, plus all Claude Managed Agents actions (agents, sessions, environments, vaults, memory stores, webhooks, and self-hosted environment work) |
458| `AnthropicSelfHostedEnvironmentAccess` | `GetEnvironment`, `ProcessEnvironmentWork`, `GetSession`, `UpdateSession`, `GetSkill`, `CallWithBearerToken` |
459459 
460460`AnthropicInferenceAccess` is the narrowest managed policy sufficient to run inference. It covers both synchronous and batch inference and, through the `Get*` and `List*` wildcards, grants read access to every API resource in the namespace, including Claude Managed Agents (CMA) resources (agents, sessions, environments, vaults, memory stores, and webhooks). This includes file content download through `GetFile` (see the [Files](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#files) note), skill content download through `GetSkill` (see the [Skills](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#skills) note), and memory contents through `GetMemoryStore`. Vault credential secrets and webhook signing secrets are not exposed: those fields are write-only and are never returned by `GetVault` or `GetWebhook` (see [Authenticate with vaults](https://platform.claude.com/docs/en/managed-agents/vaults)). `AnthropicInferenceAccess` does not grant file creation or deletion, skill management, user profile management, workspace mutation, encryption key management, telemetry destination management, or any Claude Managed Agents write action (create, update, archive, delete, process, or rotate). To exclude CMA reads, replace `AnthropicInferenceAccess` with a custom policy that enumerates only the specific non-CMA actions you need.
461461 
462462 

api/compliance Changed · +3453 / -27 lines

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

from line 19
1919 
2020#### Query parameters
2121 
22- `activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 617 more`
22- `activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 630 more`
2323 
2424 Filter activities by type. See the response `data` schema for the additional fields each type returns. Cannot be combined with `exclude_activity_types[]`.
2525 
from line 242
242242 
243243 A Claude Code session was deleted.
244244 
245 - `"ccr_session_feedback_submitted"`
246 
247 A user sent feedback on a Claude Code session to Anthropic with part of the session's transcript, or with the ID of a model response in it; not every such report produces this activity.
248 
249 - `"ccr_session_file_added"`
250 
251 A user added a file to a Claude Code session; not every file added to a session produces this activity.
252 
245253 - `"ccr_session_updated"`
246254 
247255 A Claude Code session's settings were updated.
from line 270
262270 
263271 An artifact's comments were viewed.
264272 
273 - `"claude_artifact_connector_share_created"`
274 
275 A member turned on Live sharing for one of their connectors on an artifact. The calls they approved run with their access when other people view the artifact, as the organization's sharing settings allow. Results can be saved in the artifact.
276 
277 - `"claude_artifact_connector_share_revoked"`
278 
279 A member's share of a connector (MCP server) on an artifact was revoked, so the artifact no longer runs that connector's calls with the member's access; the actor is whoever revoked it, or the system when the sharing member was found to have view access only. A share can also stop working, for a time or for good, with no such record: for example when the artifact is deleted (see claude_published_artifact_deleted), when the member removes the connector or their account is removed, when the sharing member has not opened the artifact for a long time, when the sharing member no longer has direct access to the artifact, or when an administrator turns Live sharing off.
280 
265281 - `"claude_artifact_created"`
266282 
267283 An artifact was created.
from line 546
530546 
531547 Command was replaced.
532548 
549 - `"claude_directory_domain_added"`
550 
551 An organization added a domain name it intends to prove it controls; this is separate from the organization's email domains.
552 
553 - `"claude_directory_domain_checked"`
554 
555 A check was made of whether an organization controls a domain name it added; this is separate from the organization's email domains.
556 
557 - `"claude_directory_domain_removed"`
558 
559 An organization removed a domain name it had added; this is separate from the organization's email domains. Also recorded when an organization adds again a domain name that it did not prove in the time allowed: the name is removed and added anew, so a `claude_directory_domain_added` record for the same name is created just after this one.
560 
533561 - `"claude_enterprise_upgrade_credit_updated"`
534562 
535563 An organization admin cancelled, or turned back on, the monthly usage credit the organization receives for upgrading from the Team plan to the Enterprise plan, together with the recurring monthly charge that accompanies it.
from line 1188
11601188 
11611189 - `"inference_hooks_circuit_breaker_tripped"`
11621190 
1163 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 10 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
1191 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 3 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
11641192 
11651193 - `"inference_hooks_config_deleted"`
11661194 
from line 1274
12461274 
12471275 Admin provisioned a GitHub push webhook for a marketplace.
12481276 
1277 - `"mcp_directory_server_created"`
1278 
1279 The organization created a draft MCP directory listing.
1280 
1281 - `"mcp_directory_server_deleted"`
1282 
1283 The organization deleted its MCP directory listing.
1284 
12491285 - `"mcp_directory_server_published"`
12501286 
12511287 The organization published its approved MCP directory listing.
12521288 
1289 - `"mcp_directory_server_updated"`
1290 
1291 The organization changed its MCP directory listing.
1292 
12531293 - `"mcp_server_created"`
12541294 
12551295 An MCP server was added to the organization.
from line 1322
12821322 
12831323 Organization analytics_api capability was enabled or disabled.
12841324 
1325 - `"org_ban_appeal_submitted"`
1326 
1327 A member asked Anthropic to review a ban on the organization.
1328 
12851329 - `"org_bulk_delete_initiated"`
12861330 
12871331 Organization bulk deletion was initiated.
from line 2078
20342078 
20352079 A plugin directory submission was updated on the API platform.
20362080 
2081 - `"platform_prepaid_credits_purchased"`
2082 
2083 Prepaid credits were purchased for the organization.
2084 
20372085 - `"platform_service_account_archived"`
20382086 
20392087 A service account was archived.
from line 2144
20962144 
20972145 - `"platform_spend_limit_updated"`
20982146 
2099 An org-level spend limit snooze/ignore state was changed.
2147 The amount of an org-level spend limit was changed, or the limit was snoozed or its snooze was removed.
21002148 
21012149 - `"platform_telemetry_destination_auto_disabled"`
21022150 
from line 2571
25232571 
25242572 A workspace-level API spend limit was deleted.
25252573 
2574 - `"workspace_spend_limit_updated"`
2575 
2576 The amount of a workspace-level API spend limit was changed.
2577 
25262578- `actor_ids: optional array of string`
25272579 
25282580 Filter activities by actor IDs (currently only `user_...` IDs are supported). Enumerate IDs via `GET /v1/compliance/organizations/{org_uuid}/users`.
from line 2613
25612613 
25622614 format: date-time
25632615 
2564- `exclude_activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 617 more`
2616- `exclude_activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 630 more`
25652617 
25662618 Exclude activities of these types. Cannot be combined with `activity_types[]`.
25672619 
from line 2836
27842836 
27852837 A Claude Code session was deleted.
27862838 
2839 - `"ccr_session_feedback_submitted"`
2840 
2841 A user sent feedback on a Claude Code session to Anthropic with part of the session's transcript, or with the ID of a model response in it; not every such report produces this activity.
2842 
2843 - `"ccr_session_file_added"`
2844 
2845 A user added a file to a Claude Code session; not every file added to a session produces this activity.
2846 
27872847 - `"ccr_session_updated"`
27882848 
27892849 A Claude Code session's settings were updated.
from line 2864
28042864 
28052865 An artifact's comments were viewed.
28062866 
2867 - `"claude_artifact_connector_share_created"`
2868 
2869 A member turned on Live sharing for one of their connectors on an artifact. The calls they approved run with their access when other people view the artifact, as the organization's sharing settings allow. Results can be saved in the artifact.
2870 
2871 - `"claude_artifact_connector_share_revoked"`
2872 
2873 A member's share of a connector (MCP server) on an artifact was revoked, so the artifact no longer runs that connector's calls with the member's access; the actor is whoever revoked it, or the system when the sharing member was found to have view access only. A share can also stop working, for a time or for good, with no such record: for example when the artifact is deleted (see claude_published_artifact_deleted), when the member removes the connector or their account is removed, when the sharing member has not opened the artifact for a long time, when the sharing member no longer has direct access to the artifact, or when an administrator turns Live sharing off.
2874 
28072875 - `"claude_artifact_created"`
28082876 
28092877 An artifact was created.
from line 3140
30723140 
30733141 Command was replaced.
30743142 
3143 - `"claude_directory_domain_added"`
3144 
3145 An organization added a domain name it intends to prove it controls; this is separate from the organization's email domains.
3146 
3147 - `"claude_directory_domain_checked"`
3148 
3149 A check was made of whether an organization controls a domain name it added; this is separate from the organization's email domains.
3150 
3151 - `"claude_directory_domain_removed"`
3152 
3153 An organization removed a domain name it had added; this is separate from the organization's email domains. Also recorded when an organization adds again a domain name that it did not prove in the time allowed: the name is removed and added anew, so a `claude_directory_domain_added` record for the same name is created just after this one.
3154 
30753155 - `"claude_enterprise_upgrade_credit_updated"`
30763156 
30773157 An organization admin cancelled, or turned back on, the monthly usage credit the organization receives for upgrading from the Team plan to the Enterprise plan, together with the recurring monthly charge that accompanies it.
from line 3782
37023782 
37033783 - `"inference_hooks_circuit_breaker_tripped"`
37043784 
3705 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 10 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
3785 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 3 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
37063786 
37073787 - `"inference_hooks_config_deleted"`
37083788 
from line 3868
37883868 
37893869 Admin provisioned a GitHub push webhook for a marketplace.
37903870 
3871 - `"mcp_directory_server_created"`
3872 
3873 The organization created a draft MCP directory listing.
3874 
3875 - `"mcp_directory_server_deleted"`
3876 
3877 The organization deleted its MCP directory listing.
3878 
37913879 - `"mcp_directory_server_published"`
37923880 
37933881 The organization published its approved MCP directory listing.
37943882 
3883 - `"mcp_directory_server_updated"`
3884 
3885 The organization changed its MCP directory listing.
3886 
37953887 - `"mcp_server_created"`
37963888 
37973889 An MCP server was added to the organization.
from line 3916
38243916 
38253917 Organization analytics_api capability was enabled or disabled.
38263918 
3919 - `"org_ban_appeal_submitted"`
3920 
3921 A member asked Anthropic to review a ban on the organization.
3922 
38273923 - `"org_bulk_delete_initiated"`
38283924 
38293925 Organization bulk deletion was initiated.
from line 4672
45764672 
45774673 A plugin directory submission was updated on the API platform.
45784674 
4675 - `"platform_prepaid_credits_purchased"`
4676 
4677 Prepaid credits were purchased for the organization.
4678 
45794679 - `"platform_service_account_archived"`
45804680 
45814681 A service account was archived.
from line 4738
46384738 
46394739 - `"platform_spend_limit_updated"`
46404740 
4641 An org-level spend limit snooze/ignore state was changed.
4741 The amount of an org-level spend limit was changed, or the limit was snoozed or its snooze was removed.
46424742 
46434743 - `"platform_telemetry_destination_auto_disabled"`
46444744 
from line 5165
50655165 
50665166 A workspace-level API spend limit was deleted.
50675167 
5168 - `"workspace_spend_limit_updated"`
5169 
5170 The amount of a workspace-level API spend limit was changed.
5171 
50685172- `limit: optional number`
50695173 
50705174 Maximum results (default: 100, max: 5000)
from line 5205
51015205 
51025206#### Returns
51035207 
5104- `data: optional array of AbuseDecisionReceived or AccountDeleted or AccountMigrationCompleted or 617 more`
5208- `data: optional array of AbuseDecisionReceived or AccountDeleted or AccountMigrationCompleted or 630 more`
51055209 
51065210 List of activity records. Each element's `type` field identifies which activity it is and which additional fields are present.
51075211 
from line 8772
86688772 
86698773 Asserting party: the Azure subscription the organization is bound to.
86708774 
8671 - `type: optional "azure"`
8672 
8673 default: azure
8674 
8675 - `subscription_id: string`
8676 
8677 - `Gcp object`
8678 
8679 Asserting party: the GCP project the organization is bound to.
8680 
8681 - `type: optional "gcp"`
8682 
8683 default: gcp
8684 
8685 - `project_number: string`
8686 
8687 - `Oidc object`
8688 
8689 Asserting party: a customer-registered OIDC federation issuer.
8690 
8691 - `type: optional "oidc"`
8692 
8693 default: oidc
8694 
8695 - `issuer: optional string or null`
8696 
8697 The federation issuer's URL. Null when the presented credential failed verification.
8698 
8699 - `ip_address: optional string or null`
8700 
8701 - `subject: optional string or null`
8702 
8703 The provider's verified identifier for the caller; its form depends on the provider.
8704 
8705 - `user_agent: optional string or null`
8706 
8707 - `AttestedDeviceActor object`
8708 
8709 An attested mobile device authenticated via Apple App Attest.
8710 
8711 - `type: optional "attested_device_actor"`
8712 
8713 default: attested_device_actor
8714 
8715 - `external_client_id: string`
8716 
8717 - `kid_hash: string`
8718 
8719 - `ip_address: optional string or null`
8720 
8721 - `user_agent: optional string or null`
8722 
8723 - `reason_code: "incident_response" or "safety_review" or "unspecified"`
8724 
8725 The permitted access reason under which the data was accessed.
8726 
8727 - `"incident_response"`
8728 
8729 - `"safety_review"`
8730 
8731 - `"unspecified"`
8732 
8733 - `id: optional string`
8734 
8735 Unique identifier for the activity e.g. 'activity_abcd1234'
8736 
8737 - `accessed_at: optional string or null`
8738 
8739 When the data was accessed.
8740 
8741 format: date-time
8742 
8743 - `accessor_department: optional string or null`
8744 
8745 The team or department of the Anthropic employee who accessed the data.
8746 
8747 - `created_at: optional string`
8748 
8749 When this activity occurred.
8750 
8751 format: date-time
8752 
8753 - `organization_id: optional string or null`
8754 
8755 Organization ID this activity is associated with
8756 
8757 - `organization_uuid: optional string or null`
8758 
8759 Organization UUID where the activity occurred. Null when the activity is not tied to an organization (for example, login and logout events or calls to the Compliance API).
8760 
8761 - `resource_details: optional object or null`
8762 
8763 The resource that was accessed. Some records do not name one.
8764 
8765 - `type: string`
8766 
8767 The kind of resource, for example "message" (a Messages API request). More kinds will be added, so clients should accept any value.
8768 
8769 - `id: string`
8770 
8771 The resource's identifier as the organization knows it, e.g. the tagged ID "msg_01HX...".
8772 
8773 - `transparency_log_leaf_index: optional number or null`
8774 
8775 The transparency log's org-scoped leaf index for this activity, when it was ingested through the tamper-evident log. An UNVERIFIED lookup hint: presence is never evidence of log inclusion — verify via the log's inclusion proof before treating the activity as tamper-logged. Absent for activities recorded before transparency-log coverage or outside it.
8776 
8777 - `user_profile_id: optional string or null`
8778 
8779 Tagged ID of the user profile the accessed data was created under, e.g. "uprof_01HX...". Present only when the data was created under a user profile.
8780 
8781 - `workspace_id: optional string or null`
8782 
8783 Tagged workspace ID, e.g. "wrkspc_01HX...". Not set when the data is not attributed to a workspace.
8784 
8785 - `workspace_uuid: optional string or null`
8786 
8787 **Deprecated**
8788 
8789 The workspace's ID as a UUID. Deprecated: use workspace_id instead.
8790 
8791 - `APIKeyCreated object`
8792 
8793 Activity logged when a new API key is created.
8794 
8795 - `type: optional "api_key_created"`
8796 
8797 default: api_key_created
8798 
8799 - `actor: APIActor or UserActor or UnauthenticatedUserActor or 8 more`
8800 
8801 - `APIActor object`
8802 
8803 - `type: optional "api_actor"`
8804 
8805 default: api_actor
8806 
8807 - `api_key_id: string`
8808 
8809 - `ip_address: string`
8810 
8811 - `user_agent: string`
8812 
8813 - `UserActor object`
8814 
8815 - `type: optional "user_actor"`
8816 
8817 default: user_actor
8818 
8819 - `email_address: string`
8820 
8821 format: email
8822 
8823 - `ip_address: string`
8824 
8825 - `user_agent: string`
8826 
8827 - `user_id: string`
8828 
8829 - `UnauthenticatedUserActor object`
8830 
8831 - `type: optional "unauthenticated_user_actor"`
8832 
8833 default: unauthenticated_user_actor
8834 
8835 - `ip_address: string`
8836 
8837 - `user_agent: string`
8838 
8839 - `unauthenticated_email_address: optional string or null`
8840 
8841 format: email
8842 
8843 - `AnthropicActor object`
8844 
8845 - `type: optional "anthropic_actor"`
8846 
8847 default: anthropic_actor
8848 
8849 - `email_address: optional string or null`
8850 
8851 format: email
8852 
8853 - `SystemActor object`
8854 
8855 Automated background processing performed by Anthropic systems, acting
8856 without a user or customer credential.
8857 
8858 - `type: optional "system_actor"`
8859 
8860 default: system_actor
8861 
8862 - `service: optional string or null`
8863 
8864 Name of the automated process that performed the action, when known.
8865 
8866 - `AdminAPIKeyActor object`
8867 
8868 - `type: optional "admin_api_key_actor"`
8869 
8870 default: admin_api_key_actor
8871 
8872 - `admin_api_key_id: string`
8873 
8874 - `ip_address: string`
8875 
8876 - `user_agent: string`
8877 
8878 - `ServiceAccountActor object`
8879 
8880 - `type: optional "service_account_actor"`
8881 
8882 default: service_account_actor
8883 
8884 - `ip_address: string`
8885 
8886 - `service_account_id: stri
8775

api/compliance/activities Changed · +6754 / -18 lines

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

from line 17
1717 
1818### Query parameters
1919 
20- `activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 617 more`
20- `activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 630 more`
2121 
2222 Filter activities by type. See the response `data` schema for the additional fields each type returns. Cannot be combined with `exclude_activity_types[]`.
2323 
from line 240
240240 
241241 A Claude Code session was deleted.
242242 
243 - `"ccr_session_feedback_submitted"`
244 
245 A user sent feedback on a Claude Code session to Anthropic with part of the session's transcript, or with the ID of a model response in it; not every such report produces this activity.
246 
247 - `"ccr_session_file_added"`
248 
249 A user added a file to a Claude Code session; not every file added to a session produces this activity.
250 
243251 - `"ccr_session_updated"`
244252 
245253 A Claude Code session's settings were updated.
from line 268
260268 
261269 An artifact's comments were viewed.
262270 
271 - `"claude_artifact_connector_share_created"`
272 
273 A member turned on Live sharing for one of their connectors on an artifact. The calls they approved run with their access when other people view the artifact, as the organization's sharing settings allow. Results can be saved in the artifact.
274 
275 - `"claude_artifact_connector_share_revoked"`
276 
277 A member's share of a connector (MCP server) on an artifact was revoked, so the artifact no longer runs that connector's calls with the member's access; the actor is whoever revoked it, or the system when the sharing member was found to have view access only. A share can also stop working, for a time or for good, with no such record: for example when the artifact is deleted (see claude_published_artifact_deleted), when the member removes the connector or their account is removed, when the sharing member has not opened the artifact for a long time, when the sharing member no longer has direct access to the artifact, or when an administrator turns Live sharing off.
278 
263279 - `"claude_artifact_created"`
264280 
265281 An artifact was created.
from line 544
528544 
529545 Command was replaced.
530546 
547 - `"claude_directory_domain_added"`
548 
549 An organization added a domain name it intends to prove it controls; this is separate from the organization's email domains.
550 
551 - `"claude_directory_domain_checked"`
552 
553 A check was made of whether an organization controls a domain name it added; this is separate from the organization's email domains.
554 
555 - `"claude_directory_domain_removed"`
556 
557 An organization removed a domain name it had added; this is separate from the organization's email domains. Also recorded when an organization adds again a domain name that it did not prove in the time allowed: the name is removed and added anew, so a `claude_directory_domain_added` record for the same name is created just after this one.
558 
531559 - `"claude_enterprise_upgrade_credit_updated"`
532560 
533561 An organization admin cancelled, or turned back on, the monthly usage credit the organization receives for upgrading from the Team plan to the Enterprise plan, together with the recurring monthly charge that accompanies it.
from line 1186
11581186 
11591187 - `"inference_hooks_circuit_breaker_tripped"`
11601188 
1161 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 10 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
1189 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 3 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
11621190 
11631191 - `"inference_hooks_config_deleted"`
11641192 
from line 1272
12441272 
12451273 Admin provisioned a GitHub push webhook for a marketplace.
12461274 
1275 - `"mcp_directory_server_created"`
1276 
1277 The organization created a draft MCP directory listing.
1278 
1279 - `"mcp_directory_server_deleted"`
1280 
1281 The organization deleted its MCP directory listing.
1282 
12471283 - `"mcp_directory_server_published"`
12481284 
12491285 The organization published its approved MCP directory listing.
12501286 
1287 - `"mcp_directory_server_updated"`
1288 
1289 The organization changed its MCP directory listing.
1290 
12511291 - `"mcp_server_created"`
12521292 
12531293 An MCP server was added to the organization.
from line 1320
12801320 
12811321 Organization analytics_api capability was enabled or disabled.
12821322 
1323 - `"org_ban_appeal_submitted"`
1324 
1325 A member asked Anthropic to review a ban on the organization.
1326 
12831327 - `"org_bulk_delete_initiated"`
12841328 
12851329 Organization bulk deletion was initiated.
from line 2076
20322076 
20332077 A plugin directory submission was updated on the API platform.
20342078 
2079 - `"platform_prepaid_credits_purchased"`
2080 
2081 Prepaid credits were purchased for the organization.
2082 
20352083 - `"platform_service_account_archived"`
20362084 
20372085 A service account was archived.
from line 2142
20942142 
20952143 - `"platform_spend_limit_updated"`
20962144 
2097 An org-level spend limit snooze/ignore state was changed.
2145 The amount of an org-level spend limit was changed, or the limit was snoozed or its snooze was removed.
20982146 
20992147 - `"platform_telemetry_destination_auto_disabled"`
21002148 
from line 2569
25212569 
25222570 A workspace-level API spend limit was deleted.
25232571 
2572 - `"workspace_spend_limit_updated"`
2573 
2574 The amount of a workspace-level API spend limit was changed.
2575 
25242576- `actor_ids: optional array of string`
25252577 
25262578 Filter activities by actor IDs (currently only `user_...` IDs are supported). Enumerate IDs via `GET /v1/compliance/organizations/{org_uuid}/users`.
from line 2611
25592611 
25602612 format: date-time
25612613 
2562- `exclude_activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 617 more`
2614- `exclude_activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 630 more`
25632615 
25642616 Exclude activities of these types. Cannot be combined with `activity_types[]`.
25652617 
from line 2834
27822834 
27832835 A Claude Code session was deleted.
27842836 
2837 - `"ccr_session_feedback_submitted"`
2838 
2839 A user sent feedback on a Claude Code session to Anthropic with part of the session's transcript, or with the ID of a model response in it; not every such report produces this activity.
2840 
2841 - `"ccr_session_file_added"`
2842 
2843 A user added a file to a Claude Code session; not every file added to a session produces this activity.
2844 
27852845 - `"ccr_session_updated"`
27862846 
27872847 A Claude Code session's settings were updated.
from line 2862
28022862 
28032863 An artifact's comments were viewed.
28042864 
2865 - `"claude_artifact_connector_share_created"`
2866 
2867 A member turned on Live sharing for one of their connectors on an artifact. The calls they approved run with their access when other people view the artifact, as the organization's sharing settings allow. Results can be saved in the artifact.
2868 
2869 - `"claude_artifact_connector_share_revoked"`
2870 
2871 A member's share of a connector (MCP server) on an artifact was revoked, so the artifact no longer runs that connector's calls with the member's access; the actor is whoever revoked it, or the system when the sharing member was found to have view access only. A share can also stop working, for a time or for good, with no such record: for example when the artifact is deleted (see claude_published_artifact_deleted), when the member removes the connector or their account is removed, when the sharing member has not opened the artifact for a long time, when the sharing member no longer has direct access to the artifact, or when an administrator turns Live sharing off.
2872 
28052873 - `"claude_artifact_created"`
28062874 
28072875 An artifact was created.
from line 3138
30703138 
30713139 Command was replaced.
30723140 
3141 - `"claude_directory_domain_added"`
3142 
3143 An organization added a domain name it intends to prove it controls; this is separate from the organization's email domains.
3144 
3145 - `"claude_directory_domain_checked"`
3146 
3147 A check was made of whether an organization controls a domain name it added; this is separate from the organization's email domains.
3148 
3149 - `"claude_directory_domain_removed"`
3150 
3151 An organization removed a domain name it had added; this is separate from the organization's email domains. Also recorded when an organization adds again a domain name that it did not prove in the time allowed: the name is removed and added anew, so a `claude_directory_domain_added` record for the same name is created just after this one.
3152 
30733153 - `"claude_enterprise_upgrade_credit_updated"`
30743154 
30753155 An organization admin cancelled, or turned back on, the monthly usage credit the organization receives for upgrading from the Team plan to the Enterprise plan, together with the recurring monthly charge that accompanies it.
from line 3780
37003780 
37013781 - `"inference_hooks_circuit_breaker_tripped"`
37023782 
3703 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 10 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
3783 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 3 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
37043784 
37053785 - `"inference_hooks_config_deleted"`
37063786 
from line 3866
37863866 
37873867 Admin provisioned a GitHub push webhook for a marketplace.
37883868 
3869 - `"mcp_directory_server_created"`
3870 
3871 The organization created a draft MCP directory listing.
3872 
3873 - `"mcp_directory_server_deleted"`
3874 
3875 The organization deleted its MCP directory listing.
3876 
37893877 - `"mcp_directory_server_published"`
37903878 
37913879 The organization published its approved MCP directory listing.
37923880 
3881 - `"mcp_directory_server_updated"`
3882 
3883 The organization changed its MCP directory listing.
3884 
37933885 - `"mcp_server_created"`
37943886 
37953887 An MCP server was added to the organization.
from line 3914
38223914 
38233915 Organization analytics_api capability was enabled or disabled.
38243916 
3917 - `"org_ban_appeal_submitted"`
3918 
3919 A member asked Anthropic to review a ban on the organization.
3920 
38253921 - `"org_bulk_delete_initiated"`
38263922 
38273923 Organization bulk deletion was initiated.
from line 4670
45744670 
45754671 A plugin directory submission was updated on the API platform.
45764672 
4673 - `"platform_prepaid_credits_purchased"`
4674 
4675 Prepaid credits were purchased for the organization.
4676 
45774677 - `"platform_service_account_archived"`
45784678 
45794679 A service account was archived.
from line 4736
46364736 
46374737 - `"platform_spend_limit_updated"`
46384738 
4639 An org-level spend limit snooze/ignore state was changed.
4739 The amount of an org-level spend limit was changed, or the limit was snoozed or its snooze was removed.
46404740 
46414741 - `"platform_telemetry_destination_auto_disabled"`
46424742 
from line 5163
50635163 
50645164 A workspace-level API spend limit was deleted.
50655165 
5166 - `"workspace_spend_limit_updated"`
5167 
5168 The amount of a workspace-level API spend limit was changed.
5169 
50665170- `limit: optional number`
50675171 
50685172 Maximum results (default: 100, max: 5000)
from line 5203
50995203 
51005204### Returns
51015205 
5102- `data: optional array of AbuseDecisionReceived or AccountDeleted or AccountMigrationCompleted or 617 more`
5206- `data: optional array of AbuseDecisionReceived or AccountDeleted or AccountMigrationCompleted or 630 more`
51035207 
51045208 List of activity records. Each element's `type` field identifies which activity it is and which additional fields are present.
51055209 
from line 8770
86668770 
86678771 Asserting party: the Azure subscription the organization is bound to.
86688772 
8669 - `type: optional "azure"`
8670 
8671 default: azure
8672 
8673 - `subscription_id: string`
8674 
8675 - `Gcp object`
8676 
8677 Asserting party: the GCP project the organization is bound to.
8678 
8679 - `type: optional "gcp"`
8680 
8681 default: gcp
8682 
8683 - `project_number: string`
8684 
8685 - `Oidc object`
8686 
8687 Asserting party: a customer-registered OIDC federation issuer.
8688 
8689 - `type: optional "oidc"`
8690 
8691 default: oidc
8692 
8693 - `issuer: optional string or null`
8694 
8695 The federation issuer's URL. Null when the presented credential failed verification.
8696 
8697 - `ip_address: optional string or null`
8698 
8699 - `subject: optional string or null`
8700 
8701 The provider's verified identifier for the caller; its form depends on the provider.
8702 
8703 - `user_agent: optional string or null`
8704 
8705 - `AttestedDeviceActor object`
8706 
8707 An attested mobile device authenticated via Apple App Attest.
8708 
8709 - `type: optional "attested_device_actor"`
8710 
8711 default: attested_device_actor
8712 
8713 - `external_client_id: string`
8714 
8715 - `kid_hash: string`
8716 
8717 - `ip_address: optional string or null`
8718 
8719 - `user_agent: optional string or null`
8720 
8721 - `reason_code: "incident_response" or "safety_review" or "unspecified"`
8722 
8723 The permitted access reason under which the data was accessed.
8724 
8725 - `"incident_response"`
8726 
8727 - `"safety_review"`
8728 
8729 - `"unspecified"`
8730 
8731 - `id: optional string`
8732 
8733 Unique identifier for the activity e.g. 'activity_abcd1234'
8734 
8735 - `accessed_at: optional string or null`
8736 
8737 When the data was accessed.
8738 
8739 format: date-time
8740 
8741 - `accessor_department: optional string or null`
8742 
8743 The team or department of the Anthropic employee who accessed the data.
8744 
8745 - `created_at: optional string`
8746 
8747 When this activity occurred.
8748 
8749 format: date-time
8750 
8751 - `organization_id: optional string or null`
8752 
8753 Organization ID this activity is associated with
8754 
8755 - `organization_uuid: optional string or null`
8756 
8757 Organization UUID where the activity occurred. Null when the activity is not tied to an organization (for example, login and logout events or calls to the Compliance API).
8758 
8759 - `resource_details: optional object or null`
8760 
8761 The resource that was accessed. Some records do not name one.
8762 
8763 - `type: string`
8764 
8765 The kind of resource, for example "message" (a Messages API request). More kinds will be added, so clients should accept any value.
8766 
8767 - `id: string`
8768 
8769 The resource's identifier as the organization knows it, e.g. the tagged ID "msg_01HX...".
8770 
8771 - `transparency_log_leaf_index: optional number or null`
8772 
8773 The transparency log's org-scoped leaf index for this activity, when it was ingested through the tamper-evident log. An UNVERIFIED lookup hint: presence is never evidence of log inclusion — verify via the log's inclusion proof before treating the activity as tamper-logged. Absent for activities recorded before transparency-log coverage or outside it.
8774 
8775 - `user_profile_id: optional string or null`
8776 
8777 Tagged ID of the user profile the accessed data was created under, e.g. "uprof_01HX...". Present only when the data was created under a user profile.
8778 
8779 - `workspace_id: optional string or null`
8780 
8781 Tagged workspace ID, e.g. "wrkspc_01HX...". Not set when the data is not attributed to a workspace.
8782 
8783 - `workspace_uuid: optional string or null`
8784 
8785 **Deprecated**
8786 
8787 The workspace's ID as a UUID. Deprecated: use workspace_id instead.
8788 
8789 - `APIKeyCreated object`
8790 
8791 Activity logged when a new API key is created.
8792 
8793 - `type: optional "api_key_created"`
8794 
8795 default: api_key_created
8796 
8797 - `actor: APIActor or UserActor or UnauthenticatedUserActor or 8 more`
8798 
8799 - `APIActor object`
8800 
8801 - `type: optional "api_actor"`
8802 
8803 default: api_actor
8804 
8805 - `api_key_id: string`
8806 
8807 - `ip_address: string`
8808 
8809 - `user_agent: string`
8810 
8811 - `UserActor object`
8812 
8813 - `type: optional "user_actor"`
8814 
8815 default: user_actor
8816 
8817 - `email_address: string`
8818 
8819 format: email
8820 
8821 - `ip_address: string`
8822 
8823 - `user_agent: string`
8824 
8825 - `user_id: string`
8826 
8827 - `UnauthenticatedUserActor object`
8828 
8829 - `type: optional "unauthenticated_user_actor"`
8830 
8831 default: unauthenticated_user_actor
8832 
8833 - `ip_address: string`
8834 
8835 - `user_agent: string`
8836 
8837 - `unauthenticated_email_address: optional string or null`
8838 
8839 format: email
8840 
8841 - `AnthropicActor object`
8842 
8843 - `type: optional "anthropic_actor"`
8844 
8845 default: anthropic_actor
8846 
8847 - `email_address: optional string or null`
8848 
8849 format: email
8850 
8851 - `SystemActor object`
8852 
8853 Automated background processing performed by Anthropic systems, acting
8854 without a user or customer credential.
8855 
8856 - `type: optional "system_actor"`
8857 
8858 default: system_actor
8859 
8860 - `service: optional string or null`
8861 
8862 Name of the automated process that performed the action, when known.
8863 
8864 - `AdminAPIKeyActor object`
8865 
8866 - `type: optional "admin_api_key_actor"`
8867 
8868 default: admin_api_key_actor
8869 
8870 - `admin_api_key_id: string`
8871 
8872 - `ip_address: string`
8873 
8874 - `user_agent: string`
8875 
8876 - `ServiceAccountActor object`
8877 
8878 - `type: optional "service_account_actor"`
8879 
8880 default: service_account_actor
8881 
8882 - `ip_address: string`
8883 
8884 - `service_account_id: string`
8885 
8886 - `user_agent: string`
8773 - `type: optional "azure

api/compliance/activities/list Changed · +3432 / -12 lines

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

from line 15
1515 
1616## Query parameters
1717 
18- `activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 617 more`
18- `activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 630 more`
1919 
2020 Filter activities by type. See the response `data` schema for the additional fields each type returns. Cannot be combined with `exclude_activity_types[]`.
2121 
from line 238
238238 
239239 A Claude Code session was deleted.
240240 
241 - `"ccr_session_feedback_submitted"`
242 
243 A user sent feedback on a Claude Code session to Anthropic with part of the session's transcript, or with the ID of a model response in it; not every such report produces this activity.
244 
245 - `"ccr_session_file_added"`
246 
247 A user added a file to a Claude Code session; not every file added to a session produces this activity.
248 
241249 - `"ccr_session_updated"`
242250 
243251 A Claude Code session's settings were updated.
from line 266
258266 
259267 An artifact's comments were viewed.
260268 
269 - `"claude_artifact_connector_share_created"`
270 
271 A member turned on Live sharing for one of their connectors on an artifact. The calls they approved run with their access when other people view the artifact, as the organization's sharing settings allow. Results can be saved in the artifact.
272 
273 - `"claude_artifact_connector_share_revoked"`
274 
275 A member's share of a connector (MCP server) on an artifact was revoked, so the artifact no longer runs that connector's calls with the member's access; the actor is whoever revoked it, or the system when the sharing member was found to have view access only. A share can also stop working, for a time or for good, with no such record: for example when the artifact is deleted (see claude_published_artifact_deleted), when the member removes the connector or their account is removed, when the sharing member has not opened the artifact for a long time, when the sharing member no longer has direct access to the artifact, or when an administrator turns Live sharing off.
276 
261277 - `"claude_artifact_created"`
262278 
263279 An artifact was created.
from line 542
526542 
527543 Command was replaced.
528544 
545 - `"claude_directory_domain_added"`
546 
547 An organization added a domain name it intends to prove it controls; this is separate from the organization's email domains.
548 
549 - `"claude_directory_domain_checked"`
550 
551 A check was made of whether an organization controls a domain name it added; this is separate from the organization's email domains.
552 
553 - `"claude_directory_domain_removed"`
554 
555 An organization removed a domain name it had added; this is separate from the organization's email domains. Also recorded when an organization adds again a domain name that it did not prove in the time allowed: the name is removed and added anew, so a `claude_directory_domain_added` record for the same name is created just after this one.
556 
529557 - `"claude_enterprise_upgrade_credit_updated"`
530558 
531559 An organization admin cancelled, or turned back on, the monthly usage credit the organization receives for upgrading from the Team plan to the Enterprise plan, together with the recurring monthly charge that accompanies it.
from line 1184
11561184 
11571185 - `"inference_hooks_circuit_breaker_tripped"`
11581186 
1159 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 10 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
1187 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 3 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
11601188 
11611189 - `"inference_hooks_config_deleted"`
11621190 
from line 1270
12421270 
12431271 Admin provisioned a GitHub push webhook for a marketplace.
12441272 
1273 - `"mcp_directory_server_created"`
1274 
1275 The organization created a draft MCP directory listing.
1276 
1277 - `"mcp_directory_server_deleted"`
1278 
1279 The organization deleted its MCP directory listing.
1280 
12451281 - `"mcp_directory_server_published"`
12461282 
12471283 The organization published its approved MCP directory listing.
12481284 
1285 - `"mcp_directory_server_updated"`
1286 
1287 The organization changed its MCP directory listing.
1288 
12491289 - `"mcp_server_created"`
12501290 
12511291 An MCP server was added to the organization.
from line 1318
12781318 
12791319 Organization analytics_api capability was enabled or disabled.
12801320 
1321 - `"org_ban_appeal_submitted"`
1322 
1323 A member asked Anthropic to review a ban on the organization.
1324 
12811325 - `"org_bulk_delete_initiated"`
12821326 
12831327 Organization bulk deletion was initiated.
from line 2074
20302074 
20312075 A plugin directory submission was updated on the API platform.
20322076 
2077 - `"platform_prepaid_credits_purchased"`
2078 
2079 Prepaid credits were purchased for the organization.
2080 
20332081 - `"platform_service_account_archived"`
20342082 
20352083 A service account was archived.
from line 2140
20922140 
20932141 - `"platform_spend_limit_updated"`
20942142 
2095 An org-level spend limit snooze/ignore state was changed.
2143 The amount of an org-level spend limit was changed, or the limit was snoozed or its snooze was removed.
20962144 
20972145 - `"platform_telemetry_destination_auto_disabled"`
20982146 
from line 2567
25192567 
25202568 A workspace-level API spend limit was deleted.
25212569 
2570 - `"workspace_spend_limit_updated"`
2571 
2572 The amount of a workspace-level API spend limit was changed.
2573 
25222574- `actor_ids: optional array of string`
25232575 
25242576 Filter activities by actor IDs (currently only `user_...` IDs are supported). Enumerate IDs via `GET /v1/compliance/organizations/{org_uuid}/users`.
from line 2609
25572609 
25582610 format: date-time
25592611 
2560- `exclude_activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 617 more`
2612- `exclude_activity_types: optional array of "abuse_decision_received" or "account_deleted" or "account_migration_completed" or 630 more`
25612613 
25622614 Exclude activities of these types. Cannot be combined with `activity_types[]`.
25632615 
from line 2832
27802832 
27812833 A Claude Code session was deleted.
27822834 
2835 - `"ccr_session_feedback_submitted"`
2836 
2837 A user sent feedback on a Claude Code session to Anthropic with part of the session's transcript, or with the ID of a model response in it; not every such report produces this activity.
2838 
2839 - `"ccr_session_file_added"`
2840 
2841 A user added a file to a Claude Code session; not every file added to a session produces this activity.
2842 
27832843 - `"ccr_session_updated"`
27842844 
27852845 A Claude Code session's settings were updated.
from line 2860
28002860 
28012861 An artifact's comments were viewed.
28022862 
2863 - `"claude_artifact_connector_share_created"`
2864 
2865 A member turned on Live sharing for one of their connectors on an artifact. The calls they approved run with their access when other people view the artifact, as the organization's sharing settings allow. Results can be saved in the artifact.
2866 
2867 - `"claude_artifact_connector_share_revoked"`
2868 
2869 A member's share of a connector (MCP server) on an artifact was revoked, so the artifact no longer runs that connector's calls with the member's access; the actor is whoever revoked it, or the system when the sharing member was found to have view access only. A share can also stop working, for a time or for good, with no such record: for example when the artifact is deleted (see claude_published_artifact_deleted), when the member removes the connector or their account is removed, when the sharing member has not opened the artifact for a long time, when the sharing member no longer has direct access to the artifact, or when an administrator turns Live sharing off.
2870 
28032871 - `"claude_artifact_created"`
28042872 
28052873 An artifact was created.
from line 3136
30683136 
30693137 Command was replaced.
30703138 
3139 - `"claude_directory_domain_added"`
3140 
3141 An organization added a domain name it intends to prove it controls; this is separate from the organization's email domains.
3142 
3143 - `"claude_directory_domain_checked"`
3144 
3145 A check was made of whether an organization controls a domain name it added; this is separate from the organization's email domains.
3146 
3147 - `"claude_directory_domain_removed"`
3148 
3149 An organization removed a domain name it had added; this is separate from the organization's email domains. Also recorded when an organization adds again a domain name that it did not prove in the time allowed: the name is removed and added anew, so a `claude_directory_domain_added` record for the same name is created just after this one.
3150 
30713151 - `"claude_enterprise_upgrade_credit_updated"`
30723152 
30733153 An organization admin cancelled, or turned back on, the monthly usage credit the organization receives for upgrading from the Team plan to the Enterprise plan, together with the recurring monthly charge that accompanies it.
from line 3778
36983778 
36993779 - `"inference_hooks_circuit_breaker_tripped"`
37003780 
3701 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 10 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
3781 The organization's Inference hooks circuit breaker tripped automatically: calls to the organization's Inference hooks endpoint crossed a failure threshold, and inspection was suspended to protect live traffic. While tripped, requests are handled according to the organization's failure handling setting — allowed through uninspected (fail open) or rejected (fail closed) — and no per-request Inference hooks activities are recorded. Inspection turns back on by itself once the organization's Inference hooks endpoint returns a valid allow or deny answer to Anthropic's test request again, at least 3 minutes after the trip. An administrator can also end the tripped state by re-enabling Inference hooks inspection. If an administrator saves the Inference hooks settings after the trip (even without changing anything) or generates a new signing secret, inspection no longer turns back on by itself and stays off until an administrator re-enables it.
37023782 
37033783 - `"inference_hooks_config_deleted"`
37043784 
from line 3864
37843864 
37853865 Admin provisioned a GitHub push webhook for a marketplace.
37863866 
3867 - `"mcp_directory_server_created"`
3868 
3869 The organization created a draft MCP directory listing.
3870 
3871 - `"mcp_directory_server_deleted"`
3872 
3873 The organization deleted its MCP directory listing.
3874 
37873875 - `"mcp_directory_server_published"`
37883876 
37893877 The organization published its approved MCP directory listing.
37903878 
3879 - `"mcp_directory_server_updated"`
3880 
3881 The organization changed its MCP directory listing.
3882 
37913883 - `"mcp_server_created"`
37923884 
37933885 An MCP server was added to the organization.
from line 3912
38203912 
38213913 Organization analytics_api capability was enabled or disabled.
38223914 
3915 - `"org_ban_appeal_submitted"`
3916 
3917 A member asked Anthropic to review a ban on the organization.
3918 
38233919 - `"org_bulk_delete_initiated"`
38243920 
38253921 Organization bulk deletion was initiated.
from line 4668
45724668 
45734669 A plugin directory submission was updated on the API platform.
45744670 
4671 - `"platform_prepaid_credits_purchased"`
4672 
4673 Prepaid credits were purchased for the organization.
4674 
45754675 - `"platform_service_account_archived"`
45764676 
45774677 A service account was archived.
from line 4734
46344734 
46354735 - `"platform_spend_limit_updated"`
46364736 
4637 An org-level spend limit snooze/ignore state was changed.
4737 The amount of an org-level spend limit was changed, or the limit was snoozed or its snooze was removed.
46384738 
46394739 - `"platform_telemetry_destination_auto_disabled"`
46404740 
from line 5161
50615161 
50625162 A workspace-level API spend limit was deleted.
50635163 
5164 - `"workspace_spend_limit_updated"`
5165 
5166 The amount of a workspace-level API spend limit was changed.
5167 
50645168- `limit: optional number`
50655169 
50665170 Maximum results (default: 100, max: 5000)
from line 5201
50975201 
50985202## Returns
50995203 
5100- `data: optional array of AbuseDecisionReceived or AccountDeleted or AccountMigrationCompleted or 617 more`
5204- `data: optional array of AbuseDecisionReceived or AccountDeleted or AccountMigrationCompleted or 630 more`
51015205 
51025206 List of activity records. Each element's `type` field identifies which activity it is and which additional fields are present.
51035207 
from line 8768
86648768 
86658769 Asserting party: the Azure subscription the organization is bound to.
86668770 
8667 - `type: optional "azure"`
8668 
8669 default: azure
8670 
8671 - `subscription_id: string`
8672 
8673 - `Gcp object`
8674 
8675 Asserting party: the GCP project the organization is bound to.
8676 
8677 - `type: optional "gcp"`
8678 
8679 default: gcp
8680 
8681 - `project_number: string`
8682 
8683 - `Oidc object`
8684 
8685 Asserting party: a customer-registered OIDC federation issuer.
8686 
8687 - `type: optional "oidc"`
8688 
8689 default: oidc
8690 
8691 - `issuer: optional string or null`
8692 
8693 The federation issuer's URL. Null when the presented credential failed verification.
8694 
8695 - `ip_address: optional string or null`
8696 
8697 - `subject: optional string or null`
8698 
8699 The provider's verified identifier for the caller; its form depends on the provider.
8700 
8701 - `user_agent: optional string or null`
8702 
8703 - `AttestedDeviceActor object`
8704 
8705 An attested mobile device authenticated via Apple App Attest.
8706 
8707 - `type: optional "attested_device_actor"`
8708 
8709 default: attested_device_actor
8710 
8711 - `external_client_id: string`
8712 
8713 - `kid_hash: string`
8714 
8715 - `ip_address: optional string or null`
8716 
8717 - `user_agent: optional string or null`
8718 
8719 - `reason_code: "incident_response" or "safety_review" or "unspecified"`
8720 
8721 The permitted access reason under which the data was accessed.
8722 
8723 - `"incident_response"`
8724 
8725 - `"safety_review"`
8726 
8727 - `"unspecified"`
8728 
8729 - `id: optional string`
8730 
8731 Unique identifier for the activity e.g. 'activity_abcd1234'
8732 
8733 - `accessed_at: optional string or null`
8734 
8735 When the data was accessed.
8736 
8737 format: date-time
8738 
8739 - `accessor_department: optional string or null`
8740 
8741 The team or department of the Anthropic employee who accessed the data.
8742 
8743 - `created_at: optional string`
8744 
8745 When this activity occurred.
8746 
8747 format: date-time
8748 
8749 - `organization_id: optional string or null`
8750 
8751 Organization ID this activity is associated with
8752 
8753 - `organization_uuid: optional string or null`
8754 
8755 Organization UUID where the activity occurred. Null when the activity is not tied to an organization (for example, login and logout events or calls to the Compliance API).
8756 
8757 - `resource_details: optional object or null`
8758 
8759 The resource that was accessed. Some records do not name one.
8760 
8761 - `type: string`
8762 
8763 The kind of resource, for example "message" (a Messages API request). More kinds will be added, so clients should accept any value.
8764 
8765 - `id: string`
8766 
8767 The resource's identifier as the organization knows it, e.g. the tagged ID "msg_01HX...".
8768 
8769 - `transparency_log_leaf_index: optional number or null`
8770 
8771 The transparency log's org-scoped leaf index for this activity, when it was ingested through the tamper-evident log. An UNVERIFIED lookup hint: presence is never evidence of log inclusion — verify via the log's inclusion proof before treating the activity as tamper-logged. Absent for activities recorded before transparency-log coverage or outside it.
8772 
8773 - `user_profile_id: optional string or null`
8774 
8775 Tagged ID of the user profile the accessed data was created under, e.g. "uprof_01HX...". Present only when the data was created under a user profile.
8776 
8777 - `workspace_id: optional string or null`
8778 
8779 Tagged workspace ID, e.g. "wrkspc_01HX...". Not set when the data is not attributed to a workspace.
8780 
8781 - `workspace_uuid: optional string or null`
8782 
8783 **Deprecated**
8784 
8785 The workspace's ID as a UUID. Deprecated: use workspace_id instead.
8786 
8787 - `APIKeyCreated object`
8788 
8789 Activity logged when a new API key is created.
8790 
8791 - `type: optional "api_key_created"`
8792 
8793 default: api_key_created
8794 
8795 - `actor: APIActor or UserActor or UnauthenticatedUserActor or 8 more`
8796 
8797 - `APIActor object`
8798 
8799 - `type: optional "api_actor"`
8800 
8801 default: api_actor
8802 
8803 - `api_key_id: string`
8804 
8805 - `ip_address: string`
8806 
8807 - `user_agent: string`
8808 
8809 - `UserActor object`
8810 
8811 - `type: optional "user_actor"`
8812 
8813 default: user_actor
8814 
8815 - `email_address: string`
8816 
8817 format: email
8818 
8819 - `ip_address: string`
8820 
8821 - `user_agent: string`
8822 
8823 - `user_id: string`
8824 
8825 - `UnauthenticatedUserActor object`
8826 
8827 - `type: optional "unauthenticated_user_actor"`
8828 
8829 default: unauthenticated_user_actor
8830 
8831 - `ip_address: string`
8832 
8833 - `user_agent: string`
8834 
8835 - `unauthenticated_email_address: optional string or null`
8836 
8837 format: email
8838 
8839 - `AnthropicActor object`
8840 
8841 - `type: optional "anthropic_actor"`
8842 
8843 default: anthropic_actor
8844 
8845 - `email_address: optional string or null`
8846 
8847 format: email
8848 
8849 - `SystemActor object`
8850 
8851 Automated background processing performed by Anthropic systems, acting
8852 without a user or customer credential.
8853 
8854 - `type: optional "system_actor"`
8855 
8856 default: system_actor
8857 
8858 - `service: optional string or null`
8859 
8860 Name of the automated process that performed the action, when known.
8861 
8862 - `AdminAPIKeyActor object`
8863 
8864 - `type: optional "admin_api_key_actor"`
8865 
8866 default: admin_api_key_actor
8867 
8868 - `admin_api_key_id: string`
8869 
8870 - `ip_address: string`
8871 
8872 - `user_agent: string`
8873 
8874 - `ServiceAccountActor object`
8875 
8876 - `type: optional "service_account_actor"`
8877 
8878 default: service_account_actor
8879 
8880 - `ip_address: string`
8881 
8882 - `service_account_id: string`
8883 
8884 - `user_agent: str
8771 - `type: optional "a

api/compliance/apps Changed · +27 / -21 lines

from line 3561
35613561 
35623562Streams the content of one version of an Artifact as the response body, in chunks with no `Content-Length`. With `multi_file_format=zip`, a version with more than one file, other than a Claude Doc's or a Claude Sheet's (an Artifact whose `artifact_type` is `claude_docs` or `claude_sheets`), comes back as a ZIP archive of its files.
35633563 
3564Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A download of a version does not include that content, and a ZIP archive's index, `files.json`, does not list it.
3565 
35643566Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}-{version_id}.zip` for a ZIP archive, otherwise `{artifact_id}-{version_id}.txt`, whatever the content is. `Content-MD5` is only on a single file stored uncompressed, so it is never on a ZIP archive. Check the body against it when present.
35653567 
35663568Errors specific to this download:
from line 3569
35673569 
35683570- `404`: the Artifact doesn't exist or the API key cannot read it, or the version is no longer kept. Older versions are dropped as new ones are published, so list the Artifact's versions again. You also get this when the organization's customer-managed encryption key can't be used. Retry once the key can be used again.
35693571- `503`: the content can't be served right now, for example because its upload is still in progress or was abandoned. Retry with backoff.
3570- `422` with `error.details.error_code` `multi_file_unavailable`: the version has more than one file. Add `multi_file_format=zip`. A Claude Doc's or a Claude Sheet's version with more than one file gets this error either way, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
3572- `422` with `error.details.error_code` `multi_file_unavailable`: the version cannot be returned as a single file, for example because it has more than one file. Add `multi_file_format=zip` when the error's message says to. A Claude Doc's or a Claude Sheet's version with more than one file gets this error with or without `multi_file_format=zip`, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
35713573- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the version has more than one file, and one of them has a path the API cannot export. Do not retry.
35723574 
3573An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
3575An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
35743576 
3575A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
3577A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
35763578 
3577`files.json` has these fields:
3579An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
35783580 
3581`files.json` includes these fields:
3582 
35793583- `artifact_id`: the Artifact ID, as in the request.
35803584- `version_id`: the version ID, as in the request.
35813585- `title`: the title of the version in the archive, or that version's ID when no title is kept.
35823586- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
35833587- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
3584- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
3588- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
35853589 
3586`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
3590`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
35873591 
35883592#### Path parameters
35893593 
from line 3603
35993603 
36003604- `multi_file_format: optional string`
36013605 
3602 Set to `zip`, its only value, to receive a version that has more than one file as a ZIP archive of its files with an index, `files.json`. A version with one file is returned as that file. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
3606 Set to `zip`, its only value, to ask for a ZIP archive with an index, `files.json`, when a version cannot be returned as a single file, such as when it has more than one file. Any other version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
36033607 
36043608#### Headers
36053609 
from line 3633
36293633 
36303634For a Claude Sheet (an Artifact whose `artifact_type` is `claude_sheets`), the request must set `multi_file_format=zip` too, and the content is the Sheet's data as a ZIP archive that holds one .xlsx file, named `01-<id>.xlsx`, where `<id>` is an opaque identifier. The file has all of the Sheet's tabs and, when the Sheet has dropdowns, one more hidden tab that lists their options. It leaves out charts, conditional formatting and comments, among other things. A formula that an .xlsx file cannot hold is written as its result. If the Sheet's formulas cannot be calculated in time, every formula comes with `#VALUE!` in place of its result. That ZIP has no `files.json` either.
36313635 
3632For any other Artifact, the content is the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files.
3636For any other Artifact, the download is of the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files. Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A single file does not include that content. A ZIP archive of a version's files includes it only if its index, `files.json`, lists it.
36333637 
36343638Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}.zip` for a ZIP archive, otherwise `{artifact_id}.txt`, whatever the content is. `Content-MD5` is always on a Claude Doc's or a Claude Sheet's ZIP, only on a single file stored uncompressed, and never on a ZIP archive of a version's files. Check the body against it when present.
36353639 
from line 3642
36383642- `404`: the Artifact doesn't exist, or the API key cannot read it.
36393643- `400` with `error.details.error_code` `cmek_key_disabled`: the organization's customer-managed encryption key can't be used, for example because it is disabled or revoked. Retry once the key can be used again.
36403644- `503`: the content can't be produced right now. Wait the number of seconds in the `Retry-After` header, or retry with backoff when it is absent.
3641- `422` with `multi_file_unavailable`: the request does not set `multi_file_format=zip`, and the Artifact is a Claude Doc or a Claude Sheet, or its latest version has more than one file. Add the parameter.
3645- `422` with `multi_file_unavailable`: the Artifact is a Claude Doc or a Claude Sheet and the request does not set `multi_file_format=zip`, or the latest version cannot be returned as a single file. Add the parameter when the error's message says to.
36423646- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the Artifact is neither a Claude Doc nor a Claude Sheet, and one of the latest version's files has a path the API cannot export. Do not retry.
36433647- `422` with `document_unavailable`: Claude Docs has no document it can export for the Doc, for example because it has no text tab or is in the trash. For a Claude Sheet, nothing can be returned as an .xlsx file, for example because the Sheet is in the trash. Retrying will not help unless that changes.
36443648- `422` with `document_too_large`: the Doc's or the Sheet's export is over 16 MiB. Do not retry.
36453649- `422` with `cmek_org_unsupported`: the organization uses customer-managed encryption keys and the export can't be served for it right now. Try again later, and contact Anthropic support if this continues.
36463650 
3647An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
3651An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
36483652 
3649A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
3653A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
36503654 
3651`files.json` has these fields:
3655An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
36523656 
3657`files.json` includes these fields:
3658 
36533659- `artifact_id`: the Artifact ID, as in the request.
36543660- `version_id`: null.
36553661- `title`: the title of the version in the archive, or that version's ID when no title is kept.
36563662- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
36573663- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
3658- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
3664- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
36593665 
3660`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
3666`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
36613667 
36623668#### Path parameters
36633669 
from line 3675
36693675 
36703676- `multi_file_format: optional string`
36713677 
3672 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`.
3678 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`. Otherwise the latest version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`.
36733679 
36743680#### Headers
36753681 

api/compliance/apps/code Changed · +27 / -21 lines

from line 229
229229 
230230Streams the content of one version of an Artifact as the response body, in chunks with no `Content-Length`. With `multi_file_format=zip`, a version with more than one file, other than a Claude Doc's or a Claude Sheet's (an Artifact whose `artifact_type` is `claude_docs` or `claude_sheets`), comes back as a ZIP archive of its files.
231231 
232Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A download of a version does not include that content, and a ZIP archive's index, `files.json`, does not list it.
233 
232234Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}-{version_id}.zip` for a ZIP archive, otherwise `{artifact_id}-{version_id}.txt`, whatever the content is. `Content-MD5` is only on a single file stored uncompressed, so it is never on a ZIP archive. Check the body against it when present.
233235 
234236Errors specific to this download:
from line 237
235237 
236238- `404`: the Artifact doesn't exist or the API key cannot read it, or the version is no longer kept. Older versions are dropped as new ones are published, so list the Artifact's versions again. You also get this when the organization's customer-managed encryption key can't be used. Retry once the key can be used again.
237239- `503`: the content can't be served right now, for example because its upload is still in progress or was abandoned. Retry with backoff.
238- `422` with `error.details.error_code` `multi_file_unavailable`: the version has more than one file. Add `multi_file_format=zip`. A Claude Doc's or a Claude Sheet's version with more than one file gets this error either way, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
240- `422` with `error.details.error_code` `multi_file_unavailable`: the version cannot be returned as a single file, for example because it has more than one file. Add `multi_file_format=zip` when the error's message says to. A Claude Doc's or a Claude Sheet's version with more than one file gets this error with or without `multi_file_format=zip`, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
239241- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the version has more than one file, and one of them has a path the API cannot export. Do not retry.
240242 
241An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
243An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
242244 
243A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
245A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
244246 
245`files.json` has these fields:
247An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
246248 
249`files.json` includes these fields:
250 
247251- `artifact_id`: the Artifact ID, as in the request.
248252- `version_id`: the version ID, as in the request.
249253- `title`: the title of the version in the archive, or that version's ID when no title is kept.
250254- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
251255- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
252- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
256- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
253257 
254`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
258`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
255259 
256260#### Path parameters
257261 
from line 271
267271 
268272- `multi_file_format: optional string`
269273 
270 Set to `zip`, its only value, to receive a version that has more than one file as a ZIP archive of its files with an index, `files.json`. A version with one file is returned as that file. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
274 Set to `zip`, its only value, to ask for a ZIP archive with an index, `files.json`, when a version cannot be returned as a single file, such as when it has more than one file. Any other version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
271275 
272276#### Headers
273277 
from line 301
297301 
298302For a Claude Sheet (an Artifact whose `artifact_type` is `claude_sheets`), the request must set `multi_file_format=zip` too, and the content is the Sheet's data as a ZIP archive that holds one .xlsx file, named `01-<id>.xlsx`, where `<id>` is an opaque identifier. The file has all of the Sheet's tabs and, when the Sheet has dropdowns, one more hidden tab that lists their options. It leaves out charts, conditional formatting and comments, among other things. A formula that an .xlsx file cannot hold is written as its result. If the Sheet's formulas cannot be calculated in time, every formula comes with `#VALUE!` in place of its result. That ZIP has no `files.json` either.
299303 
300For any other Artifact, the content is the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files.
304For any other Artifact, the download is of the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files. Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A single file does not include that content. A ZIP archive of a version's files includes it only if its index, `files.json`, lists it.
301305 
302306Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}.zip` for a ZIP archive, otherwise `{artifact_id}.txt`, whatever the content is. `Content-MD5` is always on a Claude Doc's or a Claude Sheet's ZIP, only on a single file stored uncompressed, and never on a ZIP archive of a version's files. Check the body against it when present.
303307 
from line 310
306310- `404`: the Artifact doesn't exist, or the API key cannot read it.
307311- `400` with `error.details.error_code` `cmek_key_disabled`: the organization's customer-managed encryption key can't be used, for example because it is disabled or revoked. Retry once the key can be used again.
308312- `503`: the content can't be produced right now. Wait the number of seconds in the `Retry-After` header, or retry with backoff when it is absent.
309- `422` with `multi_file_unavailable`: the request does not set `multi_file_format=zip`, and the Artifact is a Claude Doc or a Claude Sheet, or its latest version has more than one file. Add the parameter.
313- `422` with `multi_file_unavailable`: the Artifact is a Claude Doc or a Claude Sheet and the request does not set `multi_file_format=zip`, or the latest version cannot be returned as a single file. Add the parameter when the error's message says to.
310314- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the Artifact is neither a Claude Doc nor a Claude Sheet, and one of the latest version's files has a path the API cannot export. Do not retry.
311315- `422` with `document_unavailable`: Claude Docs has no document it can export for the Doc, for example because it has no text tab or is in the trash. For a Claude Sheet, nothing can be returned as an .xlsx file, for example because the Sheet is in the trash. Retrying will not help unless that changes.
312316- `422` with `document_too_large`: the Doc's or the Sheet's export is over 16 MiB. Do not retry.
313317- `422` with `cmek_org_unsupported`: the organization uses customer-managed encryption keys and the export can't be served for it right now. Try again later, and contact Anthropic support if this continues.
314318 
315An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
319An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
316320 
317A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
321A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
318322 
319`files.json` has these fields:
323An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
320324 
325`files.json` includes these fields:
326 
321327- `artifact_id`: the Artifact ID, as in the request.
322328- `version_id`: null.
323329- `title`: the title of the version in the archive, or that version's ID when no title is kept.
324330- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
325331- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
326- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
332- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
327333 
328`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
334`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
329335 
330336#### Path parameters
331337 
from line 343
337343 
338344- `multi_file_format: optional string`
339345 
340 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`.
346 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`. Otherwise the latest version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`.
341347 
342348#### Headers
343349 

api/compliance/apps/code/artifacts Changed · +27 / -21 lines

from line 227
227227 
228228Streams the content of one version of an Artifact as the response body, in chunks with no `Content-Length`. With `multi_file_format=zip`, a version with more than one file, other than a Claude Doc's or a Claude Sheet's (an Artifact whose `artifact_type` is `claude_docs` or `claude_sheets`), comes back as a ZIP archive of its files.
229229 
230Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A download of a version does not include that content, and a ZIP archive's index, `files.json`, does not list it.
231 
230232Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}-{version_id}.zip` for a ZIP archive, otherwise `{artifact_id}-{version_id}.txt`, whatever the content is. `Content-MD5` is only on a single file stored uncompressed, so it is never on a ZIP archive. Check the body against it when present.
231233 
232234Errors specific to this download:
from line 235
233235 
234236- `404`: the Artifact doesn't exist or the API key cannot read it, or the version is no longer kept. Older versions are dropped as new ones are published, so list the Artifact's versions again. You also get this when the organization's customer-managed encryption key can't be used. Retry once the key can be used again.
235237- `503`: the content can't be served right now, for example because its upload is still in progress or was abandoned. Retry with backoff.
236- `422` with `error.details.error_code` `multi_file_unavailable`: the version has more than one file. Add `multi_file_format=zip`. A Claude Doc's or a Claude Sheet's version with more than one file gets this error either way, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
238- `422` with `error.details.error_code` `multi_file_unavailable`: the version cannot be returned as a single file, for example because it has more than one file. Add `multi_file_format=zip` when the error's message says to. A Claude Doc's or a Claude Sheet's version with more than one file gets this error with or without `multi_file_format=zip`, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
237239- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the version has more than one file, and one of them has a path the API cannot export. Do not retry.
238240 
239An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
241An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
240242 
241A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
243A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
242244 
243`files.json` has these fields:
245An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
244246 
247`files.json` includes these fields:
248 
245249- `artifact_id`: the Artifact ID, as in the request.
246250- `version_id`: the version ID, as in the request.
247251- `title`: the title of the version in the archive, or that version's ID when no title is kept.
248252- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
249253- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
250- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
254- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
251255 
252`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
256`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
253257 
254258### Path parameters
255259 
from line 269
265269 
266270- `multi_file_format: optional string`
267271 
268 Set to `zip`, its only value, to receive a version that has more than one file as a ZIP archive of its files with an index, `files.json`. A version with one file is returned as that file. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
272 Set to `zip`, its only value, to ask for a ZIP archive with an index, `files.json`, when a version cannot be returned as a single file, such as when it has more than one file. Any other version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
269273 
270274### Headers
271275 
from line 299
295299 
296300For a Claude Sheet (an Artifact whose `artifact_type` is `claude_sheets`), the request must set `multi_file_format=zip` too, and the content is the Sheet's data as a ZIP archive that holds one .xlsx file, named `01-<id>.xlsx`, where `<id>` is an opaque identifier. The file has all of the Sheet's tabs and, when the Sheet has dropdowns, one more hidden tab that lists their options. It leaves out charts, conditional formatting and comments, among other things. A formula that an .xlsx file cannot hold is written as its result. If the Sheet's formulas cannot be calculated in time, every formula comes with `#VALUE!` in place of its result. That ZIP has no `files.json` either.
297301 
298For any other Artifact, the content is the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files.
302For any other Artifact, the download is of the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files. Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A single file does not include that content. A ZIP archive of a version's files includes it only if its index, `files.json`, lists it.
299303 
300304Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}.zip` for a ZIP archive, otherwise `{artifact_id}.txt`, whatever the content is. `Content-MD5` is always on a Claude Doc's or a Claude Sheet's ZIP, only on a single file stored uncompressed, and never on a ZIP archive of a version's files. Check the body against it when present.
301305 
from line 308
304308- `404`: the Artifact doesn't exist, or the API key cannot read it.
305309- `400` with `error.details.error_code` `cmek_key_disabled`: the organization's customer-managed encryption key can't be used, for example because it is disabled or revoked. Retry once the key can be used again.
306310- `503`: the content can't be produced right now. Wait the number of seconds in the `Retry-After` header, or retry with backoff when it is absent.
307- `422` with `multi_file_unavailable`: the request does not set `multi_file_format=zip`, and the Artifact is a Claude Doc or a Claude Sheet, or its latest version has more than one file. Add the parameter.
311- `422` with `multi_file_unavailable`: the Artifact is a Claude Doc or a Claude Sheet and the request does not set `multi_file_format=zip`, or the latest version cannot be returned as a single file. Add the parameter when the error's message says to.
308312- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the Artifact is neither a Claude Doc nor a Claude Sheet, and one of the latest version's files has a path the API cannot export. Do not retry.
309313- `422` with `document_unavailable`: Claude Docs has no document it can export for the Doc, for example because it has no text tab or is in the trash. For a Claude Sheet, nothing can be returned as an .xlsx file, for example because the Sheet is in the trash. Retrying will not help unless that changes.
310314- `422` with `document_too_large`: the Doc's or the Sheet's export is over 16 MiB. Do not retry.
311315- `422` with `cmek_org_unsupported`: the organization uses customer-managed encryption keys and the export can't be served for it right now. Try again later, and contact Anthropic support if this continues.
312316 
313An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
317An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
314318 
315A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
319A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
316320 
317`files.json` has these fields:
321An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
318322 
323`files.json` includes these fields:
324 
319325- `artifact_id`: the Artifact ID, as in the request.
320326- `version_id`: null.
321327- `title`: the title of the version in the archive, or that version's ID when no title is kept.
322328- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
323329- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
324- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
330- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
325331 
326`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
332`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
327333 
328334### Path parameters
329335 
from line 341
335341 
336342- `multi_file_format: optional string`
337343 
338 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`.
344 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`. Otherwise the latest version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`.
339345 
340346### Headers
341347 

api/compliance/apps/code/artifacts/download Changed · +10 / -8 lines

from line 13
1313 
1414For a Claude Sheet (an Artifact whose `artifact_type` is `claude_sheets`), the request must set `multi_file_format=zip` too, and the content is the Sheet's data as a ZIP archive that holds one .xlsx file, named `01-<id>.xlsx`, where `<id>` is an opaque identifier. The file has all of the Sheet's tabs and, when the Sheet has dropdowns, one more hidden tab that lists their options. It leaves out charts, conditional formatting and comments, among other things. A formula that an .xlsx file cannot hold is written as its result. If the Sheet's formulas cannot be calculated in time, every formula comes with `#VALUE!` in place of its result. That ZIP has no `files.json` either.
1515 
16For any other Artifact, the content is the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files.
16For any other Artifact, the download is of the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files. Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A single file does not include that content. A ZIP archive of a version's files includes it only if its index, `files.json`, lists it.
1717 
1818Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}.zip` for a ZIP archive, otherwise `{artifact_id}.txt`, whatever the content is. `Content-MD5` is always on a Claude Doc's or a Claude Sheet's ZIP, only on a single file stored uncompressed, and never on a ZIP archive of a version's files. Check the body against it when present.
1919 
from line 22
2222- `404`: the Artifact doesn't exist, or the API key cannot read it.
2323- `400` with `error.details.error_code` `cmek_key_disabled`: the organization's customer-managed encryption key can't be used, for example because it is disabled or revoked. Retry once the key can be used again.
2424- `503`: the content can't be produced right now. Wait the number of seconds in the `Retry-After` header, or retry with backoff when it is absent.
25- `422` with `multi_file_unavailable`: the request does not set `multi_file_format=zip`, and the Artifact is a Claude Doc or a Claude Sheet, or its latest version has more than one file. Add the parameter.
25- `422` with `multi_file_unavailable`: the Artifact is a Claude Doc or a Claude Sheet and the request does not set `multi_file_format=zip`, or the latest version cannot be returned as a single file. Add the parameter when the error's message says to.
2626- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the Artifact is neither a Claude Doc nor a Claude Sheet, and one of the latest version's files has a path the API cannot export. Do not retry.
2727- `422` with `document_unavailable`: Claude Docs has no document it can export for the Doc, for example because it has no text tab or is in the trash. For a Claude Sheet, nothing can be returned as an .xlsx file, for example because the Sheet is in the trash. Retrying will not help unless that changes.
2828- `422` with `document_too_large`: the Doc's or the Sheet's export is over 16 MiB. Do not retry.
2929- `422` with `cmek_org_unsupported`: the organization uses customer-managed encryption keys and the export can't be served for it right now. Try again later, and contact Anthropic support if this continues.
3030 
31An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
31An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
3232 
33A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
33A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
3434 
35`files.json` has these fields:
35An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
3636 
37`files.json` includes these fields:
38 
3739- `artifact_id`: the Artifact ID, as in the request.
3840- `version_id`: null.
3941- `title`: the title of the version in the archive, or that version's ID when no title is kept.
4042- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
4143- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
42- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
44- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
4345 
44`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
46`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
4547 
4648## Path parameters
4749 
from line 55
5355 
5456- `multi_file_format: optional string`
5557 
56 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`.
58 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`. Otherwise the latest version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`.
5759 
5860## Headers
5961 

api/compliance/apps/code/artifacts/retrieve_version Changed · +11 / -7 lines

from line 9
99 
1010Streams the content of one version of an Artifact as the response body, in chunks with no `Content-Length`. With `multi_file_format=zip`, a version with more than one file, other than a Claude Doc's or a Claude Sheet's (an Artifact whose `artifact_type` is `claude_docs` or `claude_sheets`), comes back as a ZIP archive of its files.
1111 
12Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A download of a version does not include that content, and a ZIP archive's index, `files.json`, does not list it.
13 
1214Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}-{version_id}.zip` for a ZIP archive, otherwise `{artifact_id}-{version_id}.txt`, whatever the content is. `Content-MD5` is only on a single file stored uncompressed, so it is never on a ZIP archive. Check the body against it when present.
1315 
1416Errors specific to this download:
from line 17
1517 
1618- `404`: the Artifact doesn't exist or the API key cannot read it, or the version is no longer kept. Older versions are dropped as new ones are published, so list the Artifact's versions again. You also get this when the organization's customer-managed encryption key can't be used. Retry once the key can be used again.
1719- `503`: the content can't be served right now, for example because its upload is still in progress or was abandoned. Retry with backoff.
18- `422` with `error.details.error_code` `multi_file_unavailable`: the version has more than one file. Add `multi_file_format=zip`. A Claude Doc's or a Claude Sheet's version with more than one file gets this error either way, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
20- `422` with `error.details.error_code` `multi_file_unavailable`: the version cannot be returned as a single file, for example because it has more than one file. Add `multi_file_format=zip` when the error's message says to. A Claude Doc's or a Claude Sheet's version with more than one file gets this error with or without `multi_file_format=zip`, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
1921- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the version has more than one file, and one of them has a path the API cannot export. Do not retry.
2022 
21An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
23An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
2224 
23A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
25A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
2426 
25`files.json` has these fields:
27An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
2628 
29`files.json` includes these fields:
30 
2731- `artifact_id`: the Artifact ID, as in the request.
2832- `version_id`: the version ID, as in the request.
2933- `title`: the title of the version in the archive, or that version's ID when no title is kept.
3034- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
3135- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
32- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
36- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
3337 
34`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
38`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
3539 
3640## Path parameters
3741 
from line 51
4751 
4852- `multi_file_format: optional string`
4953 
50 Set to `zip`, its only value, to receive a version that has more than one file as a ZIP archive of its files with an index, `files.json`. A version with one file is returned as that file. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
54 Set to `zip`, its only value, to ask for a ZIP archive with an index, `files.json`, when a version cannot be returned as a single file, such as when it has more than one file. Any other version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
5155 
5256## Headers
5357 

api/errors Changed · +6 / -6 lines

from line 44
4444 
4545The first-party Claude API enforces these request size limits. For other platforms, see the [API overview](https://platform.claude.com/docs/en/api/overview#request-size-limits).
4646 
47| Endpoint type | Maximum request size |
48| ----------------------------------------------------------------------------------- | -------------------- |
49| Messages API | 128 MB |
50| Token Counting API | 128 MB |
51| [Batch API](https://platform.claude.com/docs/en/build-with-claude/batch-processing) | 256 MB |
52| [Files API](https://platform.claude.com/docs/en/build-with-claude/files) | 500 MB |
47| Endpoint type | Maximum request size |
48| ----- | ----- |
49| Messages API | 128 MB |
50| Token Counting API | 128 MB |
51| [Batch API](https://platform.claude.com/docs/en/build-with-claude/batch-processing) | 256 MB |
52| [Files API](https://platform.claude.com/docs/en/build-with-claude/files) | 500 MB |
5353 
5454If you exceed these limits, you’ll receive a 413 `request_too_large` error. On the first-party Claude API, Cloudflare returns this error before the request reaches the API servers.
5555 

api/messages Changed · +229 / -167 lines

### Bash Code Execution Tool Result Error Object ### Code Execution Tool Result Error Object ### Image Dimensions Too Large Error Details ### Text Editor Code Execution Tool Result Error Object ### Tool Search Tool Result Error Object ### Web Search Tool Request Error Object ### Web Search Tool Result Error Object ### image_dimensions_too_large ### Bash Code Execution Tool Result Error ### Code Execution Tool Result Error ### Text Editor Code Execution Tool Result Error ### Tool Search Tool Result Error ### Web Search Tool Request Error ### Web Search Tool Result Error

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 726
726726 
727727 - `page_age: optional string or null`
728728 
729 - `WebSearchToolRequestError object`
729 - `WebSearchToolRequestErrorObject object`
730730 
731731 - `type: "web_search_tool_result_error"`
732732 
from line 3472
34723472 
34733473 - `content: WebSearchToolResultBlockContent`
34743474 
3475 - `WebSearchToolResultError object`
3475 - `WebSearchToolResultErrorObject object`
34763476 
34773477 - `type: "web_search_tool_result_error"`
34783478 
from line 3624
36243624 
36253625 - `content: CodeExecutionToolResultBlockContent`
36263626 
3627 - `CodeExecutionToolResultError object`
3627 - `CodeExecutionToolResultErrorObject object`
36283628 
36293629 - `type: "code_execution_tool_result_error"`
36303630 
from line 3696
36963696 
36973697 default: bash_code_execution_tool_result
36983698 
3699 - `content: BashCodeExecutionToolResultError or BashCodeExecutionResultBlock`
3699 - `content: BashCodeExecutionToolResultErrorObject or BashCodeExecutionResultBlock`
37003700 
3701 - `BashCodeExecutionToolResultError object`
3701 - `BashCodeExecutionToolResultErrorObject object`
37023702 
37033703 - `type: "bash_code_execution_tool_result_error"`
37043704 
from line 3746
37463746 
37473747 default: text_editor_code_execution_tool_result
37483748 
3749 - `content: TextEditorCodeExecutionToolResultError or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
3749 - `content: TextEditorCodeExecutionToolResultErrorObject or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
37503750 
3751 - `TextEditorCodeExecutionToolResultError object`
3751 - `TextEditorCodeExecutionToolResultErrorObject object`
37523752 
37533753 - `type: "text_editor_code_execution_tool_result_error"`
37543754 
from line 3824
38243824 
38253825 default: tool_search_tool_result
38263826 
3827 - `content: ToolSearchToolResultError or ToolSearchToolSearchResultBlock`
3827 - `content: ToolSearchToolResultErrorObject or ToolSearchToolSearchResultBlock`
38283828 
3829 - `ToolSearchToolResultError object`
3829 - `ToolSearchToolResultErrorObject object`
38303830 
38313831 - `type: "tool_search_tool_result_error"`
38323832 
from line 4512
45124512 
45134513 The `compaction` block's `tool_changes` differs from what was returned with the block.
45144514 
4515- `image_dimensions_too_large` (HTTP status 400)
4516 
4517 The longest side of one or more images in the request exceeds the image size limit. Scale each image in `paths` so that neither side exceeds `max_side_length_pixels`, or remove it, then retry.
4518 
45154519- `organization_on_hold` (HTTP status 400)
45164520 
45174521 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.
from line 4552
45484552 
45494553 A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
45504554 
4555- `user_profile_required` (HTTP status 400)
4556 
4557 The request sets `billing_policy.bill_to` to `"user_profile"` but names no user profile. Name the profile to bill in the `anthropic-user-profile-id` header.
4558 
4559- `linked_organization_billing_unavailable` (HTTP status 402)
4560 
4561 Anthropic cannot currently bill the organization linked to the request's user profile, for a reason that lies with that organization's own account. The response does not say what the reason is.
4562 
4563- `linked_organization_spend_limit_reached` (HTTP status 402)
4564 
4565 The organization linked to the request's user profile has reached a spend limit that it set, or lacks credit for the request. The response does not say which applies.
4566 
4567- `user_profile_billing_not_authorized` (HTTP status 403)
4568 
4569 The customer that the request's user profile represents has not authorized the caller to bill them, or the authorization that the request's credential uses has ended. The response does not say which applies.
4570 
4571- `user_profile_not_billable` (HTTP status 403)
4572 
4573 The request's user profile cannot be billed. The response gives no more specific error code and does not say what the reason is.
4574 
45514575- `thread_not_found` (HTTP status 404)
45524576 
45534577 No usable Thread state was found for `previous_message_id`. Replay the full conversation with `thread: {"type": "create"}` to start a new Thread.
from line 4584
45604584 
45614585 The compressed request body exceeds the request size limit once decoded.
45624586 
4587- `contract_spend_limit_reached` (HTTP status 429)
4588 
4589 The organization has reached the spend limit of its contract.
4590 
45634591- `enforced_spend_limit_reached` (HTTP status 429)
45644592 
45654593 The organization has crossed the monthly API usage threshold of its API tier.
from line 5411
53835411 
53845412 - `page_age: optional string or null`
53855413 
5386 - `WebSearchToolRequestError object`
5414 - `WebSearchToolRequestErrorObject object`
53875415 
53885416 - `type: "web_search_tool_result_error"`
53895417 
from line 8135
81078135 
81088136 - `signature: string`
81098137 
8110 The `signature` value of this thinking block, exactly as returned by the API in a previous response. Used to verify that the block was generated by Claude.
8111 
8112 Thinking blocks must be passed back unmodified and in their original order; a modified block results in a 400 `invalid_request_error`.
8113 
8114 - `thinking: string`
8115 
8116 The `thinking` text of this block as returned by the API.
8117 
8118 - `RedactedThinkingBlockParam object`
8119 
8120 - `type: "redacted_thinking"`
8121 
8122 - `data: string`
8123 
8124 The `data` value of this redacted thinking block, exactly as returned by the API in a previous response. Opaque and encrypted; pass it back unchanged.
8125 
8126 - `ToolUseBlockParam object`
8127 
8128 - `type: "tool_use"`
8129 
8130 - `id: string`
8131 
8132 pattern: ^[a-zA-Z0-9_-]+$
8133 
8134 - `input: map[unknown]`
8135 
8136 - `name: string`
8137 
8138 minLength: 1, maxLength: 200
8139 
8140 - `cache_control: optional CacheControlEphemeral or null`
8141 
8142 Create a cache control breakpoint at this content block.
8143 
8144 - `caller: optional DirectCaller or ServerToolCaller or ServerToolCaller20260120`
8145 
8146 - `DirectCaller object`
8147 
8148 Tool invocation directly from the model.
8149 
8150 - `type: "direct"`
8151 
8152 - `ServerToolCaller object`
8153 
8154 Tool invocation generated by a server-side tool.
8155 
8156 - `type: "code_execution_20250825"`
8157 
8158 - `tool_id: string`
8159 
8160 pattern: ^srvtoolu_[a-zA-Z0-9_]+$
8161 
8162 - `ServerToolCaller20260120 object`
8163 
8164 - `type: "code_execution_20260120"`
8165 
8166
8138 The `signa

api/messages/batches Changed · +77 / -77 lines

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

from line 746
746746 
747747 - `page_age: optional string or null`
748748 
749 - `WebSearchToolRequestError object`
749 - `WebSearchToolRequestErrorObject object`
750750 
751751 - `type: "web_search_tool_result_error"`
752752 
from line 4386
43864386 
43874387 - `content: WebSearchToolResultBlockContent`
43884388 
4389 - `WebSearchToolResultError object`
4389 - `WebSearchToolResultErrorObject object`
43904390 
43914391 - `type: "web_search_tool_result_error"`
43924392 
from line 4538
45384538 
45394539 - `content: CodeExecutionToolResultBlockContent`
45404540 
4541 - `CodeExecutionToolResultError object`
4541 - `CodeExecutionToolResultErrorObject object`
45424542 
45434543 - `type: "code_execution_tool_result_error"`
45444544 
from line 4610
46104610 
46114611 default: bash_code_execution_tool_result
46124612 
4613 - `content: BashCodeExecutionToolResultError or BashCodeExecutionResultBlock`
4613 - `content: BashCodeExecutionToolResultErrorObject or BashCodeExecutionResultBlock`
46144614 
4615 - `BashCodeExecutionToolResultError object`
4615 - `BashCodeExecutionToolResultErrorObject object`
46164616 
46174617 - `type: "bash_code_execution_tool_result_error"`
46184618 
from line 4660
46604660 
46614661 default: text_editor_code_execution_tool_result
46624662 
4663 - `content: TextEditorCodeExecutionToolResultError or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
4663 - `content: TextEditorCodeExecutionToolResultErrorObject or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
46644664 
4665 - `TextEditorCodeExecutionToolResultError object`
4665 - `TextEditorCodeExecutionToolResultErrorObject object`
46664666 
46674667 - `type: "text_editor_code_execution_tool_result_error"`
46684668 
from line 4738
47384738 
47394739 default: tool_search_tool_result
47404740 
4741 - `content: ToolSearchToolResultError or ToolSearchToolSearchResultBlock`
4741 - `content: ToolSearchToolResultErrorObject or ToolSearchToolSearchResultBlock`
47424742 
4743 - `ToolSearchToolResultError object`
4743 - `ToolSearchToolResultErrorObject object`
47444744 
47454745 - `type: "tool_search_tool_result_error"`
47464746 
from line 5185
51855185 
51865186 - `error: ErrorObject`
51875187 
5188 - `InvalidRequestError object`
5188 - `InvalidRequestErrorObject object`
51895189 
51905190 - `type: "invalid_request_error"`
51915191 
from line 5199
51995199 
52005200 default: Invalid request
52015201 
5202 - `AuthenticationError object`
5202 - `AuthenticationErrorObject object`
52035203 
52045204 - `type: "authentication_error"`
52055205 
from line 5213
52135213 
52145214 default: Authentication error
52155215 
5216 - `BillingError object`
5216 - `BillingErrorObject object`
52175217 
52185218 - `type: "billing_error"`
52195219 
from line 5227
52275227 
52285228 default: Billing error
52295229 
5230 - `PermissionError object`
5230 - `PermissionErrorObject object`
52315231 
52325232 - `type: "permission_error"`
52335233 
from line 5241
52415241 
52425242 default: Permission denied
52435243 
5244 - `NotFoundError object`
5244 - `NotFoundErrorObject object`
52455245 
52465246 - `type: "not_found_error"`
52475247 
from line 5255
52555255 
52565256 default: Not found
52575257 
5258 - `RateLimitError object`
5258 - `RateLimitErrorObject object`
52595259 
52605260 - `type: "rate_limit_error"`
52615261 
from line 5269
52695269 
52705270 default: Rate limited
52715271 
5272 - `GatewayTimeoutError object`
5272 - `GatewayTimeoutErrorObject object`
52735273 
52745274 - `type: "timeout_error"`
52755275 
from line 5297
52975297 
52985298 default: Internal server error
52995299 
5300 - `OverloadedError object`
5300 - `OverloadedErrorObject object`
53015301 
53025302 - `type: "overloaded_error"`
53035303 
from line 5503
55035503 
55045504 - `error: ErrorObject`
55055505 
5506 - `InvalidRequestError object`
5506 - `InvalidRequestErrorObject object`
55075507 
55085508 - `type: "invalid_request_error"`
55095509 
from line 5517
55175517 
55185518 default: Invalid request
55195519 
5520 - `AuthenticationError object`
5520 - `AuthenticationErrorObject object`
55215521 
55225522 - `type: "authentication_error"`
55235523 
from line 5531
55315531 
55325532 default: Authentication error
55335533 
5534 - `BillingError object`
5534 - `BillingErrorObject object`
55355535 
55365536 - `type: "billing_error"`
55375537 
from line 5545
55455545 
55465546 default: Billing error
55475547 
5548 - `PermissionError object`
5548 - `PermissionErrorObject object`
55495549 
55505550 - `type: "permission_error"`
55515551 
from line 5559
55595559 
55605560 default: Permission denied
55615561 
5562 - `NotFoundError object`
5562 - `NotFoundErrorObject object`
55635563 
55645564 - `type: "not_found_error"`
55655565 
from line 5573
55735573 
55745574 default: Not found
55755575 
5576 - `RateLimitError object`
5576 - `RateLimitErrorObject object`
55775577 
55785578 - `type: "rate_limit_error"`
55795579 
from line 5587
55875587 
55885588 default: Rate limited
55895589 
5590 - `GatewayTimeoutError object`
5590 - `GatewayTimeoutErrorObject object`
55915591 
55925592 - `type: "timeout_error"`
55935593 
from line 5615
56155615 
56165616 default: Internal server error
56175617 
5618 - `OverloadedError object`
5618 - `OverloadedErrorObject object`
56195619 
56205620 - `type: "overloaded_error"`
56215621 
from line 6036
60366036 
60376037 - `content: WebSearchToolResultBlockContent`
60386038 
6039 - `WebSearchToolResultError object`
6039 - `WebSearchToolResultErrorObject object`
60406040 
60416041 - `type: "web_search_tool_result_error"`
60426042 
from line 6188
61886188 
61896189 - `content: CodeExecutionToolResultBlockContent`
61906190 
6191 - `CodeExecutionToolResultError object`
6191 - `CodeExecutionToolResultErrorObject object`
61926192 
61936193 - `type: "code_execution_tool_result_error"`
61946194 
from line 6260
62606260 
62616261 default: bash_code_execution_tool_result
62626262 
6263 - `content: BashCodeExecutionToolResultError or BashCodeExecutionResultBlock`
6263 - `content: BashCodeExecutionToolResultErrorObject or BashCodeExecutionResultBlock`
62646264 
6265 - `BashCodeExecutionToolResultError object`
6265 - `BashCodeExecutionToolResultErrorObject object`
62666266 
62676267 - `type: "bash_code_execution_tool_result_error"`
62686268 
from line 6310
63106310 
63116311 default: text_editor_code_execution_tool_result
63126312 
6313 - `content: TextEditorCodeExecutionToolResultError or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
6313 - `content: TextEditorCodeExecutionToolResultErrorObject or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
63146314 
6315 - `TextEditorCodeExecutionToolResultError object`
6315 - `TextEditorCodeExecutionToolResultErrorObject object`
63166316 
63176317 - `type: "text_editor_code_execution_tool_result_error"`
63186318 
from line 6388
63886388 
63896389 default: tool_search_tool_result
63906390 
6391 - `content: ToolSearchToolResultError or ToolSearchToolSearchResultBlock`
6391 - `content: ToolSearchToolResultErrorObject or ToolSearchToolSearchResultBlock`
63926392 
6393 - `ToolSearchToolResultError object`
6393 - `ToolSearchToolResultErrorObject object`
63946394 
63956395 - `type: "tool_search_tool_result_error"`
63966396 
from line 6835
68356835 
68366836 - `error: ErrorObject`
68376837 
6838 - `InvalidRequestError object`
6838 - `InvalidRequestErrorObject object`
68396839 
68406840 - `type: "invalid_request_error"`
68416841 
from line 6849
68496849 
68506850 default: Invalid request
68516851 
6852 - `AuthenticationError object`
6852 - `AuthenticationErrorObject object`
68536853 
68546854 - `type: "authentication_error"`
68556855 
from line 6863
68636863 
68646864 default: Authentication error
68656865 
6866 - `BillingError object`
6866 - `BillingErrorObject object`
68676867 
68686868 - `type: "billing_error"`
68696869 
from line 6877
68776877 
68786878 default: Billing error
68796879 
6880 - `PermissionError object`
6880 - `PermissionErrorObject object`
68816881 
68826882 - `type: "permission_error"`
68836883 
from line 6891
68916891 
68926892 default: Permission denied
68936893 
6894 - `NotFoundError object`
6894 - `NotFoundErrorObject object`
68956895 
68966896 - `type: "not_found_error"`
68976897 
from line 6905
69056905 
69066906 default: Not found
69076907 
6908 - `RateLimitError object`
6908 - `RateLimitErrorObject object`
69096909 
69106910 - `type: "rate_limit_error"`
69116911 
from line 6919
69196919 
69206920 default: Rate limited
69216921 
6922 - `GatewayTimeoutError object`
6922 - `GatewayTimeoutErrorObject object`
69236923 
69246924 - `type: "timeout_error"`
69256925 
from line 6947
69476947 
69486948 default: Internal server error
69496949 
6950 - `OverloadedError object`
6950 - `OverloadedErrorObject object`
69516951 
69526952 - `type: "overloaded_error"`
69536953 
from line 7404
74047404 
74057405 - `content: WebSearchToolResultBlockContent`
74067406 
7407 - `WebSearchToolResultError object`
7407 - `WebSearchToolResultErrorObject object`
74087408 
74097409 - `type: "web_search_tool_result_error"`
74107410 
from line 7556
75567556 
75577557 - `content: CodeExecutionToolResultBlockContent`
75587558 
7559 - `CodeExecutionToolResultError object`
7559 - `CodeExecutionToolResultErrorObject object`
75607560 
75617561 - `type: "code_execution_tool_result_error"`
75627562 
from line 7628
76287628 
76297629 default: bash_code_execution_tool_result
76307630 
7631 - `content: BashCodeExecutionToolResultError or BashCodeExecutionResultBlock`
7631 - `content: BashCodeExecutionToolResultErrorObject or BashCodeExecutionResultBlock`
76327632 
7633 - `BashCodeExecutionToolResultError object`
7633 - `BashCodeExecutionToolResultErrorObject object`
76347634 
76357635 - `type: "bash_code_execution_tool_result_error"`
76367636 
from line 7678
76787678 
76797679 default: text_editor_code_execution_tool_result
76807680 
7681 - `content: TextEditorCodeExecutionToolResultError or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
7681 - `content: TextEditorCodeExecutionToolResultErrorObject or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
76827682 
7683 - `TextEditorCodeExecutionToolResultError object`
7683 - `TextEditorCodeExecutionToolResultErrorObject object`
76847684 
76857685 - `type: "text_editor_code_execution_tool_result_error"`
76867686 
from line 7756
77567756 
77577757 default: tool_search_tool_result
77587758 
7759 - `content: ToolSearchToolResultError or ToolSearchToolSearchResultBlock`
7759 - `content: ToolSearchToolResultErrorObject or ToolSearchToolSearchResultBlock`
77607760 
7761 - `ToolSearchToolResultError object`
7761 - `ToolSearchToolResultErrorObject object`
77627762 
77637763 - `type: "tool_search_tool_result_error"`
77647764 
from line 8203
82038203 
82048204 - `error: ErrorObject`
82058205 
8206 - `InvalidRequestError object`
8206 - `InvalidRequestErrorObject object`
82078207 
8208 - `type: "invalid_request_error"`
8209 
8210 The broad category of the error.
8211 
8212 default: invalid_request_error
8213 
8214 - `message: string`
8215 
8216 A human-readable explanation of the error. Its wording can change, so don't match on it.
8217 
8218 default: Invalid request
8219 
8220 - `Authenti
8208 - `type: "inval

api/messages/batches/results Changed · +19 / -19 lines

from line 430
430430 
431431 - `content: WebSearchToolResultBlockContent`
432432 
433 - `WebSearchToolResultError object`
433 - `WebSearchToolResultErrorObject object`
434434 
435435 - `type: "web_search_tool_result_error"`
436436 
from line 582
582582 
583583 - `content: CodeExecutionToolResultBlockContent`
584584 
585 - `CodeExecutionToolResultError object`
585 - `CodeExecutionToolResultErrorObject object`
586586 
587587 - `type: "code_execution_tool_result_error"`
588588 
from line 654
654654 
655655 default: bash_code_execution_tool_result
656656 
657 - `content: BashCodeExecutionToolResultError or BashCodeExecutionResultBlock`
657 - `content: BashCodeExecutionToolResultErrorObject or BashCodeExecutionResultBlock`
658658 
659 - `BashCodeExecutionToolResultError object`
659 - `BashCodeExecutionToolResultErrorObject object`
660660 
661661 - `type: "bash_code_execution_tool_result_error"`
662662 
from line 704
704704 
705705 default: text_editor_code_execution_tool_result
706706 
707 - `content: TextEditorCodeExecutionToolResultError or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
707 - `content: TextEditorCodeExecutionToolResultErrorObject or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
708708 
709 - `TextEditorCodeExecutionToolResultError object`
709 - `TextEditorCodeExecutionToolResultErrorObject object`
710710 
711711 - `type: "text_editor_code_execution_tool_result_error"`
712712 
from line 782
782782 
783783 default: tool_search_tool_result
784784 
785 - `content: ToolSearchToolResultError or ToolSearchToolSearchResultBlock`
785 - `content: ToolSearchToolResultErrorObject or ToolSearchToolSearchResultBlock`
786786 
787 - `ToolSearchToolResultError object`
787 - `ToolSearchToolResultErrorObject object`
788788 
789789 - `type: "tool_search_tool_result_error"`
790790 
from line 1229
12291229 
12301230 - `error: ErrorObject`
12311231 
1232 - `InvalidRequestError object`
1232 - `InvalidRequestErrorObject object`
12331233 
12341234 - `type: "invalid_request_error"`
12351235 
from line 1243
12431243 
12441244 default: Invalid request
12451245 
1246 - `AuthenticationError object`
1246 - `AuthenticationErrorObject object`
12471247 
12481248 - `type: "authentication_error"`
12491249 
from line 1257
12571257 
12581258 default: Authentication error
12591259 
1260 - `BillingError object`
1260 - `BillingErrorObject object`
12611261 
12621262 - `type: "billing_error"`
12631263 
from line 1271
12711271 
12721272 default: Billing error
12731273 
1274 - `PermissionError object`
1274 - `PermissionErrorObject object`
12751275 
12761276 - `type: "permission_error"`
12771277 
from line 1285
12851285 
12861286 default: Permission denied
12871287 
1288 - `NotFoundError object`
1288 - `NotFoundErrorObject object`
12891289 
12901290 - `type: "not_found_error"`
12911291 
from line 1299
12991299 
13001300 default: Not found
13011301 
1302 - `RateLimitError object`
1302 - `RateLimitErrorObject object`
13031303 
13041304 - `type: "rate_limit_error"`
13051305 
from line 1313
13131313 
13141314 default: Rate limited
13151315 
1316 - `GatewayTimeoutError object`
1316 - `GatewayTimeoutErrorObject object`
13171317 
13181318 - `type: "timeout_error"`
13191319 
from line 1341
13411341 
13421342 default: Internal server error
13431343 
1344 - `OverloadedError object`
1344 - `OverloadedErrorObject object`
13451345 
13461346 - `type: "overloaded_error"`
13471347 

api/messages/create Changed · +40 / -12 lines

from line 724
724724 
725725 - `page_age: optional string or null`
726726 
727 - `WebSearchToolRequestError object`
727 - `WebSearchToolRequestErrorObject object`
728728 
729729 - `type: "web_search_tool_result_error"`
730730 
from line 3470
34703470 
34713471 - `content: WebSearchToolResultBlockContent`
34723472 
3473 - `WebSearchToolResultError object`
3473 - `WebSearchToolResultErrorObject object`
34743474 
34753475 - `type: "web_search_tool_result_error"`
34763476 
from line 3622
36223622 
36233623 - `content: CodeExecutionToolResultBlockContent`
36243624 
3625 - `CodeExecutionToolResultError object`
3625 - `CodeExecutionToolResultErrorObject object`
36263626 
36273627 - `type: "code_execution_tool_result_error"`
36283628 
from line 3694
36943694 
36953695 default: bash_code_execution_tool_result
36963696 
3697 - `content: BashCodeExecutionToolResultError or BashCodeExecutionResultBlock`
3697 - `content: BashCodeExecutionToolResultErrorObject or BashCodeExecutionResultBlock`
36983698 
3699 - `BashCodeExecutionToolResultError object`
3699 - `BashCodeExecutionToolResultErrorObject object`
37003700 
37013701 - `type: "bash_code_execution_tool_result_error"`
37023702 
from line 3744
37443744 
37453745 default: text_editor_code_execution_tool_result
37463746 
3747 - `content: TextEditorCodeExecutionToolResultError or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
3747 - `content: TextEditorCodeExecutionToolResultErrorObject or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
37483748 
3749 - `TextEditorCodeExecutionToolResultError object`
3749 - `TextEditorCodeExecutionToolResultErrorObject object`
37503750 
37513751 - `type: "text_editor_code_execution_tool_result_error"`
37523752 
from line 3822
38223822 
38233823 default: tool_search_tool_result
38243824 
3825 - `content: ToolSearchToolResultError or ToolSearchToolSearchResultBlock`
3825 - `content: ToolSearchToolResultErrorObject or ToolSearchToolSearchResultBlock`
38263826 
3827 - `ToolSearchToolResultError object`
3827 - `ToolSearchToolResultErrorObject object`
38283828 
38293829 - `type: "tool_search_tool_result_error"`
38303830 
from line 4510
45104510 
45114511 The `compaction` block's `tool_changes` differs from what was returned with the block.
45124512 
4513- `image_dimensions_too_large` (HTTP status 400)
4514 
4515 The longest side of one or more images in the request exceeds the image size limit. Scale each image in `paths` so that neither side exceeds `max_side_length_pixels`, or remove it, then retry.
4516 
45134517- `organization_on_hold` (HTTP status 400)
45144518 
45154519 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.
from line 4550
45464550 
45474551 A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
45484552 
4553- `user_profile_required` (HTTP status 400)
4554 
4555 The request sets `billing_policy.bill_to` to `"user_profile"` but names no user profile. Name the profile to bill in the `anthropic-user-profile-id` header.
4556 
4557- `linked_organization_billing_unavailable` (HTTP status 402)
4558 
4559 Anthropic cannot currently bill the organization linked to the request's user profile, for a reason that lies with that organization's own account. The response does not say what the reason is.
4560 
4561- `linked_organization_spend_limit_reached` (HTTP status 402)
4562 
4563 The organization linked to the request's user profile has reached a spend limit that it set, or lacks credit for the request. The response does not say which applies.
4564 
4565- `user_profile_billing_not_authorized` (HTTP status 403)
4566 
4567 The customer that the request's user profile represents has not authorized the caller to bill them, or the authorization that the request's credential uses has ended. The response does not say which applies.
4568 
4569- `user_profile_not_billable` (HTTP status 403)
4570 
4571 The request's user profile cannot be billed. The response gives no more specific error code and does not say what the reason is.
4572 
45494573- `thread_not_found` (HTTP status 404)
45504574 
45514575 No usable Thread state was found for `previous_message_id`. Replay the full conversation with `thread: {"type": "create"}` to start a new Thread.
from line 4581
45574581- `request_body_too_large_after_decoding` (HTTP status 413)
45584582 
45594583 The compressed request body exceeds the request size limit once decoded.
4584 
4585- `contract_spend_limit_reached` (HTTP status 429)
4586 
4587 The organization has reached the spend limit of its contract.
45604588 
45614589- `enforced_spend_limit_reached` (HTTP status 429)
45624590 

api/migration-2026-10-21 Changed · +26 / -26 lines

from line 140
140140 
141141Admin API:
142142 
143| Endpoints | Old name | New name |
144| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
145| [RBAC groups](https://platform.claude.com/docs/en/api/beta/organization/rbac_groups/list): create, list, retrieve, and update | `roles` | `role_ids` |
146| [RBAC group members](https://platform.claude.com/docs/en/api/beta/organization/rbac_groups/members/list): list and add, and the response to [removing a member](https://platform.claude.com/docs/en/api/beta/organization/rbac_groups/members/remove) | `group_id` | `rbac_group_id` |
147| [RBAC roles](https://platform.claude.com/docs/en/api/beta/organization/rbac_roles/list): list and retrieve | `name` | `display_name` |
148| [Organization](https://platform.claude.com/docs/en/api/organization/rate_limits/list) and [workspace](https://platform.claude.com/docs/en/api/organization/workspaces/rate_limits/list) rate limits: list, and the response to [setting a workspace’s rate limits](https://platform.claude.com/docs/en/api/organization/workspaces/rate_limits/update) | `group_type` | `group.type` |
149| [API keys](https://platform.claude.com/docs/en/api/organization/api_keys/list): list, retrieve, and update | `workspace_id` | `scope` (different values; see [`workspace_id` on API keys](https://platform.claude.com/docs/en/api/migration-2026-10-21#api-key-workspace-id)) |
143| Endpoints | Old name | New name |
144| ----- | ----- | ----- |
145| [RBAC groups](https://platform.claude.com/docs/en/api/beta/organization/rbac_groups/list): create, list, retrieve, and update | `roles` | `role_ids` |
146| [RBAC group members](https://platform.claude.com/docs/en/api/beta/organization/rbac_groups/members/list): list and add, and the response to [removing a member](https://platform.claude.com/docs/en/api/beta/organization/rbac_groups/members/remove) | `group_id` | `rbac_group_id` |
147| [RBAC roles](https://platform.claude.com/docs/en/api/beta/organization/rbac_roles/list): list and retrieve | `name` | `display_name` |
148| [Organization](https://platform.claude.com/docs/en/api/organization/rate_limits/list) and [workspace](https://platform.claude.com/docs/en/api/organization/workspaces/rate_limits/list) rate limits: list, and the response to [setting a workspace’s rate limits](https://platform.claude.com/docs/en/api/organization/workspaces/rate_limits/update) | `group_type` | `group.type` |
149| [API keys](https://platform.claude.com/docs/en/api/organization/api_keys/list): list, retrieve, and update | `workspace_id` | `scope` (different values; see [`workspace_id` on API keys](https://platform.claude.com/docs/en/api/migration-2026-10-21#api-key-workspace-id)) |
150150 
151151Claude Enterprise Analytics API:
152152 
153| Endpoints | Old name | New name |
154| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------------------- |
153| Endpoints | Old name | New name |
154| ----- | ----- | ----- |
155155| Per-user [usage](https://platform.claude.com/docs/en/api/beta/organization/analytics/user_usage_report/list) and [cost](https://platform.claude.com/docs/en/api/beta/organization/analytics/user_cost_report/list) reports | `actor.email` | `actor.email_address` |
156| [Activity summaries](https://platform.claude.com/docs/en/api/beta/organization/analytics/summaries/list) | `summaries` | `data` |
156| [Activity summaries](https://platform.claude.com/docs/en/api/beta/organization/analytics/summaries/list) | `summaries` | `data` |
157157 
158158The `group_type` query parameter on the rate-limit list endpoints and the `workspace_id` filter on the API key list endpoint are unchanged.
159159 
from line 351
351351 
352352 The methods that take a list of content blocks have new names on the builders of `MessageCreateParams`, `StructuredMessageCreateParams`, `MessageCountTokensParams`, and `BatchCreateParams.Request.Params`:
353353 
354 | v2 | v2 beta | v3 |
355 | ---------------------------------- | --------------------------------------------- | ----------------------------------------- |
356 | `addUserMessageOfBlockParams` | `addUserMessageOfBetaContentBlockParams` | `addUserMessageOfContentBlockParams` |
354 | v2 | v2 beta | v3 |
355 | ----- | ----- | ----- |
356 | `addUserMessageOfBlockParams` | `addUserMessageOfBetaContentBlockParams` | `addUserMessageOfContentBlockParams` |
357357 | `addAssistantMessageOfBlockParams` | `addAssistantMessageOfBetaContentBlockParams` | `addAssistantMessageOfContentBlockParams` |
358 | `addSystemMessageOfBlockParams` | `addSystemMessageOfBetaContentBlockParams` | `addSystemMessageOfBlocks` |
358 | `addSystemMessageOfBlockParams` | `addSystemMessageOfBetaContentBlockParams` | `addSystemMessageOfBlocks` |
359359 
360360 On the content class, `BlockParams` (`BetaContentBlockParams` in beta) becomes `ContentBlockParams` in `ofBlockParams`, `blockParams()`, `isBlockParams()`, `asBlockParams()`, and the visitor’s `visitBlockParams`.
361361 
from line 426
426426 
427427 The `Role` enum modules stay. These constants moved. The names that start with `Beta` are under `Anthropic::Beta`, and the others are under `Anthropic`:
428428 
429 | Removed | Use instead |
430 | --------------------------- | ------------------------------------------------------------------------------------ |
431 | `MessageParam::Content` | `MessageContentParam`, or `SystemMessageParam::Content` for a system message |
429 | Removed | Use instead |
430 | ----- | ----- |
431 | `MessageParam::Content` | `MessageContentParam`, or `SystemMessageParam::Content` for a system message |
432432 | `BetaMessageParam::Content` | `BetaMessageContentParam`, or `BetaSystemMessageParam::Content` for a system message |
433 | `BetaMessageParam::ClearAt` | `BetaSystemMessageParam::ClearAt` |
433 | `BetaMessageParam::ClearAt` | `BetaSystemMessageParam::ClearAt` |
434434 
435435 If you type-check with Sorbet, `MessageParam::OrHash` is gone, and `Anthropic::MessageParam` as a type no longer accepts an instance. Use `Anthropic::MessageParam::Variants` for the three classes, each of which has its own `OrHash`. In RBS, a value typed `Anthropic::MessageParam` has no `role` or `content`. Use the `Anthropic::Models::message_param` alias, which was the hash form of a message and is now the union of the three classes. The beta names are `BetaMessageParam::Variants` and `Anthropic::Models::Beta::beta_message_param`.
436436 </Tab>
from line 450
450450 
451451 An optional property, such as `BetaManagedAgentsGlobToolConfigParams.Type`, keeps its enum. Two of those enums have a new name:
452452 
453 | v12 | v13 |
454 | ------------------------------------------- | ----------------------------------------- |
455 | `BetaManagedAgentsBashToolConfigParamsType` | `Anthropic.Models.Beta.Agents.Type` |
456 | `BetaPackagesType` | `Anthropic.Models.Beta.Environments.Type` |
453 | v12 | v13 |
454 | ----- | ----- |
455 | `BetaManagedAgentsBashToolConfigParamsType` | `Anthropic.Models.Beta.Agents.Type` |
456 | `BetaPackagesType` | `Anthropic.Models.Beta.Environments.Type` |
457457 
458458 When you build an object, delete the property:
459459 
from line 1207
12071207 <Tab title="CLI">
12081208 **`--api-key` and `--auth-token` are removed.** `ant` no longer takes an API key or authentication token as a flag value, because a value on the command line is visible in shell history and process listings. Both flags have printed a deprecation warning since v1.27.0. A command that still passes one stops with `flag provided but not defined`.
12091209 
1210 | Removed | Use instead |
1211 | ---------------------- | ----------------------------------------------------------- |
1212 | `--api-key <key>` | `ANTHROPIC_API_KEY`, `--api-key-stdin`, or `ant auth login` |
1213 | `--auth-token <token>` | `ANTHROPIC_AUTH_TOKEN` or `--auth-token-stdin` |
1210 | Removed | Use instead |
1211 | ----- | ----- |
1212 | `--api-key <key>` | `ANTHROPIC_API_KEY`, `--api-key-stdin`, or `ant auth login` |
1213 | `--auth-token <token>` | `ANTHROPIC_AUTH_TOKEN` or `--auth-token-stdin` |
12141214 
12151215 ```bash
12161216 # Before

api/opentelemetry/spans Changed · +175 / -175 lines

from line 44
4444 
4545## Span names and kinds
4646 
47| Property | SDK spans | API spans |
48| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
49| `service.name` | The application’s `service.name` | `claude-platform` |
50| Instrumentation scope | `com.anthropic.sdk.<language>` or `com.anthropic.sdk.cli`, plus `.<platform>` on a cloud platform’s client, with the package’s version | `com.anthropic.claude-platform` |
51| Span kind | `CLIENT` on the span for a request, `INTERNAL` otherwise | `SERVER` on the span for a request, `INTERNAL` otherwise |
47| Property | SDK spans | API spans |
48| ----- | ----- | ----- |
49| `service.name` | The application’s `service.name` | `claude-platform` |
50| Instrumentation scope | `com.anthropic.sdk.<language>` or `com.anthropic.sdk.cli`, plus `.<platform>` on a cloud platform’s client, with the package’s version | `com.anthropic.claude-platform` |
51| Span kind | `CLIENT` on the span for a request, `INTERNAL` otherwise | `SERVER` on the span for a request, `INTERNAL` otherwise |
5252 
5353* **Spans for requests** have the name of the request’s API method: `anthropic.` followed by the method’s path in the API reference, with dots instead of slashes and without `beta`. For example, `client.beta.sessions.events.send()` (csharp, go: `client.Beta.Sessions.Events.Send()`; java: `client.beta().sessions().events().send()`; php: `$client->beta->sessions->events->send()`; ruby: `client.beta.sessions.events.send_()`) sends a request to [send session events](https://platform.claude.com/docs/en/api/beta/sessions/events/send), and its spans have the name [`anthropic.sessions.events.send`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-sessions-events-send).
5454* **Tool spans** have a fixed name, a space, and the tool name, for example [`anthropic.tool_use bash`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-tool-use-anthropic-mcp-tool-use-and-anthropic-custom-tool-use).
from line 69
6969 
7070Any span can have the following attributes:
7171 
72| Attribute | Type | Description |
73| --------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
74| `gen_ai.provider.name` | `string` | The platform that serves the request: `aws.bedrock` on Amazon Bedrock (Mantle included), `gcp.vertex_ai` on Google Cloud’s Agent Platform, and `anthropic` everywhere else. On every span. |
75| `anthropic.organization.id` | `string` | The organization ID. |
76| `anthropic.workspace.id` | `string` | The ID of the workspace that the work runs in. |
77| `user.id` | `string` | Your end user’s ID, if you set it in the W3C [`baggage`](https://www.w3.org/TR/baggage/) header (for example, `baggage: user.id=4f2a`). It appears on the request’s API span and on every API span under it, such as the session turns that the request starts.<br />Use an opaque ID, such as your database’s key for the user.<br />**Do not put an email address in this value.** To protect user privacy, the API drops any `user.id` that contains one. |
72| Attribute | Type | Description |
73| ----- | ----- | ----- |
74| `gen_ai.provider.name` | `string` | The platform that serves the request: `aws.bedrock` on Amazon Bedrock (Mantle included), `gcp.vertex_ai` on Google Cloud’s Agent Platform, and `anthropic` everywhere else. On every span. |
75| `anthropic.organization.id` | `string` | The organization ID. |
76| `anthropic.workspace.id` | `string` | The ID of the workspace that the work runs in. |
77| `user.id` | `string` | Your end user’s ID, if you set it in the W3C [`baggage`](https://www.w3.org/TR/baggage/) header (for example, `baggage: user.id=4f2a`). It appears on the request’s API span and on every API span under it, such as the session turns that the request starts.<br />Use an opaque ID, such as your database’s key for the user.<br />**Do not put an email address in this value.** To protect user privacy, the API drops any `user.id` that contains one. |
7878 
7979### Request span attributes
8080 
8181Every span for a request also has the following attributes, except where a description says otherwise:
8282 
83| Attribute | Type | Description |
84| --------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
85| `anthropic.request.id` | `string` | The value of the `request-id` response header. |
86| `http.request.method` | `string` | The request’s HTTP method, for example `POST`. |
87| `http.route` | `string` | The endpoint’s path, with placeholders for its path parameters, for example `/v1/sessions/{session_id}`. |
88| `http.response.status_code` | `int` | The final response’s HTTP status code. For a stream, the status code sent with the headers. Absent when there was no response. |
89| `server.address` | `string` | The host that the request was sent to, for example `api.anthropic.com`. |
90| `server.port` | `int` | The request URL’s port, or the default port of its scheme when the URL doesn’t have one. |
91| `url.scheme` | `string` | The URL’s scheme, for example `https`. |
92| `url.path` | `string` | The URL’s path, for example `/v1/messages`. |
93| `url.query` | `string` | The URL’s query string, with only the query parameters that the endpoint defines. Absent when there are none. |
94| `url.full` | `string` | The request’s URL. |
83| Attribute | Type | Description |
84| ----- | ----- | ----- |
85| `anthropic.request.id` | `string` | The value of the `request-id` response header. |
86| `http.request.method` | `string` | The request’s HTTP method, for example `POST`. |
87| `http.route` | `string` | The endpoint’s path, with placeholders for its path parameters, for example `/v1/sessions/{session_id}`. |
88| `http.response.status_code` | `int` | The final response’s HTTP status code. For a stream, the status code sent with the headers. Absent when there was no response. |
89| `server.address` | `string` | The host that the request was sent to, for example `api.anthropic.com`. |
90| `server.port` | `int` | The request URL’s port, or the default port of its scheme when the URL doesn’t have one. |
91| `url.scheme` | `string` | The URL’s scheme, for example `https`. |
92| `url.path` | `string` | The URL’s path, for example `/v1/messages`. |
93| `url.query` | `string` | The URL’s query string, with only the query parameters that the endpoint defines. Absent when there are none. |
94| `url.full` | `string` | The request’s URL. |
9595 
9696API spans for requests sent through a cloud platform, such as Claude Platform on AWS, don’t have `server.address`, `server.port`, or `url.full`.
9797 
from line 99
9999 
100100In a Managed Agents session, spans have the following attributes. A session’s spans can be in more than one trace, so to assemble a view of the session, such as a transcript, [group its spans by these IDs](https://platform.claude.com/docs/en/manage-claude/opentelemetry#a-managed-agents-session).
101101 
102| Attribute | Type | Description |
103| ------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
104| `anthropic.session.id` | `string` | The session ID. Absent on the spans for methods that don’t act on one session, such as [`anthropic.sessions.list`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-sessions-method). |
102| Attribute | Type | Description |
103| ----- | ----- | ----- |
104| `anthropic.session.id` | `string` | The session ID. Absent on the spans for methods that don’t act on one session, such as [`anthropic.sessions.list`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-sessions-method). |
105105| `gen_ai.conversation.id` | `string` | The ID of the session thread that the span belongs to. The SDK’s [`conversation_id` (typescript, java, php: `conversationId`; csharp: `ConversationId`; go: `option.WithOpenTelemetryConversationID()`) option](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#configure-the-sdk) replaces it with your own conversation ID. Absent on SDK spans with no thread unless you set the option, and on API spans for Sessions API requests other than requests to one thread. |
106106 
107107### Content attributes
from line 110
110110 
111111The message attributes are JSON strings in the message format of the OpenTelemetry GenAI conventions. Each Anthropic content block becomes one GenAI conventions message part, on the Messages API and in Managed Agents message events such as `agent.message`:
112112 
113| Anthropic content block | GenAI conventions message part |
114| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
115| `text` | `text` |
116| `tool_use`, `server_tool_use` | `tool_call`, with `anthropic_toolset_name` for a `tool_use` block that has a `toolset_name`, such as `computer` |
117| `mcp_tool_use` | `tool_call` with `anthropic_mcp_server_name` |
118| `tool_result`, `mcp_tool_result`, a server tool’s result block such as `web_search_tool_result` | `tool_call_response` |
119| `thinking` | `reasoning`, without the `thinking` block’s signature. Not in Managed Agents spans, because the `agent.thinking` event doesn’t include the thinking content. |
120| Any other block, such as `image` | The block’s `type` with the prefix `anthropic_`, such as `anthropic_image`. The part has no other fields. |
113| Anthropic content block | GenAI conventions message part |
114| ----- | ----- |
115| `text` | `text` |
116| `tool_use`, `server_tool_use` | `tool_call`, with `anthropic_toolset_name` for a `tool_use` block that has a `toolset_name`, such as `computer` |
117| `mcp_tool_use` | `tool_call` with `anthropic_mcp_server_name` |
118| `tool_result`, `mcp_tool_result`, a server tool’s result block such as `web_search_tool_result` | `tool_call_response` |
119| `thinking` | `reasoning`, without the `thinking` block’s signature. Not in Managed Agents spans, because the `agent.thinking` event doesn’t include the thinking content. |
120| Any other block, such as `image` | The block’s `type` with the prefix `anthropic_`, such as `anthropic_image`. The part has no other fields. |
121121 
122122Each Managed Agents tool use or tool result event also becomes one GenAI conventions message part:
123123 
124| Managed Agents event | GenAI conventions message part |
125| ------------------------------------------------------------------------------------------- | -------------------------------------------- |
126| `agent.tool_use`, `agent.custom_tool_use` | `tool_call` |
127| `agent.mcp_tool_use` | `tool_call` with `anthropic_mcp_server_name` |
128| `user.tool_result`, `user.custom_tool_result`, `agent.tool_result`, `agent.mcp_tool_result` | `tool_call_response` |
124| Managed Agents event | GenAI conventions message part |
125| ----- | ----- |
126| `agent.tool_use`, `agent.custom_tool_use` | `tool_call` |
127| `agent.mcp_tool_use` | `tool_call` with `anthropic_mcp_server_name` |
128| `user.tool_result`, `user.custom_tool_result`, `agent.tool_result`, `agent.mcp_tool_result` | `tool_call_response` |
129129 
130130### Token usage
131131 
132132The following spans have token usage attributes: [`anthropic.messages.create`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-create), [`anthropic.model_request`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-model-request), [`anthropic.compaction`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-compaction), and [`anthropic.session.outcome_evaluation`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-session-outcome-evaluation). The values are for each span’s step, for example the request, the model request, or the compaction. On the API spans for a Messages API request, the token counts are the tokens that your organization is billed for, even when the request fails or the application cancels it. The SDK’s `anthropic.messages.create` span has the counts that the response reports instead, so for a failed or canceled request they can be lower than on the API span, or absent. To count each token once, see [how to count tokens in the guide](https://platform.claude.com/docs/en/manage-claude/opentelemetry#count-tokens).
133133 
134| Attribute | Type | Description |
135| ---------------------------------------------------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
136| `gen_ai.usage.input_tokens` | `int` | The input tokens, cache reads and writes included. |
137| `gen_ai.usage.output_tokens` | `int` | The output tokens. |
138| `gen_ai.usage.cache_write.input_tokens` | `int` | The tokens written to the prompt cache. Absent on [`anthropic.session.outcome_evaluation`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-session-outcome-evaluation) spans. |
139| `anthropic.usage.cache_creation.ephemeral_5m_input_tokens` | `int` | The tokens written to the 5-minute cache. Only on the spans for Messages API requests. On a streaming response’s SDK span, only the tokens written before the first output token. |
140| `anthropic.usage.cache_creation.ephemeral_1h_input_tokens` | `int` | The tokens written to the 1-hour cache. Only on the spans for Messages API requests. On a streaming response’s SDK span, only the tokens written before the first output token. |
141| `gen_ai.usage.cache_read.input_tokens` | `int` | The tokens read from the prompt cache. Absent on [`anthropic.session.outcome_evaluation`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-session-outcome-evaluation) spans. |
134| Attribute | Type | Description |
135| ----- | ----- | ----- |
136| `gen_ai.usage.input_tokens` | `int` | The input tokens, cache reads and writes included. |
137| `gen_ai.usage.output_tokens` | `int` | The output tokens. |
138| `gen_ai.usage.cache_write.input_tokens` | `int` | The tokens written to the prompt cache. Absent on [`anthropic.session.outcome_evaluation`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-session-outcome-evaluation) spans. |
139| `anthropic.usage.cache_creation.ephemeral_5m_input_tokens` | `int` | The tokens written to the 5-minute cache. Only on the spans for Messages API requests. On a streaming response’s SDK span, only the tokens written before the first output token. |
140| `anthropic.usage.cache_creation.ephemeral_1h_input_tokens` | `int` | The tokens written to the 1-hour cache. Only on the spans for Messages API requests. On a streaming response’s SDK span, only the tokens written before the first output token. |
141| `gen_ai.usage.cache_read.input_tokens` | `int` | The tokens read from the prompt cache. Absent on [`anthropic.session.outcome_evaluation`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-session-outcome-evaluation) spans. |
142142 
143143## Spans
144144 
from line 161
161161 
162162The span has the [token usage attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#token-usage). The SDK span also has the attributes of every [SDK span for a request](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-resources-method).
163163 
164| Attribute | Type | Description |
165| ------------------------------------------ | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
166| `gen_ai.operation.name` | `string` | `chat` |
167| `gen_ai.request.model` | `string` | The request’s [`model`](https://platform.claude.com/docs/en/api/messages/create#create.model). |
168| `gen_ai.response.id` | `string` | The response’s [`id`](https://platform.claude.com/docs/en/api/messages/create#message). |
169| `gen_ai.response.model` | `string` | The model that served the request. It differs from the requested model when the request uses a model alias, or when a [fallback model](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback) served the request. |
170| `anthropic.message.stop_reason` | `string` | The response’s [`stop_reason`](https://platform.claude.com/docs/en/api/messages#stop_reason), for example `end_turn`. |
171| `anthropic.response.service_tier` | `string` | The service tier that served the request: the response’s [`usage.service_tier`](https://platform.claude.com/docs/en/api/messages#usage). See [how requests get assigned tiers](https://platform.claude.com/docs/en/api/service-tiers#how-requests-get-assigned-tiers). |
172| `error.type` | `string` | A failed request’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors), for example `rate_limit_error`.<br />**SDK:** Also the other values in [SDK spans for requests](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-resources-method).<br />**API:** `api_error` when the API ends the request without an error response. |
173| `gen_ai.response.time_to_first_chunk` | `double` | Only on a streaming response’s spans. The seconds to the stream’s first `content_block_delta` event, if it has one. |
174| `gen_ai.usage.reasoning.output_tokens` | `int` | The thinking tokens, which are part of the output tokens. Absent when the thinking tokens aren’t counted separately from the other output tokens, for example on a model whose responses don’t have details for the output tokens. |
175| `anthropic.usage.compaction.input_tokens` | `int` | Input tokens of the request’s [compactions](https://platform.claude.com/docs/en/build-with-claude/compaction), including cache reads and writes. Not part of `gen_ai.usage.input_tokens`. Absent when the request has no compaction. |
176| `anthropic.usage.compaction.output_tokens` | `int` | Output tokens of the request’s compactions. Not part of `gen_ai.usage.output_tokens`. Absent when the request has no compaction. |
177| `gen_ai.request.max_tokens` | `int` | The request’s [`max_tokens`](https://platform.claude.com/docs/en/api/messages/create#create.max_tokens). |
178| `gen_ai.request.stream` | `boolean` | `true` when the request sets [`stream: true`](https://platform.claude.com/docs/en/api/messages/create#create.stream). Absent otherwise. |
179| `gen_ai.request.reasoning.level` | `string` | The [`effort`](https://platform.claude.com/docs/en/api/messages/create#create.output_config.effort) in the request’s [`output_config`](https://platform.claude.com/docs/en/api/messages/create#create.output_config). Absent when the request doesn’t set it. |
180| `gen_ai.output.type` | `string` | `json` when the request sets the output format to JSON. Absent otherwise. |
181| `anthropic.request.service_tier` | `string` | The request’s [`service_tier`](https://platform.claude.com/docs/en/api/messages/create#create.service_tier). Absent when the request doesn’t set it. |
182| `anthropic.thinking.type` | `string` | The request’s [`thinking.type`](https://platform.claude.com/docs/en/api/messages/create#create.thinking). Absent when the request doesn’t set it. |
183| `anthropic.thinking.budget_tokens` | `int` | The [`budget_tokens`](https://platform.claude.com/docs/en/api/messages#thinking_config_enabled.budget_tokens) in the request’s [`thinking`](https://platform.claude.com/docs/en/api/messages/create#create.thinking) object. Absent when the request doesn’t set it. |
184| `anthropic.beta` | `string[]` | The beta names in the request’s [`anthropic-beta`](https://platform.claude.com/docs/en/api/beta/messages/create#create.betas) header. |
185| `gen_ai.system_instructions` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`SystemInstructions`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-system-instructions.json) schema. The request’s [`system`](https://platform.claude.com/docs/en/api/messages/create#create.system) prompt. |
186| `gen_ai.input.messages` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`InputMessages`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-input-messages.json) schema. The request’s [`messages`](https://platform.claude.com/docs/en/api/messages/create#create.messages). |
187| `gen_ai.output.messages` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`OutputMessages`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-output-messages.json) schema. The response’s [`content`](https://platform.claude.com/docs/en/api/messages/create#message), as one `assistant` message.<br />**SDK:** On a stream, only when the application reads the stream as [Tracing a stream](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#trace-a-stream) describes. |
188| `gen_ai.request.stop_sequences` | `string[]` | <Badge>Content</Badge> The request’s [`stop_sequences`](https://platform.claude.com/docs/en/api/messages/create#create.stop_sequences). |
164| Attribute | Type | Description |
165| ----- | ----- | ----- |
166| `gen_ai.operation.name` | `string` | `chat` |
167| `gen_ai.request.model` | `string` | The request’s [`model`](https://platform.claude.com/docs/en/api/messages/create#create.model). |
168| `gen_ai.response.id` | `string` | The response’s [`id`](https://platform.claude.com/docs/en/api/messages/create#message). |
169| `gen_ai.response.model` | `string` | The model that served the request. It differs from the requested model when the request uses a model alias, or when a [fallback model](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback) served the request. |
170| `anthropic.message.stop_reason` | `string` | The response’s [`stop_reason`](https://platform.claude.com/docs/en/api/messages#stop_reason), for example `end_turn`. |
171| `anthropic.response.service_tier` | `string` | The service tier that served the request: the response’s [`usage.service_tier`](https://platform.claude.com/docs/en/api/messages#usage). See [how requests get assigned tiers](https://platform.claude.com/docs/en/api/service-tiers#how-requests-get-assigned-tiers). |
172| `error.type` | `string` | A failed request’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors), for example `rate_limit_error`.<br />**SDK:** Also the other values in [SDK spans for requests](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-resources-method).<br />**API:** `api_error` when the API ends the request without an error response. |
173| `gen_ai.response.time_to_first_chunk` | `double` | Only on a streaming response’s spans. The seconds to the stream’s first `content_block_delta` event, if it has one. |
174| `gen_ai.usage.reasoning.output_tokens` | `int` | The thinking tokens, which are part of the output tokens. Absent when the thinking tokens aren’t counted separately from the other output tokens, for example on a model whose responses don’t have details for the output tokens. |
175| `anthropic.usage.compaction.input_tokens` | `int` | Input tokens of the request’s [compactions](https://platform.claude.com/docs/en/build-with-claude/compaction), including cache reads and writes. Not part of `gen_ai.usage.input_tokens`. Absent when the request has no compaction. |
176| `anthropic.usage.compaction.output_tokens` | `int` | Output tokens of the request’s compactions. Not part of `gen_ai.usage.output_tokens`. Absent when the request has no compaction. |
177| `gen_ai.request.max_tokens` | `int` | The request’s [`max_tokens`](https://platform.claude.com/docs/en/api/messages/create#create.max_tokens). |
178| `gen_ai.request.stream` | `boolean` | `true` when the request sets [`stream: true`](https://platform.claude.com/docs/en/api/messages/create#create.stream). Absent otherwise. |
179| `gen_ai.request.reasoning.level` | `string` | The [`effort`](https://platform.claude.com/docs/en/api/messages/create#create.output_config.effort) in the request’s [`output_config`](https://platform.claude.com/docs/en/api/messages/create#create.output_config). Absent when the request doesn’t set it. |
180| `gen_ai.output.type` | `string` | `json` when the request sets the output format to JSON. Absent otherwise. |
181| `anthropic.request.service_tier` | `string` | The request’s [`service_tier`](https://platform.claude.com/docs/en/api/messages/create#create.service_tier). Absent when the request doesn’t set it. |
182| `anthropic.thinking.type` | `string` | The request’s [`thinking.type`](https://platform.claude.com/docs/en/api/messages/create#create.thinking). Absent when the request doesn’t set it. |
183| `anthropic.thinking.budget_tokens` | `int` | The [`budget_tokens`](https://platform.claude.com/docs/en/api/messages#thinking_config_enabled.budget_tokens) in the request’s [`thinking`](https://platform.claude.com/docs/en/api/messages/create#create.thinking) object. Absent when the request doesn’t set it. |
184| `anthropic.beta` | `string[]` | The beta names in the request’s [`anthropic-beta`](https://platform.claude.com/docs/en/api/beta/messages/create#create.betas) header. |
185| `gen_ai.system_instructions` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`SystemInstructions`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-system-instructions.json) schema. The request’s [`system`](https://platform.claude.com/docs/en/api/messages/create#create.system) prompt. |
186| `gen_ai.input.messages` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`InputMessages`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-input-messages.json) schema. The request’s [`messages`](https://platform.claude.com/docs/en/api/messages/create#create.messages). |
187| `gen_ai.output.messages` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`OutputMessages`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-output-messages.json) schema. The response’s [`content`](https://platform.claude.com/docs/en/api/messages/create#message), as one `assistant` message.<br />**SDK:** On a stream, only when the application reads the stream as [Tracing a stream](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#trace-a-stream) describes. |
188| `gen_ai.request.stop_sequences` | `string[]` | <Badge>Content</Badge> The request’s [`stop_sequences`](https://platform.claude.com/docs/en/api/messages/create#create.stop_sequences). |
189189 
190190A request’s spans don’t have the response’s server tool usage counts, such as `web_search_requests`. Instead, the API emits a [tool span](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-tool-use-anthropic-mcp-tool-use-and-anthropic-custom-tool-use) for each use of a server tool.
191191 
from line 196
196196* **Parent:** The span that is current in the application when it calls the method, or none if no span is current.
197197* **Children:** None.
198198 
199| Attribute | Type | Description |
200| --------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------- |
201| `gen_ai.request.model` | `string` | The request’s model. |
202| `anthropic.message.count_tokens.input_tokens` | `int` | The token count in the response. This count isn’t usage. Don’t include it when you sum token usage. |
199| Attribute | Type | Description |
200| ----- | ----- | ----- |
201| `gen_ai.request.model` | `string` | The request’s model. |
202| `anthropic.message.count_tokens.input_tokens` | `int` | The token count in the response. This count isn’t usage. Don’t include it when you sum token usage. |
203203 
204204### `anthropic.sessions.create`
205205 
from line 208
208208* **Children of the SDK span:** The API span for that request.
209209* **Children of the API span:** The first turn’s [`anthropic.session.turn`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-session-turn) span, when the request has non-empty [`initial_events`](https://platform.claude.com/docs/en/api/beta/sessions/create#create.initial_events).
210210 
211| Attribute | Type | Description |
212| ---------------------------------- | -------- | ----------------------------------------------------------------------------------------------------- |
213| `gen_ai.agent.id` | `string` | The ID of the agent that the session was created from. |
214| `gen_ai.agent.name` | `string` | That agent’s name.<br />**SDK:** Absent when the request failed. |
215| `gen_ai.request.model` | `string` | The model of that agent, which runs the primary thread.<br />**SDK:** Absent when the request failed. |
216| `anthropic.session.environment.id` | `string` | The ID of the session’s environment. |
211| Attribute | Type | Description |
212| ----- | ----- | ----- |
213| `gen_ai.agent.id` | `string` | The ID of the agent that the session was created from. |
214| `gen_ai.agent.name` | `string` | That agent’s name.<br />**SDK:** Absent when the request failed. |
215| `gen_ai.request.model` | `string` | The model of that agent, which runs the primary thread.<br />**SDK:** Absent when the request failed. |
216| `anthropic.session.environment.id` | `string` | The ID of the session’s environment. |
217217 
218218### `anthropic.sessions.events.send`
219219 
from line 253
253253 
254254A turn starts when its thread enters the `running` state and ends when the thread leaves it.
255255 
256| Attribute | Type | Description |
257| ------------------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
258| `gen_ai.operation.name` | `string` | `invoke_agent` |
259| `gen_ai.agent.id` | `string` | The ID of the agent that runs the turn’s thread. Absent on an [advisor](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#advisor-threads) thread. |
260| `gen_ai.agent.name` | `string` | That agent’s name. `anthropic.advisor` on an advisor thread. |
261| `gen_ai.request.model` | `string` | That agent’s model. On an advisor thread, the advisor’s model. |
262| `anthropic.session.turn.stop_reason` | `string` | Why the turn ended: the [`session.thread_status_idle`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_session_thread_status_idle_event) event’s [`stop_reason.type`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_session_thread_status_idle_event), for example `requires_action`. Absent when the thread didn’t go idle. |
263| `error.type` | `string` | The [`error.type`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_session_error_event) of the [`session.error`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_session_error_event) event that ended the turn, if the turn failed. |
264| `gen_ai.agent.description` | `string` | That agent’s description. Absent on an advisor thread or when the agent doesn’t have one. |
265| `gen_ai.system_instructions` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`SystemInstructions`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-system-instructions.json) schema. The system prompt in effect for the turn. Only on a thread’s first turn. Absent on an advisor thread. |
266| `gen_ai.input.messages` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`InputMessages`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-input-messages.json) schema. The turn’s input events: user messages and tool results, [`system.message`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_system_message_event_params) events, and messages from other threads. Absent on an advisor thread. |
267| `gen_ai.output.messages` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`OutputMessages`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-output-messages.json) schema. The turn’s output events: the agent’s messages, tool uses, and tool results. |
256| Attribute | Type | Description |
257| ----- | ----- | ----- |
258| `gen_ai.operation.name` | `string` | `invoke_agent` |
259| `gen_ai.agent.id` | `string` | The ID of the agent that runs the turn’s thread. Absent on an [advisor](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#advisor-threads) thread. |
260| `gen_ai.agent.name` | `string` | That agent’s name. `anthropic.advisor` on an advisor thread. |
261| `gen_ai.request.model` | `string` | That agent’s model. On an advisor thread, the advisor’s model. |
262| `anthropic.session.turn.stop_reason` | `string` | Why the turn ended: the [`session.thread_status_idle`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_session_thread_status_idle_event) event’s [`stop_reason.type`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_session_thread_status_idle_event), for example `requires_action`. Absent when the thread didn’t go idle. |
263| `error.type` | `string` | The [`error.type`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_session_error_event) of the [`session.error`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_session_error_event) event that ended the turn, if the turn failed. |
264| `gen_ai.agent.description` | `string` | That agent’s description. Absent on an advisor thread or when the agent doesn’t have one. |
265| `gen_ai.system_instructions` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`SystemInstructions`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-system-instructions.json) schema. The system prompt in effect for the turn. Only on a thread’s first turn. Absent on an advisor thread. |
266| `gen_ai.input.messages` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`InputMessages`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-input-messages.json) schema. The turn’s input events: user messages and tool results, [`system.message`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_system_message_event_params) events, and messages from other threads. Absent on an advisor thread. |
267| `gen_ai.output.messages` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`OutputMessages`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-output-messages.json) schema. The turn’s output events: the agent’s messages, tool uses, and tool results. |
268268 
269269### `anthropic.model_request`
270270 
from line 283
283283 
284284The span has the [token usage attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#token-usage).
285285 
286| Attribute | Type | Description |
287| ----------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
288| `gen_ai.operation.name` | `string` | Only on the spans for Managed Agents sessions, where it’s `chat`. On the Messages API, the [`anthropic.messages.create`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-create) span for the request is the `chat` operation. |
289| `gen_ai.request.model` | `string` | The request’s model. |
290| `gen_ai.response.model` | `string` | Only on the spans for Messages API requests. The model that ran the model request. |
291| `error.type` | `string` | **Messages API:** The [`anthropic.messages.create`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-create) span’s `error.type`, if the request failed during this model request.<br />**Managed Agents:** If the model request failed, its [error type](https://platform.claude.com/docs/en/api/errors#http-errors), for example `rate_limit_error`. `api_error` if the model request failed without a response. |
286| Attribute | Type | Description |
287| ----- | ----- | ----- |
288| `gen_ai.operation.name` | `string` | Only on the spans for Managed Agents sessions, where it’s `chat`. On the Messages API, the [`anthropic.messages.create`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-create) span for the request is the `chat` operation. |
289| `gen_ai.request.model` | `string` | The request’s model. |
290| `gen_ai.response.model` | `string` | Only on the spans for Messages API requests. The model that ran the model request. |
291| `error.type` | `string` | **Messages API:** The [`anthropic.messages.create`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-create) span’s `error.type`, if the request failed during this model request.<br />**Managed Agents:** If the model request failed, its [error type](https://platform.claude.com/docs/en/api/errors#http-errors), for example `rate_limit_error`. `api_error` if the model request failed without a response. |
292292 
293293### `anthropic.tool_use`, `anthropic.mcp_tool_use`, and `anthropic.custom_tool_use`
294294 
from line 323
323323* **Managed Agents:** The agent uses a [multiagent](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration) tool or the [advisor tool](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#give-the-session-an-advisor).
324324* **Managed Agents:** The agent asks to use a tool, but the server denies the use under the [`auto` permission policy](https://platform.claude.com/docs/en/managed-agents/permission-policies#let-the-server-evaluate-each-call-with-auto), or the application denies it in a [`user.tool_confirmation`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_user_tool_confirmation_event) event.
325325 
326| Attribute | Type | Description |
327| ------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
328| `gen_ai.operation.name` | `string` | `execute_tool` |
329| `gen_ai.tool.name` | `string` | The tool’s name, for example `bash`. On API spans, an MCP tool’s name doesn’t have the server name. On Managed Agents, if the connection to the MCP server failed, it’s the name that the model generated and is only on spans in content mode. |
330| `gen_ai.tool.call.id` | `string` | **Messages API:** The `id` of the block in which the model asked to use the tool: a [`tool_use`](https://platform.claude.com/docs/en/api/messages#tool_use_block), [`server_tool_use`](https://platform.claude.com/docs/en/api/messages#server_tool_use_block), or [`mcp_tool_use`](https://platform.claude.com/docs/en/api/beta/messages#beta_mcp_tool_use_block) block.<br />**Managed Agents:** The ID of the event in which the agent asked to use the tool: an [`agent.tool_use`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_agent_tool_use_event), [`agent.mcp_tool_use`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_agent_mcp_tool_use_event), or [`agent.custom_tool_use`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_agent_custom_tool_use_event) event. |
331| `anthropic.mcp.server.name` | `string` | Only on the API spans for MCP tools. The name of the tool’s MCP server. On the Messages API, the [`mcp_tool_use`](https://platform.claude.com/docs/en/api/beta/messages#beta_mcp_tool_use_block) block’s [`server_name`](https://platform.claude.com/docs/en/api/beta/messages#beta_mcp_tool_use_block.server_name). |
332| `gen_ai.conversation.id` | `string` | The session thread ID, as [Session attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#session-attributes) describes. In the Messages tool runner, the conversation ID passed with the [`conversation_id` (typescript, java, php: `conversationId`; csharp: `ConversationId`; go: `option.WithOpenTelemetryConversationID()`) option](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#configure-the-sdk), and absent without one. Absent on the API spans for a Messages API request. |
333| `anthropic.session.id` | `string` | The session ID. Absent for a tool use outside a Managed Agents session, such as on the Messages API or in the Messages tool runner. |
334| `anthropic.session.thread.id` | `string` | Only on the session tool runner’s SDK spans. The session thread ID. Absent for a tool use on the primary thread. |
335| `anthropic.tool.evaluated_permission` | `string` | Only on the spans that the API emits in Managed Agents sessions. The result of evaluating the [permission policy](https://platform.claude.com/docs/en/managed-agents/permission-policies) for the tool use: `allow` or `ask`. |
336| `error.type` | `string` | The error type, if the tool use failed: `tool_error` when the tool’s code raises an error or when the tool returns an error result.<br />**API:** On the Messages API, a server tool’s error result instead has its [`error_code`](https://platform.claude.com/docs/en/api/messages#web_search_tool_result_error.error_code), for example `max_uses_exceeded`. On Managed Agents, if the connection to the MCP server failed, `mcp_authentication_failed_error` when authentication failed, otherwise `mcp_connection_failed_error`. If the request failed during the tool use, the request’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors). |
337| `gen_ai.tool.description` | `string` | Only on SDK spans. The description in the tool definition. Absent when the description is empty. |
338| `gen_ai.tool.type` | `string` | Only on SDK spans. `function` |
339| `gen_ai.tool.call.arguments` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`ToolCallArguments`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-tool-call-arguments.json) schema. The tool use’s [`input`](https://platform.claude.com/docs/en/api/messages#tool_use_block). |
340| `anthropic.tool_result.content` | `string` | <Badge>Content</Badge> A JSON string with an array of content blocks. The `content` of the tool result that goes back to the model. Also for an error result, except on Managed Agents when the connection to the MCP server failed. A string `content` becomes an array with one [`text`](https://platform.claude.com/docs/en/api/messages#text_block) block.<br />**API:** On the Messages API, when a server tool’s result `content` is one object, such as a `code_execution_result`, it becomes an array with that object. |
326| Attribute | Type | Description |
327| ----- | ----- | ----- |
328| `gen_ai.operation.name` | `string` | `execute_tool` |
329| `gen_ai.tool.name` | `string` | The tool’s name, for example `bash`. On API spans, an MCP tool’s name doesn’t have the server name. On Managed Agents, if the connection to the MCP server failed, it’s the name that the model generated and is only on spans in content mode. |
330| `gen_ai.tool.call.id` | `string` | **Messages API:** The `id` of the block in which the model asked to use the tool: a [`tool_use`](https://platform.claude.com/docs/en/api/messages#tool_use_block), [`server_tool_use`](https://platform.claude.com/docs/en/api/messages#server_tool_use_block), or [`mcp_tool_use`](https://platform.claude.com/docs/en/api/beta/messages#beta_mcp_tool_use_block) block.<br />**Managed Agents:** The ID of the event in which the agent asked to use the tool: an [`agent.tool_use`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_agent_tool_use_event), [`agent.mcp_tool_use`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_agent_mcp_tool_use_event), or [`agent.custom_tool_use`](https://platform.claude.com/docs/en/api/beta/sessions/events#beta_managed_agents_agent_custom_tool_use_event) event. |
331| `anthropic.mcp.server.name` | `string` | Only on the API spans for MCP tools. The name of the tool’s MCP server. On the Messages API, the [`mcp_tool_use`](https://platform.claude.com/docs/en/api/beta/messages#beta_mcp_tool_use_block) block’s [`server_name`](https://platform.claude.com/docs/en/api/beta/messages#beta_mcp_tool_use_block.server_name). |
332| `gen_ai.conversation.id` | `string` | The session thread ID, as [Session attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#session-attributes) describes. In the Messages tool runner, the conversation ID passed with the [`conversation_id` (typescript, java, php: `conversationId`; csharp: `ConversationId`; go: `option.WithOpenTelemetryConversationID()`) option](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#configure-the-sdk), and absent without one. Absent on the API spans for a Messages API request. |
333| `anthropic.session.id` | `string` | The session ID. Absent for a tool use outside a Managed Agents session, such as on the Messages API or in the Messages tool runner. |
334| `anthropic.session.thread.id` | `string` | Only on the session tool runner’s SDK spans. The session thread ID. Absent for a tool use on the primary thread. |
335| `anthropic.tool.evaluated_permission` | `string` | Only on the spans that the API emits in Managed Agents sessions. The result of evaluating the [permission policy](https://platform.claude.com/docs/en/managed-agents/permission-policies) for the tool use: `allow` or `ask`. |
336| `error.type` | `string` | The error type, if the tool use failed: `tool_error` when the tool’s code raises an error or when the tool returns an error result.<br />**API:** On the Messages API, a server tool’s error result instead has its [`error_code`](https://platform.claude.com/docs/en/api/messages#web_search_tool_result_error_code), for example `max_uses_exceeded`. On Managed Agents, if the connection to the MCP server failed, `mcp_authentication_failed_error` when authentication failed, otherwise `mcp_connection_failed_error`. If the request failed during the tool use, the request’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors). |
337| `gen_ai.tool.description` | `string` | Only on SDK spans. The description in the tool definition. Absent when the description is empty. |
338| `gen_ai.tool.type` | `string` | Only on SDK spans. `function` |
339| `gen_ai.tool.call.arguments` | `string` | <Badge>Content</Badge> A JSON string that follows the OpenTelemetry [`ToolCallArguments`](https://github.com/open-telemetry/semantic-conventions-genai/blob/e57c543b4889619eb2a05702471937db5119165d/model/gen-ai/gen-ai-tool-call-arguments.json) schema. The tool use’s [`input`](https://platform.claude.com/docs/en/api/messages#tool_use_block). |
340| `anthropic.tool_result.content` | `string` | <Badge>Content</Badge> A JSON string with an array of content blocks. The `content` of the tool result that goes back to the model. Also for an error result, except on Managed Agents when the connection to the MCP server failed. A string `content` becomes an array with one [`text`](https://platform.claude.com/docs/en/api/messages#text_block) block.<br />**API:** On the Messages API, when a server tool’s result `content` is one object, such as a `code_execution_result`, it becomes an array with that object. |
341341 
342342### `anthropic.compaction`
343343 
from line 348
348348 
349349The span has the compaction’s [token usage attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#token-usage). On [`anthropic.messages.create`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-create), a compaction’s usage is in the `anthropic.usage.compaction.*` attributes instead of the `gen_ai.usage.*` totals.
350350 
351| Attribute | Type | Description |
352| ----------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
353| `gen_ai.request.model` | `string` | The model requested for the compaction, which is the request’s [`model`](https://platform.claude.com/docs/en/api/messages/create#create.model). |
351| Attribute | Type | Description |
352| ----- | ----- | ----- |
353| `gen_ai.request.model` | `string` | The model requested for the compaction, which is the request’s [`model`](https://platform.claude.com/docs/en/api/messages/create#create.model). |
354354| `gen_ai.response.model` | `string` | The model that ran the compaction. It differs from `gen_ai.request.model` when the request uses a model alias, or when a [fallback model](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback) served the request. |
355| `error.type` | `string` | The request’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors), if the request failed during the compaction. |
355| `error.type` | `string` | The request’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors), if the request failed during the compaction. |
356356 
357357### `anthropic.session.outcome_evaluation`
358358 
from line 365
365365 
366366The span has two of the [token usage attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#token-usage): `gen_ai.usage.input_tokens` and `gen_ai.usage.output_tokens`.
367367 
368| Attribute | Type | Description |
369| -------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------ |
370| `anthropic.session.outcome.id` | `string` | The ID of the outcome that the iteration evaluates. |
371| `anthropic.session.outcome_evaluation.result` | `string` | The iteration’s result: `satisfied`, `needs_revision`, `max_iterations_reached`, `failed`, or `interrupted`. |
372| `anthropic.session.outcome_evaluation.iteration` | `int` | The iteration number. |
373| `anthropic.session.outcome_evaluation.explanation` | `string` | <Badge>Content</Badge> The grader’s explanation of the result, as plain text. |
368| Attribute | Type | Description |
369| ----- | ----- | ----- |
370| `anthropic.session.outcome.id` | `string` | The ID of the outcome that the iteration evaluates. |
371| `anthropic.session.outcome_evaluation.result` | `string` | The iteration’s result: `satisfied`, `needs_revision`, `max_iterations_reached`, `failed`, or `interrupted`. |
372| `anthropic.session.outcome_evaluation.iteration` | `int` | The iteration number. |
373| `anthropic.session.outcome_evaluation.explanation` | `string` | <Badge>Content</Badge> The grader’s explanation of the result, as plain text. |
374374 
375375### `anthropic.messages.tool_runner`
376376 
from line 381
381381 
382382The span ends with the loop. If the application stops the runner, the status is unset. If a tool’s code raises an error, its tool span has the status `ERROR` and the loop continues. The span doesn’t have usage attributes, so read the usage from its [`anthropic.messages.create`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-create) children.
383383 
384| Attribute | Type | Description |
385| ------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
386| `gen_ai.operation.name` | `string` | `invoke_agent` |
387| `gen_ai.request.model` | `string` | The model of the loop’s first request. |
384| Attribute | Type | Description |
385| ----- | ----- | ----- |
386| `gen_ai.operation.name` | `string` | `invoke_agent` |
387| `gen_ai.request.model` | `string` | The model of the loop’s first request. |
388388| `gen_ai.conversation.id` | `string` | The conversation ID passed with the [`conversation_id` (typescript, java, php: `conversationId`; csharp: `ConversationId`; go: `option.WithOpenTelemetryConversationID()`) option](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#configure-the-sdk). Absent without one. |
389| `error.type` | `string` | The [error type](https://platform.claude.com/docs/en/api/errors#http-errors) of the request that ended the loop, if the loop failed. `client_error` when the runner itself failed. |
390| `gen_ai.output.type` | `string` | `json` when the requests set the output format to JSON. Absent otherwise. |
389| `error.type` | `string` | The [error type](https://platform.claude.com/docs/en/api/errors#http-errors) of the request that ended the loop, if the loop failed. `client_error` when the runner itself failed. |
390| `gen_ai.output.type` | `string` | `json` when the requests set the output format to JSON. Absent otherwise. |
391391 
392392### `anthropic.messages.batches.<method>`
393393 
from line 398
398398 
399399The spans also have the attributes of every [SDK span for a request](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-resources-method).
400400 
401| Attribute | Type | Description |
402| --------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
403| `anthropic.message.batch.id` | `string` | The ID of the batch that the method acts on, or of the new batch for `create`. Absent on `list` and on a failed `create`. |
404| `anthropic.message.batch.request_count` | `int` | Only on `create`. The number of items in the [`requests`](https://platform.claude.com/docs/en/api/messages/batches/create#create.requests) array. |
401| Attribute | Type | Description |
402| ----- | ----- | ----- |
403| `anthropic.message.batch.id` | `string` | The ID of the batch that the method acts on, or of the new batch for `create`. Absent on `list` and on a failed `create`. |
404| `anthropic.message.batch.request_count` | `int` | Only on `create`. The number of items in the [`requests`](https://platform.claude.com/docs/en/api/messages/batches/create#create.requests) array. |
405405 
406406### `anthropic.sessions.<method>`
407407 
from line 415
415415The API emits an `anthropic.sessions.<method>` span for each authenticated request to an endpoint of the [Sessions API](https://platform.claude.com/docs/en/managed-agents/sessions). Requests that the platform sends on a user’s behalf, such as a message sent in the Claude Console or a session that a [scheduled deployment](https://platform.claude.com/docs/en/managed-agents/scheduled-deployments) starts, also have one, each in a new trace.
416416 
417417<Accordion title="Span names and endpoints">
418 | Span | Endpoint |
419 | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
420 | `anthropic.sessions.create` | [`POST /v1/sessions`](https://platform.claude.com/docs/en/api/beta/sessions/create) |
421 | `anthropic.sessions.list` | [`GET /v1/sessions`](https://platform.claude.com/docs/en/api/beta/sessions/list) |
422 | `anthropic.sessions.retrieve` | [`GET /v1/sessions/{session_id}`](https://platform.claude.com/docs/en/api/beta/sessions/retrieve) |
423 | `anthropic.sessions.update` | [`POST /v1/sessions/{session_id}`](https://platform.claude.com/docs/en/api/beta/sessions/update) |
424 | `anthropic.sessions.delete` | [`DELETE /v1/sessions/{session_id}`](https://platform.claude.com/docs/en/api/beta/sessions/delete) |
425 | `anthropic.sessions.archive` | [`POST /v1/sessions/{session_id}/archive`](https://platform.claude.com/docs/en/api/beta/sessions/archive) |
426 | `anthropic.sessions.events.send` | [`POST /v1/sessions/{session_id}/events`](https://platform.claude.com/docs/en/api/beta/sessions/events/send) |
427 | `anthropic.sessions.events.list` | [`GET /v1/sessions/{session_id}/events`](https://platform.claude.com/docs/en/api/beta/sessions/events/list) |
428 | `anthropic.sessions.events.stream` | [`GET /v1/sessions/{session_id}/events/stream`](https://platform.claude.com/docs/en/api/beta/sessions/events/stream) |
429 | `anthropic.sessions.resources.add` | [`POST /v1/sessions/{session_id}/resources`](https://platform.claude.com/docs/en/api/beta/sessions/resources/add) |
430 | `anthropic.sessions.resources.list` | [`GET /v1/sessions/{session_id}/resources`](https://platform.claude.com/docs/en/api/beta/sessions/resources/list) |
431 | `anthropic.sessions.resources.retrieve` | [`GET /v1/sessions/{session_id}/resources/{resource_id}`](https://platform.claude.com/docs/en/api/beta/sessions/resources/retrieve) |
432 | `anthropic.sessions.resources.update` | [`POST /v1/sessions/{session_id}/resources/{resource_id}`](https://platform.claude.com/docs/en/api/beta/sessions/resources/update) |
433 | `anthropic.sessions.resources.delete` | [`DELETE /v1/sessions/{session_id}/resources/{resource_id}`](https://platform.claude.com/docs/en/api/beta/sessions/resources/delete) |
434 | `anthropic.sessions.threads.list` | [`GET /v1/sessions/{session_id}/threads`](https://platform.claude.com/docs/en/api/beta/sessions/threads/list) |
435 | `anthropic.sessions.threads.retrieve` | [`GET /v1/sessions/{session_id}/threads/{thread_id}`](https://platform.claude.com/docs/en/api/beta/sessions/threads/retrieve) |
436 | `anthropic.sessions.threads.archive` | [`POST /v1/sessions/{session_id}/threads/{thread_id}/archive`](https://platform.claude.com/docs/en/api/beta/sessions/threads/archive) |
437 | `anthropic.sessions.threads.events.list` | [`GET /v1/sessions/{session_id}/threads/{thread_id}/events`](https://platform.claude.com/docs/en/api/beta/sessions/threads/events/list) |
418 | Span | Endpoint |
419 | ----- | ----- |
420 | `anthropic.sessions.create` | [`POST /v1/sessions`](https://platform.claude.com/docs/en/api/beta/sessions/create) |
421 | `anthropic.sessions.list` | [`GET /v1/sessions`](https://platform.claude.com/docs/en/api/beta/sessions/list) |
422 | `anthropic.sessions.retrieve` | [`GET /v1/sessions/{session_id}`](https://platform.claude.com/docs/en/api/beta/sessions/retrieve) |
423 | `anthropic.sessions.update` | [`POST /v1/sessions/{session_id}`](https://platform.claude.com/docs/en/api/beta/sessions/update) |
424 | `anthropic.sessions.delete` | [`DELETE /v1/sessions/{session_id}`](https://platform.claude.com/docs/en/api/beta/sessions/delete) |
425 | `anthropic.sessions.archive` | [`POST /v1/sessions/{session_id}/archive`](https://platform.claude.com/docs/en/api/beta/sessions/archive) |
426 | `anthropic.sessions.events.send` | [`POST /v1/sessions/{session_id}/events`](https://platform.claude.com/docs/en/api/beta/sessions/events/send) |
427 | `anthropic.sessions.events.list` | [`GET /v1/sessions/{session_id}/events`](https://platform.claude.com/docs/en/api/beta/sessions/events/list) |
428 | `anthropic.sessions.events.stream` | [`GET /v1/sessions/{session_id}/events/stream`](https://platform.claude.com/docs/en/api/beta/sessions/events/stream) |
429 | `anthropic.sessions.resources.add` | [`POST /v1/sessions/{session_id}/resources`](https://platform.claude.com/docs/en/api/beta/sessions/resources/add) |
430 | `anthropic.sessions.resources.list` | [`GET /v1/sessions/{session_id}/resources`](https://platform.claude.com/docs/en/api/beta/sessions/resources/list) |
431 | `anthropic.sessions.resources.retrieve` | [`GET /v1/sessions/{session_id}/resources/{resource_id}`](https://platform.claude.com/docs/en/api/beta/sessions/resources/retrieve) |
432 | `anthropic.sessions.resources.update` | [`POST /v1/sessions/{session_id}/resources/{resource_id}`](https://platform.claude.com/docs/en/api/beta/sessions/resources/update) |
433 | `anthropic.sessions.resources.delete` | [`DELETE /v1/sessions/{session_id}/resources/{resource_id}`](https://platform.claude.com/docs/en/api/beta/sessions/resources/delete) |
434 | `anthropic.sessions.threads.list` | [`GET /v1/sessions/{session_id}/threads`](https://platform.claude.com/docs/en/api/beta/sessions/threads/list) |
435 | `anthropic.sessions.threads.retrieve` | [`GET /v1/sessions/{session_id}/threads/{thread_id}`](https://platform.claude.com/docs/en/api/beta/sessions/threads/retrieve) |
436 | `anthropic.sessions.threads.archive` | [`POST /v1/sessions/{session_id}/threads/{thread_id}/archive`](https://platform.claude.com/docs/en/api/beta/sessions/threads/archive) |
437 | `anthropic.sessions.threads.events.list` | [`GET /v1/sessions/{session_id}/threads/{thread_id}/events`](https://platform.claude.com/docs/en/api/beta/sessions/threads/events/list) |
438438 | `anthropic.sessions.threads.events.stream` | [`GET /v1/sessions/{session_id}/threads/{thread_id}/stream`](https://platform.claude.com/docs/en/api/beta/sessions/threads/events/stream) |
439439</Accordion>
440440 
441441The span has the [session attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#session-attributes). The SDK span also has the attributes of every [SDK span for a request](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-resources-method).
442442 
443| Attribute | Type | Description |
444| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
443| Attribute | Type | Description |
444| ----- | ----- | ----- |
445445| `error.type` | `string` | A failed request’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors), for example `rate_limit_error`.<br />**SDK:** Also the other values in [SDK spans for requests](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-resources-method).<br />**API:** `api_error` when the API closed the connection without an error response, or when a stream ended because of a failure in the API. |
446446 
447447### `anthropic.environment.work`
from line 453
453453 
454454The environment worker and the work poller are the [SDK helpers](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes#sdk-helpers) that claim work items in a self-hosted sandbox. They emit one `anthropic.environment.work` span for each work item, from when a poll returns the work item until its handling ends.
455455 
456| Attribute | Type | Description |
457| ------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
458| `anthropic.environment.id` | `string` | The environment ID. |
459| `anthropic.environment.work.id` | `string` | The work item ID. |
460| `anthropic.session.id` | `string` | The ID of the session that the work item belongs to. |
461| `error.type` | `string` | The `error.type` of the span for the failed request, if a request ended the handling. `client_error` for any other failure. |
456| Attribute | Type | Description |
457| ----- | ----- | ----- |
458| `anthropic.environment.id` | `string` | The environment ID. |
459| `anthropic.environment.work.id` | `string` | The work item ID. |
460| `anthropic.session.id` | `string` | The ID of the session that the work item belongs to. |
461| `error.type` | `string` | The `error.type` of the span for the failed request, if a request ended the handling. `client_error` for any other failure. |
462462 
463463### `anthropic.<resources>.<method>`
464464 
from line 473
473473 
474474Every SDK span for a request, including [`anthropic.messages.create`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-create), [`anthropic.messages.count_tokens`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-count-tokens), and [`anthropic.messages.batches.<method>`](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-messages-batches-method), has the following attributes:
475475 
476| Attribute | Type | Description |
477| --------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
478| `gen_ai.conversation.id` | `string` | The conversation ID passed with the [`conversation_id` (typescript, java, php: `conversationId`; csharp: `ConversationId`; go: `option.WithOpenTelemetryConversationID()`) option](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#configure-the-sdk). Without one, the ID of the session thread that the span belongs to, as in [Session attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#session-attributes), and absent on spans with no thread. |
479| `anthropic.<resource>.id` | `string` | One attribute for each ID in the request’s path and one for the ID of an object that the method creates. The name comes from the path, in the singular, for example `anthropic.session.id` or `anthropic.session.thread.id`. |
480| `gen_ai.agent.id` | `string` | The agent ID, on the agent methods. |
481| `gen_ai.memory.store.id` | `string` | The memory store ID, on the memory store methods. |
482| `gen_ai.memory.record.id` | `string` | The memory ID, on the memory methods. |
483| `http.request.resend_count` | `int` | The number of times that the SDK resent the request, for any reason, such as a retry. Absent when the SDK didn’t resend it. |
484| `error.type` | `string` | A failed call’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors), for example `rate_limit_error`. The HTTP status code, for example `502`, when the error response doesn’t have an error type. `connection_error`, `client_timeout_error`, or `client_error` when the call failed in the SDK. `api_error` when the server ended a stream early. |
485| `server.address` | `string` | The host of the client’s base URL, `api.anthropic.com` by default. On a cloud platform’s client, that platform’s host. |
486| `url.query` | `string` | The URL’s query string, with only the query parameters that the endpoint defines. Absent when there are none. In metadata-only mode, absent when the query has a sensitive parameter, such as `email`. |
487| `url.full` | `string` | The URL, made of `url.scheme`, `server.address`, the port when the base URL has one, `url.path`, and `url.query`. In metadata-only mode, absent whenever that mode leaves out `url.query`. |
476| Attribute | Type | Description |
477| ----- | ----- | ----- |
478| `gen_ai.conversation.id` | `string` | The conversation ID passed with the [`conversation_id` (typescript, java, php: `conversationId`; csharp: `ConversationId`; go: `option.WithOpenTelemetryConversationID()`) option](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#configure-the-sdk). Without one, the ID of the session thread that the span belongs to, as in [Session attributes](https://platform.claude.com/docs/en/api/opentelemetry/spans#session-attributes), and absent on spans with no thread. |
479| `anthropic.<resource>.id` | `string` | One attribute for each ID in the request’s path and one for the ID of an object that the method creates. The name comes from the path, in the singular, for example `anthropic.session.id` or `anthropic.session.thread.id`. |
480| `gen_ai.agent.id` | `string` | The agent ID, on the agent methods. |
481| `gen_ai.memory.store.id` | `string` | The memory store ID, on the memory store methods. |
482| `gen_ai.memory.record.id` | `string` | The memory ID, on the memory methods. |
483| `http.request.resend_count` | `int` | The number of times that the SDK resent the request, for any reason, such as a retry. Absent when the SDK didn’t resend it. |
484| `error.type` | `string` | A failed call’s [error type](https://platform.claude.com/docs/en/api/errors#http-errors), for example `rate_limit_error`. The HTTP status code, for example `502`, when the error response doesn’t have an error type. `connection_error`, `client_timeout_error`, or `client_error` when the call failed in the SDK. `api_error` when the server ended a stream early. |
485| `server.address` | `string` | The host of the client’s base URL, `api.anthropic.com` by default. On a cloud platform’s client, that platform’s host. |
486| `url.query` | `string` | The URL’s query string, with only the query parameters that the endpoint defines. Absent when there are none. In metadata-only mode, absent when the query has a sensitive parameter, such as `email`. |
487| `url.full` | `string` | The URL, made of `url.scheme`, `server.address`, the port when the base URL has one, `url.path`, and `url.query`. In metadata-only mode, absent whenever that mode leaves out `url.query`. |
488488 

api/organization Changed · +101 / -94 lines

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

from line 730
730730 
731731- `sandbox_egress_restricted` (HTTP status 403)
732732 
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.
733 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
734734 
735735#### Example
736736 
from line 796
796796 
797797 - `kms_arn: string`
798798 
799 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
799 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
800800 
801801 maxLength: 2048
802802 
from line 910
910910 
911911 - `kms_arn: string`
912912 
913 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
913 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
914914 
915915 maxLength: 2048
916916 
from line 972
972972 
973973- `sandbox_egress_restricted` (HTTP status 403)
974974 
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.
975 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
976976 
977977#### Example
978978 
from line 1092
10921092 
10931093 - `kms_arn: string`
10941094 
1095 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
1095 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
10961096 
10971097 maxLength: 2048
10981098 
from line 1260
12601260 
12611261 - `kms_arn: string`
12621262 
1263 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
1263 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
12641264 
12651265 maxLength: 2048
12661266 
from line 1348
13481348Partially update an external key config. Omitted fields are left unchanged.
13491349 
13501350`display_name` is always editable. `geo` and `provider_config` cannot
1351be changed once any workspace references this config, because previously
1352encrypted data requires the original key identity to decrypt.
1351be changed once any workspace references this config, and a Google Cloud
1352key's provider and `key_name` cannot be changed at all.
13531353 
13541354#### Path parameters
13551355 
from line 1389
13891389 
13901390 - `kms_arn: string`
13911391 
1392 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
1392 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
13931393 
13941394 maxLength: 2048
13951395 
from line 1489
14891489 
14901490 - `kms_arn: string`
14911491 
1492 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
1492 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
14931493 
14941494 maxLength: 2048
14951495 
from line 1551
15511551 
15521552- `sandbox_egress_restricted` (HTTP status 403)
15531553 
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.
1554 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
15551555 
15561556#### Example
15571557 
from line 1632
16321632 
16331633- `sandbox_egress_restricted` (HTTP status 403)
16341634 
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.
1635 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
16361636 
16371637#### Example
16381638 
from line 1705
17051705 
17061706- `sandbox_egress_restricted` (HTTP status 403)
17071707 
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.
1708 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
17091709 
17101710#### Example
17111711 
from line 1975
19751975 
19761976- `sandbox_egress_restricted` (HTTP status 403)
19771977 
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.
1978 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
19791979 
19801980#### Example
19811981 
from line 2690
26902690 
26912691- `sandbox_egress_restricted` (HTTP status 403)
26922692 
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.
2693 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
26942694 
26952695#### Example
26962696 
from line 2906
29062906 
29072907- `sandbox_egress_restricted` (HTTP status 403)
29082908 
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.
2909 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
29102910 
29112911#### Example
29122912 
from line 3202
32023202 
32033203- `sandbox_egress_restricted` (HTTP status 403)
32043204 
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.
3205 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
32063206 
32073207#### Example
32083208 
from line 3949
39493949 
39503950- `sandbox_egress_restricted` (HTTP status 403)
39513951 
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.
3952 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
39533953 
39543954#### Example
39553955 
from line 4174
41744174 
41754175- `sandbox_egress_restricted` (HTTP status 403)
41764176 
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.
4177 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
41784178 
41794179#### Example
41804180 
from line 4304
43044304 
43054305- `sandbox_egress_restricted` (HTTP status 403)
43064306 
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.
4307 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
43084308 
43094309#### Example
43104310 
from line 4484
44844484 
44854485- `sandbox_egress_restricted` (HTTP status 403)
44864486 
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.
4487 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
44884488 
44894489#### Example
44904490 
from line 4665
46654665 
46664666- `sandbox_egress_restricted` (HTTP status 403)
46674667 
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.
4668 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
46694669 
46704670#### Example
46714671 
from line 5037
50375037 
50385038- `sandbox_egress_restricted` (HTTP status 403)
50395039 
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.
5040 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
50415041 
50425042#### Example
50435043 
from line 5176
51765176 
51775177- `sandbox_egress_restricted` (HTTP status 403)
51785178 
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.
5179 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
51805180 
51815181#### Example
51825182 
from line 5564
55645564 
55655565- `sandbox_egress_restricted` (HTTP status 403)
55665566 
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.
5567 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
55685568 
55695569#### Example
55705570 
from line 5692
56925692 
56935693- `sandbox_egress_restricted` (HTTP status 403)
56945694 
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.
5695 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
56965696 
56975697#### Example
56985698 
from line 5816
58165816 
58175817- `sandbox_egress_restricted` (HTTP status 403)
58185818 
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.
5819 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
58205820 
58215821#### Example
58225822 
from line 6016
60166016 
60176017- `sandbox_egress_restricted` (HTTP status 403)
60186018 
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.
6019 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
60206020 
60216021#### Example
60226022 
from line 6366
63666366 
63676367- `sandbox_egress_restricted` (HTTP status 403)
63686368 
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.
6369 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
63706370 
63716371#### Example
63726372 
from line 6439
64396439 
64406440- `sandbox_egress_restricted` (HTTP status 403)
64416441 
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.
6442 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
64436443 
64446444- `concurrent_membership_change` (HTTP status 409)
64456445 
from line 6594
65946594 organization. When set, data stored for this Workspace is encrypted with the
65956595 referenced key. Create key configurations with the External Keys API. On
65966596 Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your
6597 organization's own key must be a single-Region key in the same AWS account and
6598 Region as the Workspace. On that platform the key is validated against this
6599 Workspace when it is attached, so a key-policy problem is reported as an error
6600 on this request. This field is write-once: once a key is attached to a Workspace
6601 it cannot be detached or replaced. To rotate key material, rotate the underlying
6602 key on your cloud KMS; the `external_key_id` stays the same.
6597 organization's own key must be a single-Region key in the same Region as the
6598 Workspace. If that key is outside the Workspace's AWS account, it can be attached
6599 only by updating an active Workspace. On that platform the key is validated
6600 against this Workspace when it is attached, so a key-policy problem is reported
6601 as an error on this request. This field is write-once: once a key is attached to
6602 a Workspace it cannot be detached or replaced. To rotate key material, rotate
6603 the underlying key on your cloud KMS; the `external_key_id` stays the same.
66036604 
66046605 - `name: string`
66056606 
from line 6729
67286729 organization. When set, data stored for this Workspace is encrypted with the
67296730 referenced key. Create key configurations with the External Keys API. On
67306731 Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your
6731 organization's own key must be a single-Region key in the same AWS account and
6732 Region as the Workspace. On that platform the key is validated against this
6733 Workspace when it is attached, so a key-policy problem is reported as an error
6734 on this request. This field is write-once: once a key is attached to a Workspace
6735 it cannot be detached or replaced. To rotate key material, rotate the underlying
6736 key on your cloud KMS; the `external_key_id` stays the same.
6732 organization's own key must be a single-Region key in the same Region as the
6733 Workspace. If that key is outside the Workspace's AWS account, it can be attached
6734 only by updating an active Workspace. On that platform the key is validated
6735 against this Workspace when it is attached, so a key-policy problem is reported
6736 as an error on this request. This field is write-once: once a key is attached to
6737 a Workspace it cannot be detached or replaced. To rotate key material, rotate
6738 the underlying key on your cloud KMS; the `external_key_id` stays the same.
67376739 
67386740- `tags: optional map[string] or null`
67396741 
from line 6826
68246826 organization. When set, data stored for this Workspace is encrypted with the
68256827 referenced key. Create key configurations with the External Keys API. On
68266828 Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your
6827 organization's own key must be a single-Region key in the same AWS account and
6828 Region as the Workspace. On that platform the key is validated against this
6829 Workspace when it is attached, so a key-policy problem is reported as an error
6830 on this request. This field is write-once: once a key is attached to a Workspace
6831 it cannot be detached or replaced. To rotate key material, rotate the underlying
6832 key on your cloud KMS; the `external_key_id` stays the same.
6829 organization's own key must be a single-Region key in the same Region as the
6830 Workspace. If that key is outside the Workspace's AWS account, it can be attached
6831 only by updating an active Workspace. On that platform the key is validated
6832 against this Workspace when it is attached, so a key-policy problem is reported
6833 as an error on this request. This field is write-once: once a key is attached to
6834 a Workspace it cannot be detached or replaced. To rotate key material, rotate
6835 the underlying key on your cloud KMS; the `external_key_id` stays the same.
68336836 
68346837 - `name: string`
68356838 
from line 6874
68716874 
68726875- `sandbox_egress_restricted` (HTTP status 403)
68736876 
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.
6877 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
68756878 
68766879- `external_key_changed` (HTTP status 409)
68776880 
from line 7025
70227025 organization. When set, data stored for this Workspace is encrypted with the
70237026 referenced key. Create key configurations with the External Keys API. On
70247027 Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your
7025 organization's own key must be a single-Region key in the same AWS account and
7026 Region as the Workspace. On that platform the key is validated against this
7027 Workspace when it is attached, so a key-policy problem is reported as an error
7028 on this request. This field is write-once: once a key is attached to a Workspace
7029 it cannot be detached or replaced. To rotate key material, rotate the underlying
7030 key on your cloud KMS; the `external_key_id` stays the same.
7028 organization's own key must be a single-Region key in the same Region as the
7029 Workspace. If that key is outside the Workspace's AWS account, it can be attached
7030 only by updating an active Workspace. On that platform the key is validated
7031 against this Workspace when it is attached, so a key-policy problem is reported
7032 as an error on this request. This field is write-once: once a key is attached to
7033 a Workspace it cannot be detached or replaced. To rotate key material, rotate
7034 the underlying key on your cloud KMS; the `external_key_id` stays the same.
70317035 
70327036 - `name: string`
70337037 
from line 7135
71317135 organization. When set, data stored for this Workspace is encrypted with the
71327136 referenced key. Create key configurations with the External Keys API. On
71337137 Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your
7134 organization's own key must be a single-Region key in the same AWS account and
7135 Region as the Workspace. On that platform the key is validated against this
7136 Workspace when it is attached, so a key-policy problem is reported as an error
7137 on this request. This field is write-once: once a key is attached to a Workspace
7138 it cannot be detached or replaced. To rotate key material, rotate the underlying
7139 key on your cloud KMS; the `external_key_id` stays the same.
7138 organization's own key must be a single-Region key in the same Region as the
7139 Workspace. If that key is outside the Workspace's AWS account, it can be attached
7140 only by updating an active Workspace. On that platform the key is validated
7141 against this Workspace when it is attached, so a key-policy problem is reported
7142 as an error on this request. This field is write-once: once a key is attached to
7143 a Workspace it cannot be detached or replaced. To rotate key material, rotate
7144 the underlying key on your cloud KMS; the `external_key_id` stays the same.
71407145 
71417146- `name: optional string`
71427147 
from line 7238
72337238 organization. When set, data stored for this Workspace is encrypted with the
72347239 referenced key. Create key configurations with the External Keys API. On
72357240 Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your
7236 organization's own key must be a single-Region key in the same AWS account and
7237 Region as the Workspace. On that platform the key is validated against this
7238 Workspace when it is attached, so a key-policy problem is reported as an error
7239 on this request. This field is write-once: once a key is attached to a Workspace
7240 it cannot be detached or replaced. To rotate key material, rotate the underlying
7241 key on your cloud KMS; the `external_key_id` stays the same.
7241 organization's own key must be a single-Region key in the same Region as the
7242 Workspace. If that key is outside the Workspace's AWS account, it can be attached
7243 only by updating an active Workspace. On that platform the key is validated
7244 against this Workspace when it is attached, so a key-policy problem is reported
7245 as an error on this request. This field is write-once: once a key is attached to
7246 a Workspace it cannot be detached or replaced. To rotate key material, rotate
7247 the underlying key on your cloud KMS; the `external_key_id` stays the same.
72427248 
72437249 - `name: string`
72447250 
from line 7286
72807286 
72817287- `sandbox_egress_restricted` (HTTP status 403)
72827288 
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.
7289 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
72847290 
72857291- `external_key_changed` (HTTP status 409)
72867292 
from line 7435
74297435 organization. When set, data stored for this Workspace is encrypted with the
74307436 referenced key. Create key configurations with the External Keys API. On
74317437 Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your
7432 organization's own key must be a single-Region key in the same AWS account and
7433 Region as the Workspace. On that platform the key is validated against this
7434 Workspace when it is attached, so a key-policy problem is reported as an error
7435 on this request. This field is write-once: once a key is attached to a Workspace
7436 it cannot be detached or replaced. To rotate key material, rotate the underlying
7437 key on your cloud KMS; the `external_key_id` stays the same.
7438 organization's own key must be a single-Region key in the same Region as the
7439 Workspace. If that key is outside the Workspace's AWS account, it can be attached
7440 only by updating an active Workspace. On that platform the key is validated
7441 against this Workspace when it is attached, so a key-policy problem is reported
7442 as an error on this request. This field is write-once: once a key is attached to
7443 a Workspace it cannot be detached or replaced. To rotate key material, rotate
7444 the underlying key on your cloud KMS; the `external_key_id` stays the same.
74387445 
74397446 - `name: string`
74407447 
from line 7463
74567463 
74577464- `sandbox_egress_restricted` (HTTP status 403)
74587465 
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.
7466 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
74607467 
74617468#### Example
74627469 
from line 7665
76587665 
76597666 - `type: string`
76607667 
7661 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
7668 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute_cache_aware`).
76627669 
76637670 - `org_limit: number or null`
76647671 
from line 7796
77897796 
77907797 - `type: WorkspaceRateLimitType`
77917798 
7792 Rate limiter type.
7799 Rate limiter type. `input_tokens_per_minute` counts every input token, cache reads included. `input_tokens_per_minute_cache_aware` does not count cache reads, and on current models the organization's input-token limit usually has this type. A workspace limit of either type applies alongside the organization's limit, not in place of it. Because cache reads count toward an `input_tokens_per_minute` limit, it can reject requests that read mostly from the cache while the organization's limit still has room.
77937800 
77947801 - `"fast_itpmca"`
77957802 
from line 7918
79117918 
79127919 - `type: string`
79137920 
7914 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
7921 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute_cache_aware`).
79157922 
79167923 - `org_limit: number or null`
79177924 
from line 7968
79617968 
79627969- `sandbox_egress_restricted` (HTTP status 403)
79637970 
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.
7971 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
79657972 
79667973#### Example
79677974 
from line 8211
82048211 
82058212- `sandbox_egress_restricted` (HTTP status 403)
82068213 
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.
8214 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
82088215 
82098216#### Example
82108217 
from line 8400
83938400 
83948401- `sandbox_egress_restricted` (HTTP status 403)
83958402 
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.
8403 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
83978404 
83988405#### Example
83998406 
from line 8475
84688475 
84698476- `sandbox_egress_restricted` (HTTP status 403)
84708477 
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.
8478 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
84728479 
84738480#### Example
84748481 
from line 8702
86958702 
86968703- `sandbox_egress_restricted` (HTTP status 403)
86978704 
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.
8705 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
86998706 
87008707#### Example
87018708 
from line 8915
89088915 
89098916- `sandbox_egress_restricted` (HTTP status 403)
89108917 
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.
8918 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
89128919 
89138920#### Example
89148921 
from line 8996
89898996 
89908997- `sandbox_egress_restricted` (HTTP status 403)
89918998 
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.
8999 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
89939000 
89949001#### Example
89959002 
from line 9177
91709177 
91719178 - `type: string`
91729179 
9173 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
9180 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute_cache_aware`).
91749181 
91759182 - `value: number`
91769183 
from line 9266
92599266 
92609267 default: enabled
92619268 
9262 - `ComplianceSettingsStateDisabled object`
9263 
9264 - `type: "disabled"`
9265 
9266 default: disabled
9267 
9268#### Example
9269 
9270```bash
9271curl https://api.anthropic.com/v1/organizations/compliance_settings \
9272 -H 'anthropic-version: 2026-10-21' \
9273 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
9274```
9275 
9276##### Response (200)
9277 
9278```json
9279{
9280 "state": {
9281 "type": "enabled"
9282 },
9283 "type": "compliance_settings"
9284}
9285```
9286 
9287### Update Compliance Settings
9288 
9289**POST** `/v1/organizations/compliance_settings`
9290 
9291Update your organization's Compliance Settings.
9292 
9293Setting `state` to `enabled` turns on the Compliance API and begins
9294capturing organization activity events. Setting it to `disabled` turns
9295both off. Access Transparency events are an exception: they are still
9296captured while the Compliance API is disabled, and the Compliance API
9297activity feed returns them once it is enabled again. `state` reflects
9298whether the Compliance API is enabled.
9299 
9300A request that sets `state` to its current value succeeds and leaves the
9301resource unchanged. A `
9269

api/organization/external_keys Changed · +14 / -14 lines

from line 31
3131 
3232 - `kms_arn: string`
3333 
34 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
34 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
3535 
3636 maxLength: 2048
3737 
from line 145
145145 
146146 - `kms_arn: string`
147147 
148 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
148 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
149149 
150150 maxLength: 2048
151151 
from line 207
207207 
208208- `sandbox_egress_restricted` (HTTP status 403)
209209 
210 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.
210 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
211211 
212212### Example
213213 
from line 327
327327 
328328 - `kms_arn: string`
329329 
330 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
330 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
331331 
332332 maxLength: 2048
333333 
from line 495
495495 
496496 - `kms_arn: string`
497497 
498 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
498 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
499499 
500500 maxLength: 2048
501501 
from line 583
583583Partially update an external key config. Omitted fields are left unchanged.
584584 
585585`display_name` is always editable. `geo` and `provider_config` cannot
586be changed once any workspace references this config, because previously
587encrypted data requires the original key identity to decrypt.
586be changed once any workspace references this config, and a Google Cloud
587key's provider and `key_name` cannot be changed at all.
588588 
589589### Path parameters
590590 
from line 624
624624 
625625 - `kms_arn: string`
626626 
627 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
627 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
628628 
629629 maxLength: 2048
630630 
from line 724
724724 
725725 - `kms_arn: string`
726726 
727 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
727 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
728728 
729729 maxLength: 2048
730730 
from line 786
786786 
787787- `sandbox_egress_restricted` (HTTP status 403)
788788 
789 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.
789 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
790790 
791791### Example
792792 
from line 867
867867 
868868- `sandbox_egress_restricted` (HTTP status 403)
869869 
870 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.
870 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
871871 
872872### Example
873873 
from line 940
940940 
941941- `sandbox_egress_restricted` (HTTP status 403)
942942 
943 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.
943 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
944944 
945945### Example
946946 
from line 971
971971 
972972 - `kms_arn: string`
973973 
974 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
974 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
975975 
976976 maxLength: 2048
977977 
from line 1087
10871087 
10881088 - `kms_arn: string`
10891089 
1090 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
1090 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
10911091 
10921092 maxLength: 2048
10931093 

api/organization/external_keys/create Changed · +3 / -3 lines

from line 29
2929 
3030 - `kms_arn: string`
3131 
32 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
32 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
3333 
3434 maxLength: 2048
3535 
from line 143
143143 
144144 - `kms_arn: string`
145145 
146 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
146 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
147147 
148148 maxLength: 2048
149149 
from line 205
205205 
206206- `sandbox_egress_restricted` (HTTP status 403)
207207 
208 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.
208 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
209209 
210210## Example
211211 

api/organization/external_keys/update Changed · +5 / -5 lines

from line 10
1010Partially update an external key config. Omitted fields are left unchanged.
1111 
1212`display_name` is always editable. `geo` and `provider_config` cannot
13be changed once any workspace references this config, because previously
14encrypted data requires the original key identity to decrypt.
13be changed once any workspace references this config, and a Google Cloud
14key's provider and `key_name` cannot be changed at all.
1515 
1616## Path parameters
1717 
from line 51
5151 
5252 - `kms_arn: string`
5353 
54 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
54 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
5555 
5656 maxLength: 2048
5757 
from line 151
151151 
152152 - `kms_arn: string`
153153 
154 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
154 Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key.
155155 
156156 maxLength: 2048
157157 
from line 213
213213 
214214- `sandbox_egress_restricted` (HTTP status 403)
215215 
216 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.
216 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
217217 
218218## Example
219219 

api/organization/federation Changed · +8 / -8 lines

from line 254
254254 
255255- `sandbox_egress_restricted` (HTTP status 403)
256256 
257 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.
257 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
258258 
259259#### Example
260260 
from line 969
969969 
970970- `sandbox_egress_restricted` (HTTP status 403)
971971 
972 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.
972 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
973973 
974974#### Example
975975 
from line 1185
11851185 
11861186- `sandbox_egress_restricted` (HTTP status 403)
11871187 
1188 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.
1188 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
11891189 
11901190#### Example
11911191 
from line 1481
14811481 
14821482- `sandbox_egress_restricted` (HTTP status 403)
14831483 
1484 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.
1484 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
14851485 
14861486#### Example
14871487 
from line 2228
22282228 
22292229- `sandbox_egress_restricted` (HTTP status 403)
22302230 
2231 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.
2231 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
22322232 
22332233#### Example
22342234 
from line 2453
24532453 
24542454- `sandbox_egress_restricted` (HTTP status 403)
24552455 
2456 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.
2456 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
24572457 
24582458#### Example
24592459 
from line 2583
25832583 
25842584- `sandbox_egress_restricted` (HTTP status 403)
25852585 
2586 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.
2586 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
25872587 
25882588#### Example
25892589 
from line 2763
27632763 
27642764- `sandbox_egress_restricted` (HTTP status 403)
27652765 
2766 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.
2766 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
27672767 
27682768#### Example
27692769 

api/organization/federation/issuers Changed · +3 / -3 lines

from line 252
252252 
253253- `sandbox_egress_restricted` (HTTP status 403)
254254 
255 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.
255 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
256256 
257257### Example
258258 
from line 967
967967 
968968- `sandbox_egress_restricted` (HTTP status 403)
969969 
970 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.
970 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
971971 
972972### Example
973973 
from line 1183
11831183 
11841184- `sandbox_egress_restricted` (HTTP status 403)
11851185 
1186 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.
1186 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
11871187 
11881188### Example
11891189 

api/organization/federation/rules Changed · +5 / -5 lines

from line 258
258258 
259259- `sandbox_egress_restricted` (HTTP status 403)
260260 
261 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.
261 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
262262 
263263### Example
264264 
from line 1005
10051005 
10061006- `sandbox_egress_restricted` (HTTP status 403)
10071007 
1008 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.
1008 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
10091009 
10101010### Example
10111011 
from line 1230
12301230 
12311231- `sandbox_egress_restricted` (HTTP status 403)
12321232 
1233 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.
1233 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
12341234 
12351235### Example
12361236 
from line 1573
15731573 
15741574- `sandbox_egress_restricted` (HTTP status 403)
15751575 
1576 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.
1576 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
15771577 
15781578#### Example
15791579 
from line 1753
17531753 
17541754- `sandbox_egress_restricted` (HTTP status 403)
17551755 
1756 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.
1756 The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
17571757 
17581758#### Example
17591759 

api/organization/rate_limits Changed · +3 / -3 lines

from line 163
163163 
164164 - `type: string`
165165 
166 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
166 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute_cache_aware`).
167167 
168168 - `value: number`
169169 
from line 315
315315 
316316 - `type: string`
317317 
318 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
318 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute_cache_aware`).
319319 
320320 - `value: number`
321321 
from line 405
405405 
406406 - `type: string`
407407 
408 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
408 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute_cache_aware`).
409409 
410410 - `value: number`
411411 
Feedback