Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · api

One read of Claude Developer Platformapi-20260825T033708Z

377 pages moved out of 612 read.

Pages moved 377 significant first
Pages read 612 in this capture
Captured 03:37 UTC
Corpus hash 7d98cae5bb87 corpus-hash

What this read moved

276-300 of 377, page 12 of 16

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

api/beta/vaults/credentials/update Changed · +54 / -65 lines

# Update Credential ## Path parameters ## Headers ## Body parameters ## Returns ## Example ### Response (200) ## Update Credential ### Path Parameters ### Header Parameters ### Body Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Update Credential
3url: https://platform.claude.com/docs/en/api/beta/vaults/credentials/update
4---
1# Update Credential
52 
6## Update Credential
3**POST** `/v1/vaults/{vault_id}/credentials/{credential_id}`
74 
8**post** `/v1/vaults/{vault_id}/credentials/{credential_id}`
9 
105Update Credential
116 
12### Path Parameters
7## Path parameters
138 
149- `vault_id: string`
1510 
1611- `credential_id: string`
1712 
18### Header Parameters
13## Headers
1914 
2015- `"anthropic-beta": optional array of AnthropicBeta`
2116 
from line 88
9388 
9489 - `"mid-conversation-tool-changes-2026-07-01"`
9590 
96### Body Parameters
91## Body parameters
9792 
9893- `auth: optional BetaManagedAgentsMCPOAuthUpdateParams or BetaManagedAgentsStaticBearerUpdateParams or BetaManagedAgentsEnvironmentVariableUpdateParams`
9994 
10095 Updated authentication details for a credential.
10196 
102 - `BetaManagedAgentsMCPOAuthUpdateParams object { type, access_token, expires_at, refresh }`
97 - `BetaManagedAgentsMCPOAuthUpdateParams object`
10398 
10499 Parameters for updating an MCP OAuth credential. The `mcp_server_url` is immutable.
105100 
106101 - `type: "mcp_oauth"`
107102 
108 - `"mcp_oauth"`
109 
110103 - `access_token: optional string or null`
111104 
112105 Updated OAuth access token.
113106 
107 minLength: 1, maxLength: 8192
108 
114109 - `expires_at: optional string or null`
115110 
116111 A timestamp in RFC 3339 format
117112 
113 format: date-time
114 
118115 - `refresh: optional BetaManagedAgentsMCPOAuthRefreshUpdateParams or null`
119116 
120117 Parameters for updating OAuth refresh token configuration.
from line 120
123120 
124121 Updated OAuth refresh token.
125122 
123 minLength: 1, maxLength: 4096
124 
126125 - `scope: optional string or null`
127126 
128127 Updated OAuth scope for the refresh request.
129128 
129 maxLength: 8192
130 
130131 - `token_endpoint_auth: optional BetaManagedAgentsTokenEndpointAuthBasicUpdateParam or BetaManagedAgentsTokenEndpointAuthPostUpdateParam`
131132 
132133 Updated HTTP Basic authentication parameters for the token endpoint.
133134 
134 - `BetaManagedAgentsTokenEndpointAuthBasicUpdateParam object { type, client_secret }`
135 - `BetaManagedAgentsTokenEndpointAuthBasicUpdateParam object`
135136 
136137 Updated HTTP Basic authentication parameters for the token endpoint.
137138 
138139 - `type: "client_secret_basic"`
139140 
140 - `"client_secret_basic"`
141 
142141 - `client_secret: optional string or null`
143142 
144143 Updated OAuth client secret.
145144 
146 - `BetaManagedAgentsTokenEndpointAuthPostUpdateParam object { type, client_secret }`
145 minLength: 1, maxLength: 512
147146 
147 - `BetaManagedAgentsTokenEndpointAuthPostUpdateParam object`
148 
148149 Updated POST body authentication parameters for the token endpoint.
149150 
150151 - `type: "client_secret_post"`
151152 
152 - `"client_secret_post"`
153 
154153 - `client_secret: optional string or null`
155154 
156155 Updated OAuth client secret.
157156 
158 - `BetaManagedAgentsStaticBearerUpdateParams object { type, token }`
157 minLength: 1, maxLength: 512
159158 
159 - `BetaManagedAgentsStaticBearerUpdateParams object`
160 
160161 Parameters for updating a static bearer token credential. The `mcp_server_url` is immutable.
161162 
162163 - `type: "static_bearer"`
163164 
164 - `"static_bearer"`
165 
166165 - `token: optional string or null`
167166 
168167 Updated static bearer token value.
169168 
170 - `BetaManagedAgentsEnvironmentVariableUpdateParams object { type, injection_location, networking, secret_value }`
169 minLength: 1, maxLength: 8192
171170 
171 - `BetaManagedAgentsEnvironmentVariableUpdateParams object`
172 
172173 Parameters for updating an environment variable credential. `secret_name` is immutable.
173174 
174175 - `type: "environment_variable"`
175176 
176 - `"environment_variable"`
177 
178177 - `injection_location: optional BetaManagedAgentsInjectionLocationUpdateParams`
179178 
180179 Updated injection location.
from line 190
191190 
192191 Updated networking scope. Full replacement.
193192 
194 - `BetaManagedAgentsUnrestrictedCredentialNetworkingParams object { type }`
193 - `BetaManagedAgentsUnrestrictedCredentialNetworkingParams object`
195194 
196195 Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
197196 
198197 - `type: "unrestricted"`
199198 
200 - `"unrestricted"`
199 - `BetaManagedAgentsLimitedCredentialNetworkingParams object`
201200 
202 - `BetaManagedAgentsLimitedCredentialNetworkingParams object { allowed_hosts, type }`
203 
204201 Substitute the secret only on requests to the listed hosts.
205202 
206203 - `allowed_hosts: array of string`
from line 206
209206 
210207 - `type: "limited"`
211208 
212 - `"limited"`
213 
214209 - `secret_value: optional string or null`
215210 
216211 Updated secret value.
217212 
213 minLength: 1, maxLength: 4096
214 
218215- `display_name: optional string or null`
219216 
220217 Updated human-readable name for the credential. 1-255 characters.
221218 
219 minLength: 1, maxLength: 255
220 
222221- `metadata: optional map[string] or null`
223222 
224223 Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omitted keys are preserved.
225224 
226### Returns
225## Returns
227226 
228- `BetaManagedAgentsCredential object { id, archived_at, auth, 6 more }`
227- `BetaManagedAgentsCredential object`
229228 
230229 A credential stored in a vault. Sensitive fields are never returned in responses.
231230 
from line 236
237236 
238237 A timestamp in RFC 3339 format
239238 
239 format: date-time
240 
240241 - `auth: BetaManagedAgentsMCPOAuthAuthResponse or BetaManagedAgentsStaticBearerAuthResponse or BetaManagedAgentsEnvironmentVariableAuthResponse`
241242 
242243 Authentication details for a credential.
243244 
244 - `BetaManagedAgentsMCPOAuthAuthResponse object { mcp_server_url, type, expires_at, refresh }`
245 - `BetaManagedAgentsMCPOAuthAuthResponse object`
245246 
246247 OAuth credential details for an MCP server.
247248 
from line 252
251252 
252253 - `type: "mcp_oauth"`
253254 
254 - `"mcp_oauth"`
255 
256255 - `expires_at: optional string or null`
257256 
258257 A timestamp in RFC 3339 format
259258 
259 format: date-time
260 
260261 - `refresh: optional BetaManagedAgentsMCPOAuthRefreshResponse or null`
261262 
262263 OAuth refresh token configuration returned in credential responses.
from line 274
273274 
274275 Token endpoint requires no client authentication.
275276 
276 - `BetaManagedAgentsTokenEndpointAuthNoneResponse object { type }`
277 - `BetaManagedAgentsTokenEndpointAuthNoneResponse object`
277278 
278279 Token endpoint requires no client authentication.
279280 
280281 - `type: "none"`
281282 
282 - `"none"`
283 - `BetaManagedAgentsTokenEndpointAuthBasicResponse object`
283284 
284 - `BetaManagedAgentsTokenEndpointAuthBasicResponse object { type }`
285 
286285 Token endpoint uses HTTP Basic authentication with client credentials.
287286 
288287 - `type: "client_secret_basic"`
289288 
290 - `"client_secret_basic"`
289 - `BetaManagedAgentsTokenEndpointAuthPostResponse object`
291290 
292 - `BetaManagedAgentsTokenEndpointAuthPostResponse object { type }`
293 
294291 Token endpoint uses POST body authentication with client credentials.
295292 
296293 - `type: "client_secret_post"`
297294 
298 - `"client_secret_post"`
299 
300295 - `resource: optional string or null`
301296 
302297 OAuth resource indicator.
from line 300
305300 
306301 OAuth scope for the refresh request.
307302 
308 - `BetaManagedAgentsStaticBearerAuthResponse object { mcp_server_url, type }`
303 - `BetaManagedAgentsStaticBearerAuthResponse object`
309304 
310305 Static bearer token credential details for an MCP server.
311306 
from line 310
315310 
316311 - `type: "static_bearer"`
317312 
318 - `"static_bearer"`
313 - `BetaManagedAgentsEnvironmentVariableAuthResponse object`
319314 
320 - `BetaManagedAgentsEnvironmentVariableAuthResponse object { injection_location, networking, secret_name, type }`
321 
322315 Environment variable credential details. The secret value is never returned.
323316 
324317 - `injection_location: BetaManagedAgentsInjectionLocationResponse`
from line 330
337330 
338331 Outbound hosts the secret value is substituted on.
339332 
340 - `BetaManagedAgentsUnrestrictedCredentialNetworkingResponse object { type }`
333 - `BetaManagedAgentsUnrestrictedCredentialNetworkingResponse object`
341334 
342335 The secret is substituted on any host the session's Environment network policy permits egress to.
343336 
344337 - `type: "unrestricted"`
345338 
346 - `"unrestricted"`
339 - `BetaManagedAgentsLimitedCredentialNetworkingResponse object`
347340 
348 - `BetaManagedAgentsLimitedCredentialNetworkingResponse object { allowed_hosts, type }`
349 
350341 The secret is substituted only on requests to the listed hosts.
351342 
352343 - `allowed_hosts: array of string`
from line 346
355346 
356347 - `type: "limited"`
357348 
358 - `"limited"`
359 
360349 - `secret_name: string`
361350 
362351 Name of the environment variable.
from line 352
363352 
364353 - `type: "environment_variable"`
365354 
366 - `"environment_variable"`
367 
368355 - `created_at: string`
369356 
370357 A timestamp in RFC 3339 format
371358 
359 format: date-time
360 
372361 - `metadata: map[string]`
373362 
374363 Arbitrary key-value metadata attached to the credential.
from line 364
375364 
376365 - `type: "vault_credential"`
377366 
378 - `"vault_credential"`
379 
380367 - `updated_at: string`
381368 
382369 A timestamp in RFC 3339 format
383370 
371 format: date-time
372 
384373 - `vault_id: string`
385374 
386375 Identifier of the vault this credential belongs to.
from line 378
389378 
390379 Human-readable name for the credential.
391380 
392### Example
381## Example
393382 
394```http
383```bash
395384curl https://api.anthropic.com/v1/vaults/$VAULT_ID/credentials/$CREDENTIAL_ID \
396385 -H 'Content-Type: application/json' \
397386 -H 'anthropic-version: 2023-06-01' \
from line 394
405394 }'
406395```
407396 
408#### Response
397### Response (200)
409398 
410399```json
411400{

api/beta/vaults/delete Changed · +9 / -16 lines

# Delete Vault ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete Vault ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Delete Vault
3url: https://platform.claude.com/docs/en/api/beta/vaults/delete
4---
1# Delete Vault
52 
6## Delete Vault
3**DELETE** `/v1/vaults/{vault_id}`
74 
8**delete** `/v1/vaults/{vault_id}`
9 
105Delete Vault
116 
12### Path Parameters
7## Path parameters
138 
149- `vault_id: string`
1510 
16### Header Parameters
11## Headers
1712 
1813- `"anthropic-beta": optional array of AnthropicBeta`
1914 
from line 86
9186 
9287 - `"mid-conversation-tool-changes-2026-07-01"`
9388 
94### Returns
89## Returns
9590 
96- `BetaManagedAgentsDeletedVault object { id, type }`
91- `BetaManagedAgentsDeletedVault object`
9792 
9893 Confirmation of a deleted vault.
9994 
from line 98
10398 
10499 - `type: "vault_deleted"`
105100 
106 - `"vault_deleted"`
101## Example
107102 
108### Example
109 
110```http
103```bash
111104curl https://api.anthropic.com/v1/vaults/$VAULT_ID \
112105 -X DELETE \
113106 -H 'anthropic-version: 2023-06-01' \
from line 108
115108 -H "X-Api-Key: $ANTHROPIC_API_KEY"
116109```
117110 
118#### Response
111### Response (200)
119112 
120113```json
121114{

api/beta/vaults/list Changed · +16 / -15 lines

# List Vaults ## Query parameters ## Headers ## Returns ## Example ### Response (200) ## List Vaults ### Query Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: List Vaults
3url: https://platform.claude.com/docs/en/api/beta/vaults/list
4---
1# List Vaults
52 
6## List Vaults
3**GET** `/v1/vaults`
74 
8**get** `/v1/vaults`
9 
105List Vaults
116 
12### Query Parameters
7## Query parameters
138 
149- `include_archived: optional boolean`
1510 
from line 14
1914 
2015 Maximum number of vaults to return per page. Defaults to 20, maximum 100.
2116 
17 format: int32
18 
2219- `page: optional string`
2320 
2421 Opaque pagination token from a previous `list_vaults` response.
2522 
26### Header Parameters
23## Headers
2724 
2825- `"anthropic-beta": optional array of AnthropicBeta`
2926 
from line 98
10198 
10299 - `"mid-conversation-tool-changes-2026-07-01"`
103100 
104### Returns
101## Returns
105102 
106103- `data: optional array of BetaManagedAgentsVault`
107104 
from line 112
115112 
116113 A timestamp in RFC 3339 format
117114 
115 format: date-time
116 
118117 - `created_at: string`
119118 
120119 A timestamp in RFC 3339 format
121120 
121 format: date-time
122 
122123 - `display_name: string`
123124 
124125 Human-readable name for the vault.
from line 130
129130 
130131 - `type: "vault"`
131132 
132 - `"vault"`
133 
134133 - `updated_at: string`
135134 
136135 A timestamp in RFC 3339 format
137136 
137 format: date-time
138 
138139- `next_page: optional string or null`
139140 
140141 Pagination token for the next page, or null if no more results.
141142 
142### Example
143## Example
143144 
144```http
145```bash
145146curl https://api.anthropic.com/v1/vaults \
146147 -H 'anthropic-version: 2023-06-01' \
147148 -H 'anthropic-beta: managed-agents-2026-04-01' \
from line 149
148149 -H "X-Api-Key: $ANTHROPIC_API_KEY"
149150```
150151 
151#### Response
152### Response (200)
152153 
153154```json
154155{

api/beta/vaults/retrieve Changed · +15 / -16 lines

# Get Vault ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get Vault ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Get Vault
3url: https://platform.claude.com/docs/en/api/beta/vaults/retrieve
4---
1# Get Vault
52 
6## Get Vault
3**GET** `/v1/vaults/{vault_id}`
74 
8**get** `/v1/vaults/{vault_id}`
9 
105Get Vault
116 
12### Path Parameters
7## Path parameters
138 
149- `vault_id: string`
1510 
16### Header Parameters
11## Headers
1712 
1813- `"anthropic-beta": optional array of AnthropicBeta`
1914 
from line 86
9186 
9287 - `"mid-conversation-tool-changes-2026-07-01"`
9388 
94### Returns
89## Returns
9590 
96- `BetaManagedAgentsVault object { id, archived_at, created_at, 4 more }`
91- `BetaManagedAgentsVault object`
9792 
9893 A vault that stores credentials for use by agents during sessions.
9994 
from line 100
105100 
106101 A timestamp in RFC 3339 format
107102 
103 format: date-time
104 
108105 - `created_at: string`
109106 
110107 A timestamp in RFC 3339 format
111108 
109 format: date-time
110 
112111 - `display_name: string`
113112 
114113 Human-readable name for the vault.
from line 118
119118 
120119 - `type: "vault"`
121120 
122 - `"vault"`
123 
124121 - `updated_at: string`
125122 
126123 A timestamp in RFC 3339 format
127124 
128### Example
125 format: date-time
129126 
130```http
127## Example
128 
129```bash
131130curl https://api.anthropic.com/v1/vaults/$VAULT_ID \
132131 -H 'anthropic-version: 2023-06-01' \
133132 -H 'anthropic-beta: managed-agents-2026-04-01' \
from line 133
134133 -H "X-Api-Key: $ANTHROPIC_API_KEY"
135134```
136135 
137#### Response
136### Response (200)
138137 
139138```json
140139{

api/beta/vaults/update Changed · +18 / -17 lines

# Update Vault ## Path parameters ## Headers ## Body parameters ## Returns ## Example ### Response (200) ## Update Vault ### Path Parameters ### Header Parameters ### Body Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Update Vault
3url: https://platform.claude.com/docs/en/api/beta/vaults/update
4---
1# Update Vault
52 
6## Update Vault
3**POST** `/v1/vaults/{vault_id}`
74 
8**post** `/v1/vaults/{vault_id}`
9 
105Update Vault
116 
12### Path Parameters
7## Path parameters
138 
149- `vault_id: string`
1510 
16### Header Parameters
11## Headers
1712 
1813- `"anthropic-beta": optional array of AnthropicBeta`
1914 
from line 86
9186 
9287 - `"mid-conversation-tool-changes-2026-07-01"`
9388 
94### Body Parameters
89## Body parameters
9590 
9691- `display_name: optional string or null`
9792 
9893 Updated human-readable name for the vault. 1-255 characters.
9994 
95 minLength: 1, maxLength: 255
96 
10097- `metadata: optional map[string] or null`
10198 
10299 Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omitted keys are preserved.
103100 
104### Returns
101## Returns
105102 
106- `BetaManagedAgentsVault object { id, archived_at, created_at, 4 more }`
103- `BetaManagedAgentsVault object`
107104 
108105 A vault that stores credentials for use by agents during sessions.
109106 
from line 112
115112 
116113 A timestamp in RFC 3339 format
117114 
115 format: date-time
116 
118117 - `created_at: string`
119118 
120119 A timestamp in RFC 3339 format
121120 
121 format: date-time
122 
122123 - `display_name: string`
123124 
124125 Human-readable name for the vault.
from line 130
129130 
130131 - `type: "vault"`
131132 
132 - `"vault"`
133 
134133 - `updated_at: string`
135134 
136135 A timestamp in RFC 3339 format
137136 
138### Example
137 format: date-time
139138 
140```http
139## Example
140 
141```bash
141142curl https://api.anthropic.com/v1/vaults/$VAULT_ID \
142143 -H 'Content-Type: application/json' \
143144 -H 'anthropic-version: 2023-06-01' \
from line 152
151152 }'
152153```
153154 
154#### Response
155### Response (200)
155156 
156157```json
157158{

api/beta/webhooks Changed · +419 / -774 lines

## Unwrap ## Domain types ## Domain Types

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 1
1---
2title: Webhooks
3url: https://platform.claude.com/docs/en/api/beta/webhooks
4---
5 
61# Webhooks
72 
8## Domain Types
3## Unwrap
4 
5## Domain types
96 
107### Beta Webhook Agent Archived Event Data
118 
12- `BetaWebhookAgentArchivedEventData object { id, organization_id, type, workspace_id }`
9- `BetaWebhookAgentArchivedEventData object`
1310 
1411 - `id: string`
1512 
from line 16
1916 
2017 - `type: "agent.archived"`
2118 
22 - `"agent.archived"`
23 
2419 - `workspace_id: string`
2520 
2621### Beta Webhook Agent Created Event Data
2722 
28- `BetaWebhookAgentCreatedEventData object { id, organization_id, type, workspace_id }`
23- `BetaWebhookAgentCreatedEventData object`
2924 
3025 - `id: string`
3126 
from line 30
3530 
3631 - `type: "agent.created"`
3732 
38 - `"agent.created"`
39 
4033 - `workspace_id: string`
4134 
4235### Beta Webhook Agent Deleted Event Data
4336 
44- `BetaWebhookAgentDeletedEventData object { id, organization_id, type, workspace_id }`
37- `BetaWebhookAgentDeletedEventData object`
4538 
4639 - `id: string`
4740 
from line 44
5144 
5245 - `type: "agent.deleted"`
5346 
54 - `"agent.deleted"`
55 
5647 - `workspace_id: string`
5748 
5849### Beta Webhook Agent Updated Event Data
5950 
60- `BetaWebhookAgentUpdatedEventData object { id, organization_id, type, workspace_id }`
51- `BetaWebhookAgentUpdatedEventData object`
6152 
6253 - `id: string`
6354 
from line 58
6758 
6859 - `type: "agent.updated"`
6960 
70 - `"agent.updated"`
71 
7261 - `workspace_id: string`
7362 
7463### Beta Webhook Deployment Archived Event Data
7564 
76- `BetaWebhookDeploymentArchivedEventData object { id, organization_id, type, workspace_id }`
65- `BetaWebhookDeploymentArchivedEventData object`
7766 
7867 - `id: string`
7968 
from line 72
8372 
8473 - `type: "deployment.archived"`
8574 
86 - `"deployment.archived"`
87 
8875 - `workspace_id: string`
8976 
9077### Beta Webhook Deployment Created Event Data
9178 
92- `BetaWebhookDeploymentCreatedEventData object { id, organization_id, type, workspace_id }`
79- `BetaWebhookDeploymentCreatedEventData object`
9380 
9481 - `id: string`
9582 
from line 86
9986 
10087 - `type: "deployment.created"`
10188 
102 - `"deployment.created"`
103 
10489 - `workspace_id: string`
10590 
10691### Beta Webhook Deployment Deleted Event Data
10792 
108- `BetaWebhookDeploymentDeletedEventData object { id, organization_id, type, workspace_id }`
93- `BetaWebhookDeploymentDeletedEventData object`
10994 
11095 - `id: string`
11196 
from line 100
115100 
116101 - `type: "deployment.deleted"`
117102 
118 - `"deployment.deleted"`
119 
120103 - `workspace_id: string`
121104 
122105### Beta Webhook Deployment Paused Event Data
123106 
124- `BetaWebhookDeploymentPausedEventData object { id, organization_id, type, workspace_id }`
107- `BetaWebhookDeploymentPausedEventData object`
125108 
126109 - `id: string`
127110 
from line 114
131114 
132115 - `type: "deployment.paused"`
133116 
134 - `"deployment.paused"`
135 
136117 - `workspace_id: string`
137118 
138119### Beta Webhook Deployment Run Failed Event Data
139120 
140- `BetaWebhookDeploymentRunFailedEventData object { id, organization_id, type, workspace_id }`
121- `BetaWebhookDeploymentRunFailedEventData object`
141122 
142123 - `id: string`
143124 
from line 128
147128 
148129 - `type: "deployment_run.failed"`
149130 
150 - `"deployment_run.failed"`
151 
152131 - `workspace_id: string`
153132 
154133### Beta Webhook Deployment Run Started Event Data
155134 
156- `BetaWebhookDeploymentRunStartedEventData object { id, organization_id, type, workspace_id }`
135- `BetaWebhookDeploymentRunStartedEventData object`
157136 
158137 - `id: string`
159138 
from line 142
163142 
164143 - `type: "deployment_run.started"`
165144 
166 - `"deployment_run.started"`
167 
168145 - `workspace_id: string`
169146 
170147### Beta Webhook Deployment Run Succeeded Event Data
171148 
172- `BetaWebhookDeploymentRunSucceededEventData object { id, organization_id, type, workspace_id }`
149- `BetaWebhookDeploymentRunSucceededEventData object`
173150 
174151 - `id: string`
175152 
from line 156
179156 
180157 - `type: "deployment_run.succeeded"`
181158 
182 - `"deployment_run.succeeded"`
183 
184159 - `workspace_id: string`
185160 
186161### Beta Webhook Deployment Unpaused Event Data
187162 
188- `BetaWebhookDeploymentUnpausedEventData object { id, organization_id, type, workspace_id }`
163- `BetaWebhookDeploymentUnpausedEventData object`
189164 
190165 - `id: string`
191166 
from line 170
195170 
196171 - `type: "deployment.unpaused"`
197172 
198 - `"deployment.unpaused"`
199 
200173 - `workspace_id: string`
201174 
202175### Beta Webhook Deployment Updated Event Data
203176 
204- `BetaWebhookDeploymentUpdatedEventData object { id, organization_id, type, workspace_id }`
177- `BetaWebhookDeploymentUpdatedEventData object`
205178 
206179 - `id: string`
207180 
from line 184
211184 
212185 - `type: "deployment.updated"`
213186 
214 - `"deployment.updated"`
215 
216187 - `workspace_id: string`
217188 
218189### Beta Webhook Environment Archived Event Data
219190 
220- `BetaWebhookEnvironmentArchivedEventData object { id, organization_id, type, workspace_id }`
191- `BetaWebhookEnvironmentArchivedEventData object`
221192 
222193 - `id: string`
223194 
from line 198
227198 
228199 - `type: "environment.archived"`
229200 
230 - `"environment.archived"`
231 
232201 - `workspace_id: string`
233202 
234203### Beta Webhook Environment Created Event Data
235204 
236- `BetaWebhookEnvironmentCreatedEventData object { id, organization_id, type, workspace_id }`
205- `BetaWebhookEnvironmentCreatedEventData object`
237206 
238207 - `id: string`
239208 
from line 212
243212 
244213 - `type: "environment.created"`
245214 
246 - `"environment.created"`
247 
248215 - `workspace_id: string`
249216 
250217### Beta Webhook Environment Deleted Event Data
251218 
252- `BetaWebhookEnvironmentDeletedEventData object { id, organization_id, type, workspace_id }`
219- `BetaWebhookEnvironmentDeletedEventData object`
253220 
254221 - `id: string`
255222 
from line 226
259226 
260227 - `type: "environment.deleted"`
261228 
262 - `"environment.deleted"`
263 
264229 - `workspace_id: string`
265230 
266231### Beta Webhook Environment Updated Event Data
267232 
268- `BetaWebhookEnvironmentUpdatedEventData object { id, organization_id, type, workspace_id }`
233- `BetaWebhookEnvironmentUpdatedEventData object`
269234 
270235 - `id: string`
271236 
from line 240
275240 
276241 - `type: "environment.updated"`
277242 
278 - `"environment.updated"`
279 
280243 - `workspace_id: string`
281244 
282245### Beta Webhook Event
283246 
284- `BetaWebhookEvent object { id, created_at, data, type }`
247- `BetaWebhookEvent object`
285248 
286249 - `id: string`
287250 
from line 254
291254 
292255 RFC 3339 timestamp when the event occurred.
293256 
257 format: date-time
258 
294259 - `data: BetaWebhookEventData`
295260 
296 - `BetaWebhookSessionCreatedEventData object { id, organization_id, type, workspace_id }`
261 - `BetaWebhookSessionCreatedEventData object`
297262 
298263 - `id: string`
299264 
from line 268
303268 
304269 - `type: "session.created"`
305270 
306 - `"session.created"`
307 
308 - `workspace_id: string`
309 
310 - `BetaWebhookSessionPendingEventData object { id, organization_id, type, workspace_id }`
271 - `workspace_id: string`
272 
273 - `BetaWebhookSessionPendingEventData object`
311274 
312275 - `id: string`
313276 
from line 280
317280 
318281 - `type: "session.pending"`
319282 
320 - `"session.pending"`
321 
322 - `workspace_id: string`
323 
324 - `BetaWebhookSessionRunningEventData object { id, organization_id, type, workspace_id }`
283 - `workspace_id: string`
284 
285 - `BetaWebhookSessionRunningEventData object`
325286 
326287 - `id: string`
327288 
from line 292
331292 
332293 - `type: "session.running"`
333294 
334 - `"session.running"`
335 
336 - `workspace_id: string`
337 
338 - `BetaWebhookSessionIdledEventData object { id, organization_id, type, workspace_id }`
295 - `workspace_id: string`
296 
297 - `BetaWebhookSessionIdledEventData object`
339298 
340299 - `id: string`
341300 
from line 304
345304 
346305 - `type: "session.idled"`
347306 
348 - `"session.idled"`
349 
350 - `workspace_id: string`
351 
352 - `BetaWebhookSessionRequiresActionEventData object { id, organization_id, type, workspace_id }`
307 - `workspace_id: string`
308 
309 - `BetaWebhookSessionRequiresActionEventData object`
353310 
354311 - `id: string`
355312 
from line 316
359316 
360317 - `type: "session.requires_action"`
361318 
362 - `"session.requires_action"`
363 
364 - `workspace_id: string`
365 
366 - `BetaWebhookSessionArchivedEventData object { id, organization_id, type, workspace_id }`
319 - `workspace_id: string`
320 
321 - `BetaWebhookSessionArchivedEventData object`
367322 
368323 - `id: string`
369324 
from line 328
373328 
374329 - `type: "session.archived"`
375330 
376 - `"session.archived"`
377 
378 - `workspace_id: string`
379 
380 - `BetaWebhookSessionDeletedEventData object { id, organization_id, type, workspace_id }`
331 - `workspace_id: string`
332 
333 - `BetaWebhookSessionDeletedEventData object`
381334 
382335 - `id: string`
383336 
from line 340
387340 
388341 - `type: "session.deleted"`
389342 
390 - `"session.deleted"`
391 
392 - `workspace_id: string`
393 
394 - `BetaWebhookSessionStatusRescheduledEventData object { id, organization_id, type, workspace_id }`
343 - `workspace_id: string`
344 
345 - `BetaWebhookSessionStatusRescheduledEventData object`
395346 
396347 - `id: string`
397348 
from line 352
401352 
402353 - `type: "session.status_rescheduled"`
403354 
404 - `"session.status_rescheduled"`
405 
406 - `workspace_id: string`
407 
408 - `BetaWebhookSessionStatusRunStartedEventData object { id, organization_id, type, workspace_id }`
355 - `workspace_id: string`
356 
357 - `BetaWebhookSessionStatusRunStartedEventData object`
409358 
410359 - `id: string`
411360 
from line 364
415364 
416365 - `type: "session.status_run_started"`
417366 
418 - `"session.status_run_started"`
419 
420 - `workspace_id: string`
421 
422 - `BetaWebhookSessionStatusIdledEventData object { id, organization_id, type, workspace_id }`
367 - `workspace_id: string`
368 
369 - `BetaWebhookSessionStatusIdledEventData object`
423370 
424371 - `id: string`
425372 
from line 376
429376 
430377 - `type: "session.status_idled"`
431378 
432 - `"session.status_idled"`
433 
434 - `workspace_id: string`
435 
436 - `BetaWebhookSessionStatusTerminatedEventData object { id, organization_id, type, workspace_id }`
379 - `workspace_id: string`
380 
381 - `BetaWebhookSessionStatusTerminatedEventData object`
437382 
438383 - `id: string`
439384 
from line 388
443388 
444389 - `type: "session.status_terminated"`
445390 
446 - `"session.status_terminated"`
447 
448 - `workspace_id: string`
449 
450 - `BetaWebhookSessionThreadCreatedEventData object { id, organization_id, session_thread_id, 2 more }`
391 - `workspace_id: string`
392 
393 - `BetaWebhookSessionThreadCreatedEventData object`
451394 
452395 - `id: string`
453396 
from line 404
461404 
462405 - `type: "session.thread_created"`
463406 
464 - `"session.thread_created"`
465 
466 - `workspace_id: string`
467 
468 - `BetaWebhookSessionThreadIdledEventData object { id, organization_id, session_thread_id, 2 more }`
407 - `workspace_id: string`
408 
409 - `BetaWebhookSessionThreadIdledEventData object`
469410 
470411 - `id: string`
471412 
from line 420
479420 
480421 - `type: "session.thread_idled"`
481422 
482 - `"session.thread_idled"`
483 
484 - `workspace_id: string`
485 
486 - `BetaWebhookSessionThreadTerminatedEventData object { id, organization_id, session_thread_id, 2 more }`
423 - `workspace_id: string`
424 
425 - `BetaWebhookSessionThreadTerminatedEventData object`
487426 
488427 - `id: string`
489428 
from line 436
497436 
498437 - `type: "session.thread_terminated"`
499438 
500 - `"session.thread_terminated"`
501 
502 - `workspace_id: string`
503 
504 - `BetaWebhookSessionOutcomeEvaluationEndedEventData object { id, organization_id, type, workspace_id }`
439 - `workspace_id: string`
440 
441 - `BetaWebhookSessionOutcomeEvaluationEndedEventData object`
505442 
506443 - `id: string`
507444 
from line 448
511448 
512449 - `type: "session.outcome_evaluation_ended"`
513450 
514 - `"session.outcome_evaluation_ended"`
515 
516 - `workspace_id: string`
517 
518 - `BetaWebhookVaultCreatedEventData object { id, organization_id, type, workspace_id }`
451 - `workspace_id: string`
452 
453 - `BetaWebhookVaultCreatedEventData object`
519454 
520455 - `id: string`
521456 
from line 460
525460 
526461 - `type: "vault.created"`
527462 
528 - `"vault.created"`
529 
530 - `workspace_id: string`
531 
532 - `BetaWebhookVaultArchivedEventData object { id, organization_id, type, workspace_id }`
463 - `workspace_id: string`
464 
465 - `BetaWebhookVaultArchivedEventData object`
533466 
534467 - `id: string`
535468 
from line 472
539472 
540473 - `type: "vault.archived"`
541474 
542 - `"vault.archived"`
543 
544 - `workspace_id: string`
545 
546 - `BetaWebhookVaultDeletedEventData object { id, organization_id, type, workspace_id }`
475 - `workspace_id: string`
476 
477 - `BetaWebhookVaultDeletedEventData object`
547478 
548479 - `id: string`
549480 
from line 484
553484 
554485 - `type: "vault.deleted"`
555486 
556 - `"vault.deleted"`
557 
558 - `workspace_id: string`
559 
560 - `BetaWebhookVaultCredentialCreatedEventData object { id, organization_id, type, 2 more }`
487 - `workspace_id: string`
488 
489 - `BetaWebhookVaultCredentialCreatedEventData object`
561490 
562491 - `id: string`
563492 
from line 496
567496 
568497 - `type: "vault_credential.created"`
569498 
570 - `"vault_credential.created"`
571 
572499 - `vault_id: string`
573500 
574501 ID of the vault that owns this credential.
575502 
576503 - `workspace_id: string`
577504 
578 - `BetaWebhookVaultCredentialArchivedEventData object { id, organization_id, type, 2 more }`
505 - `BetaWebhookVaultCredentialArchivedEventData object`
579506 
580507 - `id: string`
581508 
from line 512
585512 
586513 - `type: "vault_credential.archived"`
587514 
588 - `"vault_credential.archived"`
589 
590515 - `vault_id: string`
591516 
592517 ID of the vault that owns this credential.
593518 
594519 - `workspace_id: string`
595520 
596 - `BetaWebhookVaultCredentialDeletedEventData object { id, organization_id, type, 2 more }`
521 - `BetaWebhookVaultCredentialDeletedEventData object`
597522 
598523 - `id: string`
599524 
from line 528
603528 
604529 - `type: "vault_credential.deleted"`
605530 
606 - `"vault_credential.deleted"`
607 
608531 - `vault_id: string`
609532 
610533 ID of the vault that owns this credential.
611534 
612535 - `workspace_id: string`
613536 
614 - `BetaWebhookVaultCredentialRefreshFailedEventData object { id, organization_id, type, 2 more }`
537 - `BetaWebhookVaultCredentialRefreshFailedEventData object`
615538 
616539 - `id: string`
617540 
from line 544
621544 
622545 - `type: "vault_credential.refresh_failed"`
623546 
624 - `"vault_credential.refresh_failed"`
625 
626547 - `vault_id: string`
627548 
628549 ID of the vault that owns this credential.
629550 
630551 - `workspace_id: string`
631552 
632 - `BetaWebhookSessionUpdatedEventData object { id, organization_id, type, workspace_id }`
553 - `BetaWebhookSessionUpdatedEventData object`
633554 
634555 - `id: string`
635556 
from line 560
639560 
640561 - `type: "session.updated"`
641562 
642 - `"session.updated"`
643 
644 - `workspace_id: string`
645 
646 - `BetaWebhookAgentCreatedEventData object { id, organization_id, type, workspace_id }`
563 - `workspace_id: string`
564 
565 - `BetaWebhookAgentCreatedEventData object`
647566 
648567 - `id: string`
649568 
from line 572
653572 
654573 - `type: "agent.created"`
655574 
656 - `"agent.created"`
657 
658 - `workspace_id: string`
659 
660 - `BetaWebhookAgentArchivedEventData object { id, organization_id, type, workspace_id }`
575 - `workspace_id: string`
576 
577 - `BetaWebhookAgentArchivedEventData object`
661578 
662579 - `id: string`
663580 
from line 584
667584 
668585 - `type: "agent.archived"`
669586 
670 - `"agent.archived"`
671 
672 - `workspace_id: string`
673 
674 - `BetaWebhookAgentDeletedEventData object { id, organization_id, type, workspace_id }`
587 - `workspace_id: string`
588 
589 - `BetaWebhookAgentDeletedEventData object`
675590 
676591 - `id: string`
677592 
from line 596
681596 
682597 - `type: "agent.deleted"`
683598 
684 - `"agent.deleted"`
685 
686 - `workspace_id: string`
687 
688 - `BetaWebhookDeploymentPausedEventData object { id, organization_id, type, workspace_id }`
599 - `workspace_id: string`
600 
601 - `BetaWebhookDeploymentPausedEventData object`
689602 
690603 - `id: string`
691604 
from line 608
695608 
696609 - `type: "deployment.paused"`
697610 
698 - `"deployment.paused"`
699 
700 - `workspace_id: string`
701 
702 - `BetaWebhookDeploymentRunFailedEventData object { id, organization_id, type, workspace_id }`
611 - `workspace_id: string`
612 
613 - `BetaWebhookDeploymentRunFailedEventData object`
703614 
704615 - `id: string`
705616 
from line 620
709620 
710621 - `type: "deployment_run.failed"`
711622 
712 - `"deployment_run.failed"`
713 
714 - `workspace_id: string`
715 
716 - `BetaWebhookDeploymentCreatedEventData object { id, organization_id, type, workspace_id }`
623 - `workspace_id: string`
624 
625 - `BetaWebhookDeploymentCreatedEventData object`
717626 
718627 - `id: string`
719628 
from line 632
723632 
724633 - `type: "deployment.created"`
725634 
726 - `"deployment.created"`
727 
728 - `workspace_id: string`
729 
730 - `BetaWebhookDeploymentUpdatedEventData object { id, organization_id, type, workspace_id }`
635 - `workspace_id: string`
636 
637 - `BetaWebhookDeploymentUpdatedEventData object`
731638 
732639 - `id: string`
733640 
from line 644
737644 
738645 - `type: "deployment.updated"`
739646 
740 - `"deployment.updated"`
741 
742 - `workspace_id: string`
743 
744 - `BetaWebhookDeploymentUnpausedEventData object { id, organization_id, type, workspace_id }`
647 - `workspace_id: string`
648 
649 - `BetaWebhookDeploymentUnpausedEventData object`
745650 
746651 - `id: string`
747652 
from line 656
751656 
752657 - `type: "deployment.unpaused"`
753658 
754 - `"deployment.unpaused"`
755 
756 - `workspace_id: string`
757 
758 - `BetaWebhookAgentUpdatedEventData object { id, organization_id, type, workspace_id }`
659 - `workspace_id: string`
660 
661 - `BetaWebhookAgentUpdatedEventData object`
759662 
760663 - `id: string`
761664 
from line 668
765668 
766669 - `type: "agent.updated"`
767670 
768 - `"agent.updated"`
769 
770 - `workspace_id: string`
771 
772 - `BetaWebhookDeploymentArchivedEventData object { id, organization_id, type, workspace_id }`
671 - `workspace_id: string`
672 
673 - `BetaWebhookDeploymentArchivedEventData object`
773674 
774675 - `id: string`
775676 
from line 680
779680 
780681 - `type: "deployment.archived"`
781682 
782 - `"deployment.archived"`
783 
784 - `workspace_id: string`
785 
786 - `BetaWebhookDeploymentRunStartedEventData object { id, organization_id, type, workspace_id }`
683 - `workspace_id: string`
684 
685 - `BetaWebhookDeploymentRunStartedEventData object`
787686 
788687 - `id: string`
789688 
from line 692
793692 
794693 - `type: "deployment_run.started"`
795694 
796 - `"deployment_run.started"`
797 
798 - `workspace_id: string`
799 
800 - `BetaWebhookDeploymentDeletedEventData object { id, organization_id, type, workspace_id }`
695 - `workspace_id: string`
696 
697 - `BetaWebhookDeploymentDeletedEventData object`
801698 
802699 - `id: string`
803700 
from line 704
807704 
808705 - `type: "deployment.deleted"`
809706 
810 - `"deployment.deleted"`
811 
812 - `workspace_id: string`
813 
814 - `BetaWebhookDeploymentRunSucceededEventData object { id, organization_id, type, workspace_id }`
707 - `workspace_id: string`
708 
709 - `BetaWebhookDeploymentRunSucceededEventData object`
815710 
816711 - `id: string`
817712 
from line 716
821716 
822717 - `type: "deployment_run.succeeded"`
823718 
824 - `"deployment_run.succeeded"`
825 
826 - `workspace_id: string`
827 
828 - `BetaWebhookEnvironmentCreatedEventData object { id, organization_id, type, workspace_id }`
719 - `workspace_id: string`
720 
721 - `BetaWebhookEnvironmentCreatedEventData object`
829722 
830723 - `id: string`
831724 
from line 728
835728 
836729 - `type: "environment.created"`
837730 
838 - `"environment.created"`
839 
840 - `workspace_id: string`
841 
842 - `BetaWebhookEnvironmentUpdatedEventData object { id, organization_id, type, workspace_id }`
731 - `workspace_id: string`
732 
733 - `BetaWebhookEnvironmentUpdatedEventData object`
843734 
844735 - `id: string`
845736 
from line 740
849740 
850741 - `type: "environment.updated"`
851742 
852 - `"environment.updated"`
853 
854 - `workspace_id: string`
855 
856 - `BetaWebhookEnvironmentArchivedEventData object { id, organization_id, type, workspace_id }`
743 - `workspace_id: string`
744 
745 - `BetaWebhookEnvironmentArchivedEventData object`
857746 
858747 - `id: string`
859748 
from line 752
863752 
864753 - `type: "environment.archived"`
865754 
866 - `"environment.archived"`
867 
868 - `workspace_id: string`
869 
870 - `BetaWebhookEnvironmentDeletedEventData object { id, organization_id, type, workspace_id }`
755 - `workspace_id: string`
756 
757 - `BetaWebhookEnvironmentDeletedEventData object`
871758 
872759 - `id: string`
873760 
from line 764
877764 
878765 - `type: "environment.deleted"`
879766 
880 - `"environment.deleted"`
881 
882 - `workspace_id: string`
883 
884 - `BetaWebhookMemoryStoreCreatedEventData object { id, organization_id, type, workspace_id }`
767 - `workspace_id: string`
768 
769 - `BetaWebhookMemoryStoreCreatedEventData object`
885770 
886771 - `id: string`
887772 
from line 776
891776 
892777 - `type: "memory_store.created"`
893778 
894 - `"memory_store.created"`
895 
896 - `workspace_id: string`
897 
898 - `BetaWebhookMemoryStoreArchivedEventData object { id, organization_id, type, workspace_id }`
779 - `workspace_id: string`
780 
781 - `BetaWebhookMemoryStoreArchivedEventData object`
899782 
900783 - `id: string`
901784 
from line 788
905788 
906789 - `type: "memory_store.archived"`
907790 
908 - `"memory_store.archived"`
909 
910 - `workspace_id: string`
911 
912 - `BetaWebhookMemoryStoreDeletedEventData object { id, organization_id, type, workspace_id }`
791 - `workspace_id: string`
792 
793 - `BetaWebhookMemoryStoreDeletedEventData object`
913794 
914795 - `id: string`
915796 
from line 800
919800 
920801 - `type: "memory_store.deleted"`
921802 
922 - `"memory_store.deleted"`
923 
924 - `workspace_id: string`
925 
926 - `BetaWebhookSessionBudgetReachedEventData object { id, organization_id, type, workspace_id }`
803 - `workspace_id: string`
804 
805 - `BetaWebhookSessionBudgetReachedEventData object`
927806 
928807 - `id: string`
929808 
from line 812
933812 
934813 - `type: "session.budget_reached"`
935814 
936 - `"session.budget_reached"`
937 
938815 - `workspace_id: string`
939816 
940817 - `type: "event"`
941818 
942819 Object type. Always `event` for webhook payloads.
943820 
944 - `"event"`
945 
946821### Beta Webhook Event Data
947822 
948823- `BetaWebhookEventData = BetaWebhookSessionCreatedEventData or BetaWebhookSessionPendingEventData or BetaWebhookSessionRunningEventData or 41 more`
949824 
950 - `BetaWebhookSessionCreatedEventData object { id, organization_id, type, workspace_id }`
825 - `BetaWebhookSessionCreatedEventData object`
951826 
952827 - `id: string`
953828 
from line 832
957832 
958833 - `type: "session.created"`
959834 
960 - `"session.created"`
961 
962 - `workspace_id: string`
963 
964 - `BetaWebhookSessionPendingEventData object { id, organization_id, type, workspace_id }`
835 - `workspace_id: string`
836 
837 - `BetaWebhookSessionPendingEventData object`
965838 
966839 - `id: string`
967840 
from line 844
971844 
972845 - `type: "session.pending"`
973846 
974 - `"session.pending"`
975 
976 - `workspace_id: string`
977 
978 - `BetaWebhookSessionRunningEventData object { id, organization_id, type, workspace_id }`
847 - `workspace_id: string`
848 
849 - `BetaWebhookSessionRunningEventData object`
979850 
980851 - `id: string`
981852 
from line 856
985856 
986857 - `type: "session.running"`
987858 
988 - `"session.running"`
989 
990 - `workspace_id: string`
991 
992 - `BetaWebhookSessionIdledEventData object { id, organization_id, type, workspace_id }`
859 - `workspace_id: string`
860 
861 - `BetaWebhookSessionIdledEventData object`
993862 
994863 - `id: string`
995864 
from line 868
999868 
1000869 - `type: "session.idled"`
1001870 
1002 - `"session.idled"`
1003 
1004 - `workspace_id: string`
1005 
1006 - `BetaWebhookSessionRequiresActionEventData object { id, organization_id, type, workspace_id }`
871 - `workspace_id: string`
872 
873 - `BetaWebhookSessionRequiresActionEventData object`
1007874 
1008875 - `id: string`
1009876 
from line 880
1013880 
1014881 - `type: "session.requires_action"`
1015882 
1016 - `"session.requires_action"`
1017 
1018 - `workspace_id: string`
1019 
1020 - `BetaWebhookSessionArchivedEventData object { id, organization_id, type, workspace_id }`
883 - `workspace_id: string`
884 
885 - `BetaWebhookSessionArchivedEventData object`
1021886 
1022887 - `id: string`
1023888 
from line 892
1027892 
1028893 - `type: "session.archived"`
1029894 
1030 - `"session.archived"`
1031 
1032 - `workspace_id: string`
1033 
1034 - `BetaWebhookSessionDeletedEventData object { id, organization_id, type, workspace_id }`
895 - `workspace_id: string`
896 
897 - `BetaWebhookSessionDeletedEventData object`
1035898 
1036899 - `id: string`
1037900 
from line 904
1041904 
1042905 - `type: "session.deleted"`
1043906 
1044 - `"session.deleted"`
1045 
1046 - `workspace_id: string`
1047 
1048 - `BetaWebhookSessionStatusRescheduledEventData object { id, organization_id, type, workspace_id }`
907 - `workspace_id: string`
908 
909 - `BetaWebhookSessionStatusRescheduledEventData object`
1049910 
1050911 - `id: string`
1051912 
from line 916
1055916 
1056917 - `type: "session.status_rescheduled"`
1057918 
1058 - `"session.status_rescheduled"`
1059 
1060 - `workspace_id: string`
1061 
1062 - `BetaWebhookSessionStatusRunStartedEventData object { id, organization_id, type, workspace_id }`
919 - `workspace_id: string`
920 
921 - `BetaWebhookSessionStatusRunStartedEventData object`
1063922 
1064923 - `id: string`
1065924 
from line 928
1069928 
1070929 - `type: "session.status_run_started"`
1071930 
1072 - `"session.status_run_started"`
1073 
1074 - `workspace_id: string`
1075 
1076 - `BetaWebhookSessionStatusIdledEventData object { id, organization_id, type, workspace_id }`
931 - `workspace_id: string`
932 
933 - `BetaWebhookSessionStatusIdledEventData object`
1077934 
1078935 - `id: string`
1079936 
from line 940
1083940 
1084941 - `type: "session.status_idled"`
1085942 
1086 - `"session.status_idled"`
1087 
1088 - `workspace_id: string`
1089 
1090 - `BetaWebhookSessionStatusTerminatedEventData object { id, organization_id, type, workspace_id }`
943 - `workspace_id: string`
944 
945 - `BetaWebhookSessionStatusTerminatedEventData object`
1091946 
1092947 - `id: string`
1093948 
from line 952
1097952 
1098953 - `type: "session.status_terminated"`
1099954 
1100 - `"session.status_terminated"`
1101 
1102 - `workspace_id: string`
1103 
1104 - `BetaWebhookSessionThreadCreatedEventData object { id, organization_id, session_thread_id, 2 more }`
955 - `workspace_id: string`
956 
957 - `BetaWebhookSessionThreadCreatedEventData object`
1105958 
1106959 - `id: string`
1107960 
from line 968
1115968 
1116969 - `type: "session.thread_created"`
1117970 
1118 - `"session.thread_created"`
1119 
1120 - `workspace_id: string`
1121 
1122 - `BetaWebhookSessionThreadIdledEventData object { id, organization_id, session_thread_id, 2 more }`
971 - `workspace_id: string`
972 
973 - `BetaWebhookSessionThreadIdledEventData object`
1123974 
1124975 - `id: string`
1125976 
from line 984
1133984 
1134985 - `type: "session.thread_idled"`
1135986 
1136 - `"session.thread_idled"`
1137 
1138 - `workspace_id: string`
1139 
1140 - `BetaWebhookSessionThreadTerminatedEventData object { id, organization_id, session_thread_id, 2 more }`
987 - `workspace_id: string`
988 
989 - `BetaWebhookSessionThreadTerminatedEventData object`
1141990 
1142991 - `id: string`
1143992 
from line 1000
11511000 
11521001 - `type: "session.thread_terminated"`
11531002 
1154 - `"session.thread_terminated"`
1155 
1156 - `workspace_id: string`
1157 
1158 - `BetaWebhookSessionOutcomeEvaluationEndedEventData object { id, organization_id, type, workspace_id }`
1003 - `workspace_id: string`
1004 
1005 - `BetaWebhookSessionOutcomeEvaluationEndedEventData object`
11591006 
11601007 - `id: string`
11611008 
from line 1012
11651012 
11661013 - `type: "session.outcome_evaluation_ended"`
11671014 
1168 - `"session.outcome_evaluation_ended"`
1169 
1170 - `workspace_id: string`
1171 
1172 - `BetaWebhookVaultCreatedEventData object { id, organization_id, type, workspace_id }`
1015 - `workspace_id: string`
1016 
1017 - `BetaWebhookVaultCreatedEventData object`
11731018 
11741019 - `id: string`
11751020 
from line 1024
11791024 
11801025 - `type: "vault.created"`
11811026 
1182 - `"vault.created"`
1183 
1184 - `workspace_id: string`
1185 
1186 - `BetaWebhookVaultArchivedEventData object { id, organization_id, type, workspace_id }`
1027 - `workspace_id: string`
1028 
1029 - `BetaWebhookVaultArchivedEventData object`
11871030 
11881031 - `id: string`
11891032 
from line 1036
11931036 
11941037 - `type: "vault.archived"`
11951038 
1196 - `"vault.archived"`
1197 
1198 - `workspace_id: string`
1199 
1200 - `BetaWebhookVaultDeletedEventData object { id, organization_id, type, workspace_id }`
1039 - `workspace_id: string`
1040 
1041 - `BetaWebhookVaultDeletedEventData object`
12011042 
12021043 - `id: string`
12031044 
from line 1048
12071048 
12081049 - `type: "vault.deleted"`
12091050 
1210 - `"vault.deleted"`
1211 
1212 - `workspace_id: string`
1213 
1214 - `BetaWebhookVaultCredentialCreatedEventData object { id, organization_id, type, 2 more }`
1051 - `workspace_id: string`
1052 
1053 - `BetaWebhookVaultCredentialCreatedEventData object`
12151054 
12161055 - `id: string`
12171056 
from line 1060
12211060 
12221061 - `type: "vault_credential.created"`
12231062 
1224 - `"vault_credential.created"`
1225 
12261063 - `vault_id: string`
12271064 
12281065 ID of the vault that owns this credential.
12291066 
12301067 - `workspace_id: string`
12311068 
1232 - `BetaWebhookVaultCredentialArchivedEventData object { id, organization_id, type, 2 more }`
1069 - `BetaWebhookVaultCredentialArchivedEventData object`
12331070 
12341071 - `id: string`
12351072 
from line 1076
12391076 
12401077 - `type: "vault_credential.archived"`
12411078 
1242 - `"vault_credential.archived"`
1243 
12441079 - `vault_id: string`
12451080 
12461081 ID of the vault that owns this credential.
12471082 
12481083 - `workspace_id: string`
12491084 
1250 - `BetaWebhookVaultCredentialDeletedEventData object { id, organization_id, type, 2 more }`
1085 - `BetaWebhookVaultCredentialDeletedEventData object`
12511086 
12521087 - `id: string`
12531088 
from line 1092
12571092 
12581093 - `type: "vault_credential.deleted"`
12591094 
1260 - `"vault_credential.deleted"`
1261 
12621095 - `vault_id: string`
12631096 
12641097 ID of the vault that owns this credential.
12651098 
12661099 - `workspace_id: string`
12671100 
1268 - `BetaWebhookVaultCredentialRefreshFailedEventData object { id, organization_id, type, 2 more }`
1101 - `BetaWebhookVaultCredentialRefreshFailedEventData object`
12691102 
12701103 - `id: string`
12711104 
from line 1108
12751108 
12761109 - `type: "vault_credential.refresh_failed"`
12771110 
1278 - `"vault_credential.refresh_failed"`
1279 
12801111 - `vault_id: string`
12811112 
12821113 ID of the vault that owns this credential.
12831114 
12841115 - `workspace_id: string`
12851116 
1286 - `BetaWebhookSessionUpdatedEventData object { id, organization_id, type, workspace_id }`
1117 - `BetaWebhookSessionUpdatedEventData object`
12871118 
12881119 - `id: string`
12891120 
from line 1124
12931124 
12941125 - `type: "session.updated"`
12951126 
1296 - `"session.updated"`
1297 
1298 - `workspace_id: string`
1299 
1300 - `BetaWebhookAgentCreatedEventData object { id, organization_id, type, workspace_id }`
1127 - `workspace_id: string`
1128 
1129 - `BetaWebhookAgentCreatedEventData object`
13011130 
13021131 - `id: string`
13031132 
from line 1136
13071136 
13081137 - `type: "agent.created"`
13091138 
1310 - `"agent.created"`
1311 
1312 - `workspace_id: string`
1313 
1314 - `BetaWebhookAgentArchivedEventData object { id, organization_id, type, workspace_id }`
1139 - `workspace_id: string`
1140 
1141 - `BetaWebhookAgentArchivedEventData object`
13151142 
13161143 - `id: string`
13171144 
from line 1148
13211148 
13221149 - `type: "agent.archived"`
13231150 
1324 - `"agent.archived"`
1325 
1326 - `workspace_id: string`
1327 
1328 - `BetaWebhookAgentDeletedEventData object { id, organization_id, type, workspace_id }`
1151 - `workspace_id: string`
1152 
1153 - `BetaWebhookAgentDeletedEventData object`
13291154 
13301155 - `id: string`
13311156 
from line 1160
13351160 
13361161 - `type: "agent.deleted"`
13371162 
1338 - `"agent.deleted"`
1339 
1340 - `workspace_id: string`
1341 
1342 - `BetaWebhookDeploymentPausedEventData object { id, organization_id, type, workspace_id }`
1163 - `workspace_id: string`
1164 
1165 - `BetaWebhookDeploymentPausedEventData object`
13431166 
13441167 - `id: string`
13451168 
from line 1172
13491172 
13501173 - `type: "deployment.paused"`
13511174 
1352 - `"deployment.paused"`
1353 
1354 - `workspace_id: string`
1355 
1356 - `BetaWebhookDeploymentRunFailedEventData object { id, organization_id, type, workspace_id }`
1175 - `workspace_id: string`
1176 
1177 - `BetaWebhookDeploymentRunFailedEventData object`
13571178 
13581179 - `id: string`
13591180 
from line 1184
13631184 
13641185 - `type: "deployment_run.failed"`
13651186 
1366 - `"deployment_run.failed"`
1367 
1368 - `workspace_id: string`
1369 
1370 - `BetaWebhookDeploymentCreatedEventData object { id, organization_id, type, workspace_id }`
1187 - `workspace_id: string`
1188 
1189 - `BetaWebhookDeploymentCreatedEventData object`
13711190 
13721191 - `id: string`
13731192 
from line 1196
13771196 
13781197 - `type: "deployment.created"`
13791198 
1380 - `"deployment.created"`
1381 
1382 - `workspace_id: string`
1383 
1384 - `BetaWebhookDeploymentUpdatedEventData object { id, organization_id, type, workspace_id }`
1199 - `workspace_id: string`
1200 
1201 - `BetaWebhookDeploymentUpdatedEventData object`
13851202 
13861203 - `id: string`
13871204 
from line 1208
13911208 
13921209 - `type: "deployment.updated"`
13931210 
1394 - `"deployment.updated"`
1395 
1396 - `workspace_id: string`
1397 
1398 - `BetaWebhookDeploymentUnpausedEventData object { id, organization_id, type, workspace_id }`
1211 - `workspace_id: string`
1212 
1213 - `BetaWebhookDeploymentUnpausedEventData object`
13991214 
14001215 - `id: string`
14011216 
from line 1220
14051220 
14061221 - `type: "deployment.unpaused"`
14071222 
1408 - `"deployment.unpaused"`
1409 
1410 - `workspace_id: string`
1411 
1412 - `BetaWebhookAgentUpdatedEventData object { id, organization_id, type, workspace_id }`
1223 - `workspace_id: string`
1224 
1225 - `BetaWebhookAgentUpdatedEventData object`
14131226 
14141227 - `id: string`
14151228 
from line 1232
14191232 
14201233 - `type: "agent.updated"`
14211234 
1422 - `"agent.updated"`
1423 
1424 - `workspace_id: string`
1425 
1426 - `BetaWebhookDeploymentArchivedEventData object { id, organization_id, type, workspace_id }`
1235 - `workspace_id: string`
1236 
1237 - `BetaWebhookDeploymentArchivedEventData object`
14271238 
14281239 - `id: string`
14291240 
from line 1244
14331244 
14341245 - `type: "deployment.archived"`
14351246 
1436 - `"deployment.archived"`
1437 
1438 - `workspace_id: string`
1439 
1440 - `BetaWebhookDeploymentRunStartedEventData object { id, organization_id, type, workspace_id }`
1247 - `workspace_id: string`
1248 
1249 - `BetaWebhookDeploymentRunStartedEventData object`
14411250 
14421251 - `id: string`
14431252 
from line 1256
14471256 
14481257 - `type: "deployment_run.started"`
14491258 
1450 - `"deployment_run.started"`
1451 
1452 - `workspace_id: string`
1453 
1454 - `BetaWebhookDeploymentDeletedEventData object { id, organization_id, type, workspace_id }`
1259 - `workspace_id: string`
1260 
1261 - `BetaWebhookDeploymentDeletedEventData object`
14551262 
14561263 - `id: string`
14571264 
from line 1268
14611268 
14621269 - `type: "deployment.deleted"`
14631270 
1464 - `"deployment.deleted"`
1465 
1466 - `workspace_id: string`
1467 
1468 - `BetaWebhookDeploymentRunSucceededEventData object { id, organization_id, type, workspace_id }`
1271 - `workspace_id: string`
1272 
1273 - `BetaWebhookDeploymentRunSucceededEventData object`
14691274 
14701275 - `id: string`
14711276 
from line 1280
14751280 
14761281 - `type: "deployment_run.succeeded"`
14771282 
1478 - `"deployment_run.succeeded"`
1479 
1480 - `workspace_id: string`
1481 
1482 - `BetaWebhookEnvironmentCreatedEventData object { id, organization_id, type, workspace_id }`
1283 - `workspace_id: string`
1284 
1285 - `BetaWebhookEnvironmentCreatedEventData object`
14831286 
14841287 - `id: string`
14851288 
from line 1292
14891292 
14901293 - `type: "environment.created"`
14911294 
1492 - `"environment.created"`
1493 
1494 - `workspace_id: string`
1495 
1496 - `BetaWebhookEnvironmentUpdatedEventData object { id, organization_id, type, workspace_id }`
1295 - `workspace_id: string`
1296 
1297 - `BetaWebhookEnvironmentUpdatedEventData object`
14971298 
14981299 - `id: string`
14991300 
from line 1304
15031304 
15041305 - `type: "environment.updated"`
15051306 
1506 - `"environment.updated"`
1507 
1508 - `workspace_id: string`
1509 
1510 - `BetaWebhookEnvironmentArchivedEventData object { id, organization_id, type, workspace_id }`
1307 - `workspace_id: string`
1308 
1309 - `BetaWebhookEnvironmentArchivedEventData object`
15111310 
15121311 - `id: string`
15131312 
from line 1316
15171316 
15181317 - `type: "environment.archived"`
15191318 
1520 - `"environment.archived"`
1521 
1522 - `workspace_id: string`
1523 
1524 - `BetaWebhookEnvironmentDeletedEventData object { id, organization_id, type, workspace_id }`
1319 - `workspace_id: string`
1320 
1321 - `BetaWebhookEnvironmentDeletedEventData object`
15251322 
15261323 - `id: string`
15271324 
from line 1328
15311328 
15321329 - `type: "environment.deleted"`
15331330 
1534 - `"environment.deleted"`
1535 
1536 - `workspace_id: string`
1537 
1538 - `BetaWebhookMemoryStoreCreatedEventData object { id, organization_id, type, workspace_id }`
1331 - `workspace_id: string`
1332 
1333 - `BetaWebhookMemoryStoreCreatedEventData object`
15391334 
15401335 - `id: string`
15411336 
from line 1340
15451340 
15461341 - `type: "memory_store.created"`
15471342 
1548 - `"memory_store.created"`
1549 
1550 - `workspace_id: string`
1551 
1552 - `BetaWebhookMemoryStoreArchivedEventData object { id, organization_id, type, workspace_id }`
1343 - `workspace_id: string`
1344 
1345 - `BetaWebhookMemoryStoreArchivedEventData object`
15531346 
15541347 - `id: string`
15551348 
from line 1352
15591352 
15601353 - `type: "memory_store.archived"`
15611354 
1562 - `"memory_store.archived"`
1563 
1564 - `workspace_id: string`
1565 
1566 - `BetaWebhookMemoryStoreDeletedEventData object { id, organization_id, type, workspace_id }`
1355 - `workspace_id: string`
1356 
1357 - `BetaWebhookMemoryStoreDeletedEventData object`
15671358 
15681359 - `id: string`
15691360 
from line 1364
15731364 
15741365 - `type: "memory_store.deleted"`
15751366 
1576 - `"memory_store.deleted"`
1577 
1578 - `workspace_id: string`
1579 
1580 - `BetaWebhookSessionBudgetReachedEventData object { id, organization_id, type, workspace_id }`
1367 - `workspace_id: string`
1368 
1369 - `BetaWebhookSessionBudgetReachedEventData object`
15811370 
15821371 - `id: string`
15831372 
from line 1376
15871376 
15881377 - `type: "session.budget_reached"`
15891378 
1590 - `"session.budget_reached"`
1591 
15921379 - `workspace_id: string`
15931380 
15941381### Beta Webhook Memory Store Archived Event Data
15951382 
1596- `BetaWebhookMemoryStoreArchivedEventData object { id, organization_id, type, workspace_id }`
1383- `BetaWebhookMemoryStoreArchivedEventData object`
15971384 
15981385 - `id: string`
15991386 
from line 1390
16031390 
16041391 - `type: "memory_store.archived"`
16051392 
1606 - `"memory_store.archived"`
1607 
16081393 - `workspace_id: string`
16091394 
16101395### Beta Webhook Memory Store Created Event Data
16111396 
1612- `BetaWebhookMemoryStoreCreatedEventData object { id, organization_id, type, workspace_id }`
1397- `BetaWebhookMemoryStoreCreatedEventData object`
16131398 
16141399 - `id: string`
16151400 
from line 1404
16191404 
16201405 - `type: "memory_store.created"`
16211406 
1622 - `"memory_store.created"`
1623 
16241407 - `workspace_id: string`
16251408 
16261409### Beta Webhook Memory Store Deleted Event Data
16271410 
1628- `BetaWebhookMemoryStoreDeletedEventData object { id, organization_id, type, workspace_id }`
1411- `BetaWebhookMemoryStoreDeletedEventData object`
16291412 
16301413 - `id: string`
16311414 
from line 1418
16351418 
16361419 - `type: "memory_store.deleted"`
16371420 
1638 - `"memory_store.deleted"`
1639 
16401421 - `workspace_id: string`
16411422 
16421423### Beta Webhook Session Archived Event Data
16431424 
1644- `BetaWebhookSessionArchivedEventData object { id, organization_id, type, workspace_id }`
1425- `BetaWebhookSessionArchivedEventData object`
16451426 
16461427 - `id: string`
16471428 
from line 1432
16511432 
16521433 - `type: "session.archived"`
16531434 
1654 - `"session.archived"`
1655 
16561435 - `workspace_id: string`
16571436 
16581437### Beta Webhook Session Budget Reached Event Data
16591438 
1660- `BetaWebhookSessionBudgetReachedEventData object { id, organization_id, type, workspace_id }`
1439- `BetaWebhookSessionBudgetReachedEventData object`
16611440 
16621441 - `id: string`
16631442 
from line 1446
16671446 
16681447 - `type: "session.budget_reached"`
16691448 
1670 - `"session.budget_reached"`
1671 
16721449 - `workspace_id: string`
16731450 
16741451### Beta Webhook Session Created Event Data
16751452 
1676- `BetaWebhookSessionCreatedEventData object { id, organization_id, type, workspace_id }`
1453- `BetaWebhookSessionCreatedEventData object`
16771454 
16781455 - `id: string`
16791456 
from line 1460
16831460 
16841461 - `type: "session.created"`
16851462 
1686 - `"session.created"`
1687 
16881463 - `workspace_id: string`
16891464 
16901465### Beta Webhook Session Deleted Event Data
16911466 
1692- `BetaWebhookSessionDeletedEventData object { id, organization_id, type, workspace_id }`
1467- `BetaWebhookSessionDeletedEventData object`
16931468 
16941469 - `id: string`
16951470 
from line 1474
16991474 
17001475 - `type: "session.deleted"`
17011476 
1702 - `"session.deleted"`
1703 
17041477 - `workspace_id: string`
17051478 
17061479### Beta Webhook Session Idled Event Data
17071480 
1708- `BetaWebhookSessionIdledEventData object { id, organization_id, type, workspace_id }`
1481- `BetaWebhookSessionIdledEventData object`
17091482 
17101483 - `id: string`
17111484 
from line 1488
17151488 
17161489 - `type: "session.idled"`
17171490 
1718 - `"session.idled"`
1719 
17201491 - `workspace_id: string`
17211492 
17221493### Beta Webhook Session Outcome Evaluation Ended Event Data
17231494 
1724- `BetaWebhookSessionOutcomeEvaluationEndedEventData object { id, organization_id, type, workspace_id }`
1495- `BetaWebhookSessionOutcomeEvaluationEndedEventData object`
17251496 
17261497 - `id: string`
17271498 
from line 1502
17311502 
17321503 - `type: "session.outcome_evaluation_ended"`
17331504 
1734 - `"session.outcome_evaluation_ended"`
1735 
17361505 - `workspace_id: string`
17371506 
17381507### Beta Webhook Session Pending Event Data
17391508 
1740- `BetaWebhookSessionPendingEventData object { id, organization_id, type, workspace_id }`
1509- `BetaWebhookSessionPendingEventData object`
17411510 
17421511 - `id: string`
17431512 
from line 1516
17471516 
17481517 - `type: "session.pending"`
17491518 
1750 - `"session.pending"`
1751 
17521519 - `workspace_id: string`
17531520 
17541521### Beta Webhook Session Requires Action Event Data
17551522 
1756- `BetaWebhookSessionRequiresActionEventData object { id, organization_id, type, workspace_id }`
1523- `BetaWebhookSessionRequiresActionEventData object`
17571524 
17581525 - `id: string`
17591526 
from line 1530
17631530 
17641531 - `type: "session.requires_action"`
17651532 
1766 - `"session.requires_action"`
1767 
17681533 - `workspace_id: string`
17691534 
17701535### Beta Webhook Session Running Event Data
17711536 
1772- `BetaWebhookSessionRunningEventData object { id, organization_id, type, workspace_id }`
1537- `BetaWebhookSessionRunningEventData object`
17731538 
17741539 - `id: string`
17751540 
from line 1544
17791544 
17801545 - `type: "session.running"`
17811546 
1782 - `"session.running"`
1783 
17841547 - `workspace_id: string`
17851548 
17861549### Beta Webhook Session Status Idled Event Data
17871550 
1788- `BetaWebhookSessionStatusIdledEventData object { id, organization_id, type, workspace_id }`
1551- `BetaWebhookSessionStatusIdledEventData object`
17891552 
17901553 - `id: string`
17911554 
from line 1558
17951558 
17961559 - `type: "session.status_idled"`
17971560 
1798 - `"session.status_idled"`
1799 
18001561 - `workspace_id: string`
18011562 
18021563### Beta Webhook Session Status Rescheduled Event Data
18031564 
1804- `BetaWebhookSessionStatusRescheduledEventData object { id, organization_id, type, workspace_id }`
1565- `BetaWebhookSessionStatusRescheduledEventData object`
18051566 
18061567 - `id: string`
18071568 
from line 1572
18111572 
18121573 - `type: "session.status_rescheduled"`
18131574 
1814 - `"session.status_rescheduled"`
1815 
18161575 - `workspace_id: string`
18171576 
18181577### Beta Webhook Session Status Run Started Event Data
18191578 
1820- `BetaWebhookSessionStatusRunStartedEventData object { id, organization_id, type, workspace_id }`
1579- `BetaWebhookSessionStatusRunStartedEventData object`
18211580 
18221581 - `id: string`
18231582 
from line 1586
18271586 
18281587 - `type: "session.status_run_started"`
18291588 
1830 - `"session.status_run_started"`
1831 
18321589 - `workspace_id: string`
18331590 
18341591### Beta Webhook Session Status Terminated Event Data
18351592 
1836- `BetaWebhookSessionStatusTerminatedEventData object { id, organization_id, type, workspace_id }`
1593- `BetaWebhookSessionStatusTerminatedEventData object`
18371594 
18381595 - `id: string`
18391596 
from line 1600
18431600 
18441601 - `type: "session.status_terminated"`
18451602 
1846 - `"session.status_terminated"`
1847 
18481603 - `workspace_id: string`
18491604 
18501605### Beta Webhook Session Thread Created Event Data
18511606 
1852- `BetaWebhookSessionThreadCreatedEventData object { id, organization_id, session_thread_id, 2 more }`
1607- `BetaWebhookSessionThreadCreatedEventData object`
18531608 
18541609 - `id: string`
18551610 
from line 1618
18631618 
18641619 - `type: "session.thread_created"`
18651620 
1866 - `"session.thread_created"`
1867 
18681621 - `workspace_id: string`
18691622 
18701623### Beta Webhook Session Thread Idled Event Data
18711624 
1872- `BetaWebhookSessionThreadIdledEventData object { id, organization_id, session_thread_id, 2 more }`
1625- `BetaWebhookSessionThreadIdledEventData object`
18731626 
18741627 - `id: string`
18751628 
from line 1636
18831636 
18841637 - `type: "session.thread_idled"`
18851638 
1886 - `"session.thread_idled"`
1887 
18881639 - `workspace_id: string`
18891640 
18901641### Beta Webhook Session Thread Terminated Event Data
18911642 
1892- `BetaWebhookSessionThreadTerminatedEventData object { id, organization_id, session_thread_id, 2 more }`
1643- `BetaWebhookSessionThreadTerminatedEventData object`
18931644 
18941645 - `id: string`
18951646 
from line 1654
19031654 
19041655 - `type: "session.thread_terminated"`
19051656 
1906 - `"session.thread_terminated"`
1907 
19081657 - `workspace_id: string`
19091658 
19101659### Beta Webhook Session Updated Event Data
19111660 
1912- `BetaWebhookSessionUpdatedEventData object { id, organization_id, type, workspace_id }`
1661- `BetaWebhookSessionUpdatedEventData object`
19131662 
19141663 - `id: string`
19151664 
from line 1668
19191668 
19201669 - `type: "session.updated"`
19211670 
1922 - `"session.updated"`
1923 
19241671 - `workspace_id: string`
19251672 
19261673### Beta Webhook Vault Archived Event Data
19271674 
1928- `BetaWebhookVaultArchivedEventData object { id, organization_id, type, workspace_id }`
1675- `BetaWebhookVaultArchivedEventData object`
19291676 
19301677 - `id: string`
19311678 
from line 1682
19351682 
19361683 - `type: "vault.archived"`
19371684 
1938 - `"vault.archived"`
1939 
19401685 - `workspace_id: string`
19411686 
19421687### Beta Webhook Vault Created Event Data
19431688 
1944- `BetaWebhookVaultCreatedEventData object { id, organization_id, type, workspace_id }`
1689- `BetaWebhookVaultCreatedEventData object`
19451690 
19461691 - `id: string`
19471692 
from line 1696
19511696 
19521697 - `type: "vault.created"`
19531698 
1954 - `"vault.created"`
1955 
19561699 - `workspace_id: string`
19571700 
19581701### Beta Webhook Vault Credential Archived Event Data
19591702 
1960- `BetaWebhookVaultCredentialArchivedEventData object { id, organization_id, type, 2 more }`
1703- `BetaWebhookVaultCredentialArchivedEventData object`
19611704 
19621705 - `id: string`
19631706 
from line 1710
19671710 
19681711 - `type: "vault_credential.archived"`
19691712 
1970 - `"vault_credential.archived"`
1971 
19721713 - `vault_id: string`
19731714 
19741715 ID of the vault that owns this credential.
from line 1718
19771718 
19781719### Beta Webhook Vault Credential Created Event Data
19791720 
1980- `BetaWebhookVaultCredentialCreatedEventData object { id, organization_id, type, 2 more }`
1721- `BetaWebhookVaultCredentialCreatedEventData object`
19811722 
19821723 - `id: string`
19831724 
from line 1728
19871728 
19881729 - `type: "vault_credential.created"`
19891730 
1990 - `"vault_credential.created"`
1991 
19921731 - `vault_id: string`
19931732 
19941733 ID of the vault that owns this credential.
from line 1736
19971736 
19981737### Beta Webhook Vault Credential Deleted Event Data
19991738 
2000- `BetaWebhookVaultCredentialDeletedEventData object { id, organization_id, type, 2 more }`
1739- `BetaWebhookVaultCredentialDeletedEventData object`
20011740 
20021741 - `id: string`
20031742 
from line 1746
20071746 
20081747 - `type: "vault_credential.deleted"`
20091748 
2010 - `"vault_credential.deleted"`
2011 
20121749 - `vault_id: string`
20131750 
20141751 ID of the vault that owns this credential.
from line 1754
20171754 
20181755### Beta Webhook Vault Credential Refresh Failed Event Data
20191756 
2020- `BetaWebhookVaultCredentialRefreshFailedEventData object { id, organization_id, type, 2 more }`
1757- `BetaWebhookVaultCredentialRefreshFailedEventData object`
20211758 
20221759 - `id: string`
20231760 
from line 1764
20271764 
20281765 - `type: "vault_credential.refresh_failed"`
20291766 
2030 - `"vault_credential.refresh_failed"`
2031 
20321767 - `vault_id: string`
20331768 
20341769 ID of the vault that owns this credential.
from line 1772
20371772 
20381773### Beta Webhook Vault Deleted Event Data
20391774 
2040- `BetaWebhookVaultDeletedEventData object { id, organization_id, type, workspace_id }`
1775- `BetaWebhookVaultDeletedEventData object`
20411776 
20421777 - `id: string`
20431778 
from line 1782
20471782 
20481783 - `type: "vault.deleted"`
20491784 
2050 - `"vault.deleted"`
2051 
20521785 - `workspace_id: string`
20531786 
20541787### Unwrap Webhook Event
20551788 
2056- `UnwrapWebhookEvent object { id, created_at, data, type }`
1789- `UnwrapWebhookEvent object`
20571790 
20581791 - `id: string`
20591792 
from line 1796
20631796 
20641797 RFC 3339 timestamp when the event occurred.
20651798 
1799 format: date-time
1800 
20661801 - `data: BetaWebhookEventData`
20671802 
2068 - `BetaWebhookSessionCreatedEventData object { id, organization_id, type, workspace_id }`
1803 - `BetaWebhookSessionCreatedEventData object`
20691804 
20701805 - `id: string`
20711806 
from line 1810
20751810 
20761811 - `type: "session.created"`
20771812 
2078 - `"session.created"`
2079 
2080 - `workspace_id: string`
2081 
2082 - `BetaWebhookSessionPendingEventData object { id, organization_id, type, workspace_id }`
1813 - `workspace_id: string`
1814 
1815 - `BetaWebhookSessionPendingEventData object`
20831816 
20841817 - `id: string`
20851818 
from line 1822
20891822 
20901823 - `type: "session.pending"`
20911824 
2092 - `"session.pending"`
2093 
2094 - `workspace_id: string`
2095 
2096 - `BetaWebhookSessionRunningEventData object { id, organization_id, type, workspace_id }`
1825 - `workspace_id: string`
1826 
1827 - `BetaWebhookSessionRunningEventData object`
20971828 
20981829 - `id: string`
20991830 
from line 1834
21031834 
21041835 - `type: "session.running"`
21051836 
2106 - `"session.running"`
2107 
2108 - `workspace_id: string`
2109 
2110 - `BetaWebhookSessionIdledEventData object { id, organization_id, type, workspace_id }`
1837 - `workspace_id: string`
1838 
1839 - `BetaWebhookSessionIdledEventData object`
21111840 
21121841 - `id: string`
21131842 
from line 1846
21171846 
21181847 - `type: "session.idled"`
21191848 
2120 - `"session.idled"`
2121 
2122 - `workspace_id: string`
2123 
2124 - `BetaWebhookSessionRequiresActionEventData object { id, organization_id, type, workspace_id }`
1849 - `workspace_id: string`
1850 
1851 - `BetaWebhookSessionRequiresActionEventData object`
21251852 
21261853 - `id: string`
21271854 
from line 1858
21311858 
21321859 - `type: "session.requires_action"`
21331860 
2134 - `"session.requires_action"`
2135 
2136 - `workspace_id: string`
2137 
2138 - `BetaWebhookSessionArchivedEventData object { id, organization_id, type, workspace_id }`
1861 - `workspace_id: string`
1862 
1863 - `BetaWebhookSessionArchivedEventData object`
21391864 
21401865 - `id: string`
21411866 
from line 1870
21451870 
21461871 - `type: "session.archived"`
21471872 
2148 - `"session.archived"`
2149 
2150 - `workspace_id: string`
2151 
2152 - `BetaWebhookSessionDeletedEventData object { id, organization_id, type, workspace_id }`
1873 - `workspace_id: string`
1874 
1875 - `BetaWebhookSessionDeletedEventData object`
21531876 
21541877 - `id: string`
21551878 
from line 1882
21591882 
21601883 - `type: "session.deleted"`
21611884 
2162 - `"session.deleted"`
2163 
2164 - `workspace_id: string`
2165 
2166 - `BetaWebhookSessionStatusRescheduledEventData object { id, organization_id, type, workspace_id }`
1885 - `workspace_id: string`
1886 
1887 - `BetaWebhookSessionStatusRescheduledEventData object`
21671888 
21681889 - `id: string`
21691890 
from line 1894
21731894 
21741895 - `type: "session.status_rescheduled"`
21751896 
2176 - `"session.status_rescheduled"`
2177 
2178 - `workspace_id: string`
2179 
2180 - `BetaWebhookSessionStatusRunStartedEventData object { id, organization_id, type, workspace_id }`
1897 - `workspace_id: string`
1898 
1899 - `BetaWebhookSessionStatusRunStartedEventData object`
21811900 
21821901 - `id: string`
21831902 
from line 1906
21871906 
21881907 - `type: "session.status_run_started"`
21891908 
2190 - `"session.status_run_started"`
2191 
2192 - `workspace_id: string`
2193 
2194 - `BetaWebhookSessionStatusIdledEventData object { id, organization_id, type, workspace_id }`
1909 - `workspace_id: string`
1910 
1911 - `BetaWebhookSessionStatusIdledEventData object`
21951912 
21961913 - `id: string`
21971914 
from line 1918
22011918 
22021919 - `type: "session.status_idled"`
22031920 
2204 - `"session.status_idled"`
2205 
2206 - `workspace_id: string`
2207 
2208 - `BetaWebhookSessionStatusTerminatedEventData object { id, organization_id, type, workspace_id }`
1921 - `workspace_id: string`
1922 
1923 - `BetaWebhookSessionStatusTerminatedEventData object`
22091924 
22101925 - `id: string`
22111926 
from line 1930
22151930 
22161931 - `type: "session.status_terminated"`
22171932 
2218 - `"session.status_terminated"`
2219 
2220 - `workspace_id: string`
2221 
2222 - `BetaWebhookSessionThreadCreatedEventData object { id, organization_id, session_thread_id, 2 more }`
1933 - `workspace_id: string`
1934 
1935 - `BetaWebhookSessionThreadCreatedEventData object`
22231936 
22241937 - `id: string`
22251938 
from line 1946
22331946 
22341947 - `type: "session.thread_created"`
22351948 
2236 - `"session.thread_created"`
2237 
2238 - `workspace_id: string`
2239 
2240 - `BetaWebhookSessionThreadIdledEventData object { id, organization_id, session_thread_id, 2 more }`
1949 - `workspace_id: string`
1950 
1951 - `BetaWebhookSessionThreadIdledEventData object`
22411952 
22421953 - `id: string`
22431954 
from line 1962
22511962 
22521963 - `type: "session.thread_idled"`
22531964 
2254 - `"session.thread_idled"`
2255 
2256 - `workspace_id: string`
2257 
2258 - `BetaWebhookSessionThreadTerminatedEventData object { id, organization_id, session_thread_id, 2 more }`
1965 - `workspace_id: string`
1966 
1967 - `BetaWebhookSessionThreadTerminatedEventData object`
22591968 
22601969 - `id: string`
22611970 
from line 1978
22691978 
22701979 - `type: "session.thread_terminated"`
22711980 
2272 - `"session.thread_terminated"`
2273 
2274 - `workspace_id: string`
2275 
2276 - `BetaWebhookSessionOutcomeEvaluationEndedEventData object { id, organization_id, type, workspace_id }`
1981 - `workspace_id: string`
1982 
1983 - `BetaWebhookSessionOutcomeEvaluationEndedEventData object`
22771984 
22781985 - `id: string`
22791986 
from line 1990
22831990 
22841991 - `type: "session.outcome_evaluation_ended"`
22851992 
2286 - `"session.outcome_evaluation_ended"`
2287 
2288 - `workspace_id: string`
2289 
2290 - `BetaWebhookVaultCreatedEventData object { id, organization_id, type, workspace_id }`
1993 - `workspace_id: string`
1994 
1995 - `BetaWebhookVaultCreatedEventData object`
22911996 
22921997 - `id: string`
22931998 
from line 2002
22972002 
22982003 - `type: "vault.created"`
22992004 
2300 - `"vault.created"`
2301 
2302 - `workspace_id: string`
2303 
2304 - `BetaWebhookVaultArchivedEventData object { id, organization_id, type, workspace_id }`
2005 - `workspace_id: string`
2006 
2007 - `BetaWebhookVaultArchivedEventData object`
23052008 
23062009 - `id: string`
23072010 
from line 2014
23112014 
23122015 - `type: "vault.archived"`
23132016 
2314 - `"vault.archived"`
2315 
2316 - `workspace_id: string`
2317 
2318 - `BetaWebhookVaultDeletedEventData object { id, organization_id, type, workspace_id }`
2017 - `workspace_id: string`
2018 
2019 - `BetaWebhookVaultDeletedEventData object`
23192020 
23202021 - `id: string`
23212022 
from line 2026
23252026 
23262027 - `type: "vault.deleted"`
23272028 
2328 - `"vault.deleted"`
2329 
2330 - `workspace_id: string`
2331 
2332 - `BetaWebhookVaultCredentialCreatedEventData object { id, organization_id, type, 2 more }`
2029 - `workspace_id: string`
2030 
2031 - `BetaWebhookVaultCredentialCreatedEventData object`
23332032 
23342033 - `id: string`
23352034 
from line 2038
23392038 
23402039 - `type: "vault_credential.created"`
23412040 
2342 - `"vault_credential.created"`
2343 
23442041 - `vault_id: string`
23452042 
23462043 ID of the vault that owns this credential.
23472044 
23482045 - `workspace_id: string`
23492046 
2350 - `BetaWebhookVaultCredentialArchivedEventData object { id, organization_id, type, 2 more }`
2047 - `BetaWebhookVaultCredentialArchivedEventData object`
23512048 
23522049 - `id: string`
23532050 
from line 2054
23572054 
23582055 - `type: "vault_credential.archived"`
23592056 
2360 - `"vault_credential.archived"`
2361 
23622057 - `vault_id: string`
23632058 
23642059 ID of the vault that owns this credential.
23652060 
23662061 - `workspace_id: string`
23672062 
2368 - `BetaWebhookVaultCredentialDeletedEventData object { id, organization_id, type, 2 more }`
2063 - `BetaWebhookVaultCredentialDeletedEventData object`
23692064 
23702065 - `id: string`
23712066 
from line 2070
23752070 
23762071 - `type: "vault_credential.deleted"`
23772072 
2378 - `"vault_credential.deleted"`
2379 
23802073 - `vault_id: string`
23812074 
23822075 ID of the vault that owns this credential.
23832076 
23842077 - `workspace_id: string`
23852078 
2386 - `BetaWebhookVaultCredentialRefreshFailedEventData object { id, organization_id, type, 2 more }`
2079 - `BetaWebhookVaultCredentialRefreshFailedEventData object`
23872080 
23882081 - `id: string`
23892082 
from line 2086
23932086 
23942087 - `type: "vault_credential.refresh_failed"`
23952088 
2396 - `"vault_credential.refresh_failed"`
2397 
23982089 - `vault_id: string`
23992090 
24002091 ID of the vault that owns this credential.
24012092 
24022093 - `workspace_id: string`
24032094 
2404 - `BetaWebhookSessionUpdatedEventData object { id, organization_id, type, workspace_id }`
2095 - `BetaWebhookSessionUpdatedEventData object`
24052096 
24062097 - `id: string`
24072098 
from line 2102
24112102 
24122103 - `type: "session.updated"`
24132104 
2414 - `"session.updated"`
2415 
2416 - `workspace_id: string`
2417 
2418 - `BetaWebhookAgentCreatedEventData object { id, organization_id, type, workspace_id }`
2105 - `workspace_id: string`
2106 
2107 - `BetaWebhookAgentCreatedEventData object`
24192108 
24202109 - `id: string`
24212110 
from line 2114
24252114 
24262115 - `type: "agent.created"`
24272116 
2428 - `"agent.created"`
2429 
2430 - `workspace_id: string`
2431 
2432 - `BetaWebhookAgentArchivedEventData object { id, organization_id, type, workspace_id }`
2117 - `workspace_id: string`
2118 
2119 - `BetaWebhookAgentArchivedEventData object`
24332120 
24342121 - `id: string`
24352122 
from line 2126
24392126 
24402127 - `type: "agent.archived"`
24412128 
2442 - `"agent.archived"`
2443 
2444 - `workspace_id: string`
2445 
2446 - `BetaWebhookAgentDeletedEventData object { id, organization_id, type, workspace_id }`
2129 - `workspace_id: string`
2130 
2131 - `BetaWebhookAgentDeletedEventData object`
24472132 
24482133 - `id: string`
24492134 
from line 2138
24532138 
24542139 - `type: "agent.deleted"`
24552140 
2456 - `"agent.deleted"`
2457 
2458 - `workspace_id: string`
2459 
2460 - `BetaWebhookDeploymentPausedEventData object { id, organization_id, type, workspace_id }`
2141 - `workspace_id: string`
2142 
2143 - `BetaWebhookDeploymentPausedEventData object`
24612144 
24622145 - `id: string`
24632146 
from line 2150
24672150 
24682151 - `type: "deployment.paused"`
24692152 
2470 - `"deployment.paused"`
2471 
2472 - `workspace_id: string`
2473 
2474 - `BetaWebhookDeploymentRunFailedEventData object { id, organization_id, type, workspace_id }`
2153 - `workspace_id: string`
2154 
2155 - `BetaWebhookDeploymentRunFailedEventData object`
24752156 
24762157 - `id: string`
24772158 
from line 2162
24812162 
24822163 - `type: "deployment_run.failed"`
24832164 
2484 - `"deployment_run.failed"`
2485 
2486 - `workspace_id: string`
2487 
2488 - `BetaWebhookDeploymentCreatedEventData object { id, organization_id, type, workspace_id }`
2165 - `workspace_id: string`
2166 
2167 - `BetaWebhookDeploymentCreatedEventData object`
24892168 
24902169 - `id: string`
24912170 
from line 2174
24952174 
24962175 - `type: "deployment.created"`
24972176 
2498 - `"deployment.created"`
2499 
2500 - `workspace_id: string`
2501 
2502 - `BetaWebhookDeploymentUpdatedEventData object { id, organization_id, type, workspace_id }`
2177 - `workspace_id: string`
2178 
2179 - `BetaWebhookDeploymentUpdatedEventData object`
25032180 
25042181 - `id: string`
25052182 
from line 2186
25092186 
25102187 - `type: "deployment.updated"`
25112188 
2512 - `"deployment.updated"`
2513 
2514 - `workspace_id: string`
2515 
2516 - `BetaWebhookDeploymentUnpausedEventData object { id, organization_id, type, workspace_id }`
2189 - `workspace_id: string`
2190 
2191 - `BetaWebhookDeploymentUnpausedEventData object`
25172192 
25182193 - `id: string`
25192194 
from line 2198
25232198 
25242199 - `type: "deployment.unpaused"`
25252200 
2526 - `"deployment.unpaused"`
2527 
2528 - `workspace_id: string`
2529 
2530 - `BetaWebhookAgentUpdatedEventData object { id, organization_id, type, workspace_id }`
2201 - `workspace_id: string`
2202 
2203 - `BetaWebhookAgentUpdatedEventData object`
25312204 
25322205 - `id: string`
25332206 
from line 2210
25372210 
25382211 - `type: "agent.updated"`
25392212 
2540 - `"agent.updated"`
2541 
2542 - `workspace_id: string`
2543 
2544 - `BetaWebhookDeploymentArchivedEventData object { id, organization_id, type, workspace_id }`
2213 - `workspace_id: string`
2214 
2215 - `BetaWebhookDeploymentArchivedEventData object`
25452216 
25462217 - `id: string`
25472218 
from line 2222
25512222 
25522223 - `type: "deployment.archived"`
25532224 
2554 - `"deployment.archived"`
2555 
2556 - `workspace_id: string`
2557 
2558 - `BetaWebhookDeploymentRunStartedEventData object { id, organization_id, type, workspace_id }`
2225 - `workspace_id: string`
2226 
2227 - `BetaWebhookDeploymentRunStartedEventData object`
25592228 
25602229 - `id: string`
25612230 
from line 2234
25652234 
25662235 - `type: "deployment_run.started"`
25672236 
2568 - `"deployment_run.started"`
2569 
2570 - `workspace_id: string`
2571 
2572 - `BetaWebhookDeploymentDeletedEventData object { id, organization_id, type, workspace_id }`
2237 - `workspace_id: string`
2238 
2239 - `BetaWebhookDeploymentDeletedEventData object`
25732240 
25742241 - `id: string`
25752242 
from line 2246
25792246 
25802247 - `type: "deployment.deleted"`
25812248 
2582 - `"deployment.deleted"`
2583 
2584 - `workspace_id: string`
2585 
2586 - `BetaWebhookDeploymentRunSucceededEventData object { id, organization_id, type, workspace_id }`
2249 - `workspace_id: string`
2250 
2251 - `BetaWebhookDeploymentRunSucceededEventData object`
25872252 
25882253 - `id: string`
25892254 
from line 2258
25932258 
25942259 - `type: "deployment_run.succeeded"`
25952260 
2596 - `"deployment_run.succeeded"`
2597 
2598 - `workspace_id: string`
2599 
2600 - `BetaWebhookEnvironmentCreatedEventData object { id, organization_id, type, workspace_id }`
2261 - `workspace_id: string`
2262 
2263 - `BetaWebhookEnvironmentCreatedEventData object`
26012264 
26022265 - `id: string`
26032266 
from line 2270
26072270 
26082271 - `type: "environment.created"`
26092272 
2610 - `"environment.created"`
2611 
2612 - `workspace_id: string`
2613 
2614 - `BetaWebhookEnvironmentUpdatedEventData object { id, organization_id, type, workspace_id }`
2273 - `workspace_id: string`
2274 
2275 - `BetaWebhookEnvironmentUpdatedEventData object`
26152276 
26162277 - `id: string`
26172278 
from line 2282
26212282 
26222283 - `type: "environment.updated"`
26232284 
2624 - `"environment.updated"`
2625 
2626 - `workspace_id: string`
2627 
2628 - `BetaWebhookEnvironmentArchivedEventData object { id, organization_id, type, workspace_id }`
2285 - `workspace_id: string`
2286 
2287 - `BetaWebhookEnvironmentArchivedEventData object`
26292288 
26302289 - `id: string`
26312290 
from line 2294
26352294 
26362295 - `type: "environment.archived"`
26372296 
2638 - `"environment.archived"`
2639 
2640 - `workspace_id: string`
2641 
2642 - `BetaWebhookEnvironmentDeletedEventData object { id, organization_id, type, workspace_id }`
2297 - `workspace_id: string`
2298 
2299 - `BetaWebhookEnvironmentDeletedEventData object`
26432300 
26442301 - `id: string`
26452302 
from line 2306
26492306 
26502307 - `type: "environment.deleted"`
26512308 
2652 - `"environment.deleted"`
2653 
2654 - `workspace_id: string`
2655 
2656 - `BetaWebhookMemoryStoreCreatedEventData object { id, organization_id, type, workspace_id }`
2309 - `workspace_id: string`
2310 
2311 - `BetaWebhookMemoryStoreCreatedEventData object`
26572312 
26582313 - `id: string`
26592314 
from line 2318
26632318 
26642319 - `type: "memory_store.created"`
26652320 
2666 - `"memory_store.created"`
2667 
2668 - `workspace_id: string`
2669 
2670 - `BetaWebhookMemoryStoreArchivedEventData object { id, organization_id, type, workspace_id }`
2321 - `workspace_id: string`
2322 
2323 - `BetaWebhookMemoryStoreArchivedEventData object`
26712324 
26722325 - `id: string`
26732326 
from line 2330
26772330 
26782331 - `type: "memory_store.archived"`
26792332 
2680 - `"memory_store.archived"`
2681 
2682 - `workspace_id: string`
2683 
2684 - `BetaWebhookMemoryStoreDeletedEventData object { id, organization_id, type, workspace_id }`
2333 - `workspace_id: string`
2334 
2335 - `BetaWebhookMemoryStoreDeletedEventData object`
26852336 
26862337 - `id: string`
26872338 
from line 2342
26912342 
26922343 - `type: "memory_store.deleted"`
26932344 
2694 - `"memory_store.deleted"`
2695 
2696 - `workspace_id: string`
2697 
2698 - `BetaWebhookSessionBudgetReachedEventData object { id, organization_id, type, workspace_id }`
2345 - `workspace_id: string`
2346 
2347 - `BetaWebhookSessionBudgetReachedEventData object`
26992348 
27002349 - `id: string`
27012350 
from line 2354
27052354 
27062355 - `type: "session.budget_reached"`
27072356 
2708 - `"session.budget_reached"`
2709 
27102357 - `workspace_id: string`
27112358 
27122359 - `type: "event"`
27132360 
27142361 Object type. Always `event` for webhook payloads.
2715 
2716 - `"event"`
27172362 

api/completions Changed · +30 / -15 lines

### Headers ### Body parameters #### Response (200) ## Domain types ### Header Parameters ### Body Parameters #### Response ## Domain Types

from line 1
1---
2title: Completions
3url: https://platform.claude.com/docs/en/api/completions
4---
5 
61# Completions
72 
83## Create a Text Completion
94 
10**post** `/v1/complete`
5**POST** `/v1/complete`
116 
127[Legacy] Create a Text Completion.
138 
from line 10
1510 
1611Future models and features will not be compatible with Text Completions. See our [migration guide](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) for guidance in migrating from Text Completions to Messages.
1712 
18### Header Parameters
13### Headers
1914 
2015- `"anthropic-beta": optional array of AnthropicBeta`
2116 
from line 88
9388 
9489 - `"mid-conversation-tool-changes-2026-07-01"`
9590 
96### Body Parameters
91### Body parameters
9792 
9893- `max_tokens_to_sample: number`
9994 
from line 96
10196 
10297 Note that our models may stop _before_ reaching this maximum. This parameter only specifies the absolute maximum number of tokens to generate.
10398 
99 minimum: 1
100 
104101- `model: Model`
105102 
106103 The model that will complete your prompt.
from line 192
195192 
196193 See [prompt validation](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) and our guide to [prompt design](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview) for more details.
197194 
195 minLength: 1
196 
198197- `metadata: optional Metadata`
199198 
200199 An object describing metadata about the request.
from line 204
205204 
206205 This should be a uuid, hash value, or other opaque identifier. Anthropic may use this id to help detect abuse. Do not include any identifying information such as name, email address, or phone number.
207206 
207 maxLength: 512
208 
208209- `stop_sequences: optional array of string`
209210 
210211 Sequences that will cause the model to stop generating.
from line 222
221222 
222223- `temperature: optional number`
223224 
225 **Deprecated**: Deprecated. Models released after Claude Opus 4.6 do not support setting temperature. A value of 1.0 of will be accepted for backwards compatibility, all other values will be rejected with a 400 error.
226 
224227 Amount of randomness injected into the response.
225228 
226229 Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0` for analytical / multiple choice, and closer to `1.0` for creative and generative tasks.
from line 230
227230 
228231 Note that even with `temperature` of `0.0`, the results will not be fully deterministic.
229232 
233 maximum: 1, minimum: 0
234 
230235- `top_k: optional number`
231236 
237 **Deprecated**: Deprecated. Models released after Claude Opus 4.6 do not accept top_k; any value will be rejected with a 400 error.
238 
232239 Only sample from the top K options for each subsequent token.
233240 
234241 Used to remove "long tail" low probability responses. [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
from line 242
235242 
236243 Recommended for advanced use cases only.
237244 
245 minimum: 0
246 
238247- `top_p: optional number`
239248 
249 **Deprecated**: Deprecated. Models released after Claude Opus 4.6 do not support setting top_p. A value >= 0.99 will be accepted for backwards compatibility, all other values will be rejected with a 400 error.
250 
240251 Use nucleus sampling.
241252 
242253 In nucleus sampling, we compute the cumulative distribution over all the options for each subsequent token in decreasing probability order and cut it off once it reaches a particular probability specified by `top_p`.
from line 254
243254 
244255 Recommended for advanced use cases only.
245256 
257 maximum: 1, minimum: 0
258 
246259### Returns
247260 
248- `Completion object { id, completion, model, 2 more }`
261- `Completion object`
249262 
250263 - `id: string`
251264 
from line 359
346359 
347360 For Text Completions, this is always `"completion"`.
348361 
349 - `"completion"`
362 default: completion
350363 
364- `Completion object`
365 
351366### Example
352367 
353```http
368```bash
354369curl https://api.anthropic.com/v1/complete \
355370 -H 'Content-Type: application/json' \
356371 -H 'anthropic-version: 2023-06-01' \
from line 381
366381 }'
367382```
368383 
369#### Response
384#### Response (200)
370385 
371386```json
372387{
from line 393
378393}
379394```
380395 
381## Domain Types
396## Domain types
382397 
383398### Completion
384399 
385- `Completion object { id, completion, model, 2 more }`
400- `Completion object`
386401 
387402 - `id: string`
388403 
from line 498
483498 
484499 For Text Completions, this is always `"completion"`.
485500 
486 - `"completion"`
501 default: completion
487502 

api/completions/create Changed · +34 / -19 lines

# Create a Text Completion ## Headers ## Body parameters ## Returns ## Example ### Response (200) ## Create a Text Completion ### Header Parameters ### Body Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Create a Text Completion
3url: https://platform.claude.com/docs/en/api/completions/create
4---
1# Create a Text Completion
52 
6## Create a Text Completion
3**POST** `/v1/complete`
74 
8**post** `/v1/complete`
9 
105[Legacy] Create a Text Completion.
116 
127The Text Completions API is a legacy API. We recommend using the [Messages API](https://platform.claude.com/docs/en/api/messages) going forward.
from line 8
138 
149Future models and features will not be compatible with Text Completions. See our [migration guide](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) for guidance in migrating from Text Completions to Messages.
1510 
16### Header Parameters
11## Headers
1712 
1813- `"anthropic-beta": optional array of AnthropicBeta`
1914 
from line 86
9186 
9287 - `"mid-conversation-tool-changes-2026-07-01"`
9388 
94### Body Parameters
89## Body parameters
9590 
9691- `max_tokens_to_sample: number`
9792 
from line 94
9994 
10095 Note that our models may stop _before_ reaching this maximum. This parameter only specifies the absolute maximum number of tokens to generate.
10196 
97 minimum: 1
98 
10299- `model: Model`
103100 
104101 The model that will complete your prompt.
from line 190
193190 
194191 See [prompt validation](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) and our guide to [prompt design](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview) for more details.
195192 
193 minLength: 1
194 
196195- `metadata: optional Metadata`
197196 
198197 An object describing metadata about the request.
from line 202
203202 
204203 This should be a uuid, hash value, or other opaque identifier. Anthropic may use this id to help detect abuse. Do not include any identifying information such as name, email address, or phone number.
205204 
205 maxLength: 512
206 
206207- `stop_sequences: optional array of string`
207208 
208209 Sequences that will cause the model to stop generating.
from line 220
219220 
220221- `temperature: optional number`
221222 
223 **Deprecated**: Deprecated. Models released after Claude Opus 4.6 do not support setting temperature. A value of 1.0 of will be accepted for backwards compatibility, all other values will be rejected with a 400 error.
224 
222225 Amount of randomness injected into the response.
223226 
224227 Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0` for analytical / multiple choice, and closer to `1.0` for creative and generative tasks.
from line 228
225228 
226229 Note that even with `temperature` of `0.0`, the results will not be fully deterministic.
227230 
231 maximum: 1, minimum: 0
232 
228233- `top_k: optional number`
229234 
235 **Deprecated**: Deprecated. Models released after Claude Opus 4.6 do not accept top_k; any value will be rejected with a 400 error.
236 
230237 Only sample from the top K options for each subsequent token.
231238 
232239 Used to remove "long tail" low probability responses. [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
from line 240
233240 
234241 Recommended for advanced use cases only.
235242 
243 minimum: 0
244 
236245- `top_p: optional number`
237246 
247 **Deprecated**: Deprecated. Models released after Claude Opus 4.6 do not support setting top_p. A value >= 0.99 will be accepted for backwards compatibility, all other values will be rejected with a 400 error.
248 
238249 Use nucleus sampling.
239250 
240251 In nucleus sampling, we compute the cumulative distribution over all the options for each subsequent token in decreasing probability order and cut it off once it reaches a particular probability specified by `top_p`.
from line 252
241252 
242253 Recommended for advanced use cases only.
243254 
244### Returns
255 maximum: 1, minimum: 0
245256 
246- `Completion object { id, completion, model, 2 more }`
257## Returns
247258 
259- `Completion object`
260 
248261 - `id: string`
249262 
250263 Unique object identifier.
from line 357
344357 
345358 For Text Completions, this is always `"completion"`.
346359 
347 - `"completion"`
360 default: completion
348361 
349### Example
362- `Completion object`
350363 
351```http
364## Example
365 
366```bash
352367curl https://api.anthropic.com/v1/complete \
353368 -H 'Content-Type: application/json' \
354369 -H 'anthropic-version: 2023-06-01' \
from line 379
364379 }'
365380```
366381 
367#### Response
382### Response (200)
368383 
369384```json
370385{

api/compliance Changed · +29812 / -143453 lines

## Compliance API › Activities ### Query compliance activities #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Organizations ### List organizations #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Organizations › Users ### List organization users #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Organizations › Roles ### List Compliance Roles #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Get Compliance Role #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Organizations › Roles › Permissions ### List Compliance Role Permissions #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Organizations › Settings ### Get effective organization settings #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Groups ### List Compliance Groups #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Get Compliance Group #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Groups › Members ### List Compliance Group Members #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Chats ### List chats #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete chat #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Chats › Messages ### Get chat messages #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Chats › Files ### Get file metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete file #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Download file content #### Path parameters #### Headers #### Example ## Compliance API › Apps › Chats › Generated Files ### Get Claude-generated file metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Download a Claude-generated file #### Path parameters #### Headers #### Example ## Compliance API › Apps › Projects ### List projects #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Get project details #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete project #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Projects › Attachments ### List project attachments #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Projects › Collaborators ### List project collaborators #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Projects › Documents ### Get project document content #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Get project document metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete project document #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Artifacts ### Get artifact metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Download artifact content #### Path parameters #### Headers #### Example ## Compliance API › Apps › Sessions › Local ### List local sessions #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Retrieve a local session #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Sessions › Local › Messages ### Retrieve local session messages #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Sessions › Remote ### List remote sessions #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Apps › Sessions › Remote › Messages ### Retrieve remote session messages #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Compliance API › Code › Artifacts ### List Code Artifacts #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Download Code Artifact Version Content #### Path parameters #### Headers #### Example ### Delete Code Artifact #### Path parameters #### Headers #### Returns #### Example ##### Response (200) # Activities ## Query compliance activities ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Activity List Response # Organizations ## List organizations ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Organization List Response # Users ## List organization users ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### User List Response # Roles ## List Compliance Roles ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Get Compliance Role ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Role List Response ### Role Retrieve Response # Permissions ## List Compliance Role Permissions ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Permission List Response # Settings ## Get effective organization settings ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Setting Retrieve Response # Groups ## List Compliance Groups ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Get Compliance Group ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Group List Response ### Group Retrieve Response # Members ## List Compliance Group Members ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Member List Response # Apps # Chats ## List chats ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Delete chat ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Chat List Response ### Chat Delete Response # Messages ## Get chat messages ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Message List Response # Files ## Get file metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Delete file ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Download file content ### Path Parameters ### Header Parameters ### Example ## Domain Types ### File Retrieve Response ### File Delete Response # Generated Files ## Get Claude-generated file metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Download a Claude-generated file ### Path Parameters ### Header Parameters ### Example ## Domain Types ### Generated File Retrieve Response # Projects ## List projects ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Get project details ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Delete project ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Project List Response ### Project Retrieve Response ### Project Delete Response # Attachments ## List project attachments ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Attachment List Response # Collaborators ## List project collaborators ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Collaborator List Response # Documents ## Get project document content ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Get project document metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Delete project document ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Document Retrieve Response ### Document Metadata Response ### Document Delete Response # Artifacts ## Get artifact metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Download artifact content ### Path Parameters ### Header Parameters ### Example ## Domain Types ### Artifact Retrieve Response # Sessions # Local ## List local sessions ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Retrieve a local session ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Local List Response ### Local Retrieve Response # Messages ## Retrieve local session messages ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Message List Response # Remote ## List remote sessions ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Remote List Response # Messages ## Retrieve remote session messages ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Message List Response # Code # Artifacts ## List Code Artifacts ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Download Code Artifact Version Content ### Path Parameters ### Header Parameters ### Example ## Delete Code Artifact ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Artifact List Response ### Artifact Delete Response

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

Nothing in the body moved in this read. What changed is above.

api/compliance/activities Changed · +57151 / -49454 lines

### Query parameters ### Headers #### Response (200) ## Domain types ### Query Parameters ### Header Parameters #### Response ## Domain Types

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

Nothing in the body moved in this read. What changed is above.

api/compliance/activities/list Changed · +28591 / -24738 lines

# Query compliance activities ## Query parameters ## Headers ## Returns ## Example ### Response (200) ## Query compliance activities ### Query Parameters ### Header Parameters ### Returns ### Example #### Response

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

Nothing in the body moved in this read. What changed is above.

api/compliance/apps Changed · +916 / -2015 lines

## Apps › Chats ### List chats #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete chat #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Chats › Messages ### Get chat messages #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Chats › Files ### Get file metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete file #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Download file content #### Path parameters #### Headers #### Example ## Apps › Chats › Generated Files ### Get Claude-generated file metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Download a Claude-generated file #### Path parameters #### Headers #### Example ## Apps › Projects ### List projects #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Get project details #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete project #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Projects › Attachments ### List project attachments #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Projects › Collaborators ### List project collaborators #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Projects › Documents ### Get project document content #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Get project document metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete project document #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Artifacts ### Get artifact metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Download artifact content #### Path parameters #### Headers #### Example ## Apps › Sessions › Local ### List local sessions #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ### Retrieve a local session #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Sessions › Local › Messages ### Retrieve local session messages #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Sessions › Remote ### List remote sessions #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Apps › Sessions › Remote › Messages ### Retrieve remote session messages #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) # Chats ## List chats ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Delete chat ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Chat List Response ### Chat Delete Response # Messages ## Get chat messages ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Message List Response # Files ## Get file metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Delete file ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Download file content ### Path Parameters ### Header Parameters ### Example ## Domain Types ### File Retrieve Response ### File Delete Response # Generated Files ## Get Claude-generated file metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Download a Claude-generated file ### Path Parameters ### Header Parameters ### Example ## Domain Types ### Generated File Retrieve Response # Projects ## List projects ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Get project details ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Delete project ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Project List Response ### Project Retrieve Response ### Project Delete Response # Attachments ## List project attachments ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Attachment List Response # Collaborators ## List project collaborators ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Collaborator List Response # Documents ## Get project document content ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Get project document metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Delete project document ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Document Retrieve Response ### Document Metadata Response ### Document Delete Response # Artifacts ## Get artifact metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Download artifact content ### Path Parameters ### Header Parameters ### Example ## Domain Types ### Artifact Retrieve Response # Sessions # Local ## List local sessions ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Retrieve a local session ### Path Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Local List Response ### Local Retrieve Response # Messages ## Retrieve local session messages ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Message List Response # Remote ## List remote sessions ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Remote List Response # Messages ## Retrieve remote session messages ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response ## Domain Types ### Message List Response

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 1
1---
2title: Apps
3url: https://platform.claude.com/docs/en/api/compliance/apps
4---
5 
61# Apps
72 
8# Chats
9 
10## List chats
11 
12**get** `/v1/compliance/apps/chats`
3## Apps › Chats
4 
5### List chats
6 
7**GET** `/v1/compliance/apps/chats`
138 
149Lists chat metadata with filtering capabilities for targeted
1510compliance review. Results are sorted chronologically (time ascending)
from line 19
2419no time filter) with the default `order_by`. `user_ids[]` with
2520`order_by=updated_at` is already rejected.
2621 
27### Query Parameters
22#### Query parameters
2823 
2924- `after_id: optional string`
3025 
from line 29
3429 
3530 Pagination cursor for retrieving the previous page of results. To paginate, pass the `first_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
3631 
37- `created_at: optional object { gt, gte, lt, lte }`
32- `created_at: optional object`
3833 
3934 - `gt: optional string`
4035 
4136 Filter chats created after this time (RFC 3339 format)
4237 
38 format: date-time
39 
4340 - `gte: optional string`
4441 
4542 Filter chats created at or after this time (RFC 3339 format)
4643 
44 format: date-time
45 
4746 - `lt: optional string`
4847 
4948 Filter chats created before this time (RFC 3339 format)
5049 
50 format: date-time
51 
5152 - `lte: optional string`
5253 
5354 Filter chats created at or before this time (RFC 3339 format)
5455 
56 format: date-time
57 
5558- `limit: optional number`
5659 
5760 Maximum results (default: 100, max: 1000)
5861 
62 default: 100, maximum: 1000, minimum: 1
63 
5964- `order_by: optional "created_at" or "updated_at"`
6065 
6166 Sort key for results. `created_at` (default) sorts by chat creation time. `updated_at` sorts by last update time and is only supported for org-wide queries (omit user_ids[]). For org-wide queries, any time filter must match the sort key: `created_at.*` filters require `order_by=created_at`, and `updated_at.*` filters require `order_by=updated_at`.
6267 
68 default: created_at
69 
6370 - `"created_at"`
6471 
6572 - `"updated_at"`
from line 79
7279 
7380 Filter by project IDs (accepts `claude_proj_...`). Enumerate IDs via `GET /v1/compliance/apps/projects`. Requires user_ids[]; not supported for org-wide queries.
7481 
75- `updated_at: optional object { gt, gte, lt, lte }`
82- `updated_at: optional object`
7683 
7784 - `gt: optional string`
7885 
7986 Filter chats updated after this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
8087 
88 format: date-time
89 
8190 - `gte: optional string`
8291 
8392 Filter chats updated at or after this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
8493 
94 format: date-time
95 
8596 - `lt: optional string`
8697 
8798 Filter chats updated before this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
8899 
100 format: date-time
101 
89102 - `lte: optional string`
90103 
91104 Filter chats updated at or before this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
92105 
106 format: date-time
107 
93108- `user_ids: optional array of string`
94109 
95110 Filter to chats created by specific users (max 10 per request). Omit for an org-wide query. Enumerate IDs via `GET /v1/compliance/organizations/{org_uuid}/users`. Deprecated combination: passing `user_ids[]` together with any `updated_at.*` filter is deprecated and will be rejected after 2026-09-22. For `updated_at`-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
96111 
97### Header Parameters
112 maxItems: 10
113 
114#### Headers
98115 
99116- `"x-api-key": optional string`
100117 
101### Returns
102 
103- `data: array of object { id, created_at, deleted_at, 8 more }`
118#### Returns
119 
120- `data: array of object`
104121 
105122 List of chat metadata sorted chronologically by the request's `order_by` key (default `created_at`), tie break by id
106123 
from line 129
112129 
113130 Creation timestamp
114131 
132 format: date-time
133 
115134 - `deleted_at: string or null`
116135 
117136 Deletion timestamp if deleted
118137 
138 format: date-time
139 
119140 - `href: string`
120141 
121142 URL to view this chat in claude.ai
from line 149
128149 
129150 Chat name/title
130151 
152 - `organization_uuid: string`
153 
154 Organization UUID this chat belongs to
155 
156 - `project_id: string or null`
157 
158 Project ID this chat belongs to
159 
160 - `updated_at: string`
161 
162 Last update timestamp
163 
164 format: date-time
165 
166 - `user: object or null`
167 
168 User information for compliance responses.
169 
170 - `id: string`
171 
172 User identifier
173 
174 - `email_address: string`
175 
176 User's email address
177 
131178 - `organization_id: string`
132179 
180 **Deprecated**
181 
133182 Organization ID this chat belongs to
134183 
135 - `organization_uuid: string`
136 
137 Organization UUID this chat belongs to
138 
139 - `project_id: string or null`
140 
141 Project ID this chat belongs to
142 
143 - `updated_at: string`
144 
145 Last update timestamp
146 
147 - `user: object { id, email_address } or null`
148 
149 User information for compliance responses.
150 
151 - `id: string`
152 
153 User identifier
154 
155 - `email_address: string`
156 
157 User's email address
158 
159184- `first_id: string or null`
160185 
161186 Opaque pagination cursor for the first chat in the current result set. Pass as `before_id` on the next request to page backwards. Backward pagination is only supported for per-user queries (`user_ids[]` set); org-wide queries do not accept `before_id`. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
from line 193
168193 
169194 Opaque pagination cursor for the last chat in the current result set. Pass as `after_id` on the next request to page forwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
170195 
171### Example
172 
173```http
196#### Example
197 
198```bash
174199curl https://api.anthropic.com/v1/compliance/apps/chats \
175200 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
176201```
177202 
178#### Response
203##### Response (200)
179204 
180205```json
181206{
from line 227
202227}
203228```
204229 
205## Delete chat
206 
207**delete** `/v1/compliance/apps/chats/{claude_chat_id}`
230### Delete chat
231 
232**DELETE** `/v1/compliance/apps/chats/{claude_chat_id}`
208233 
209234Permanently deletes a chat and all associated messages and
210235files. This is a destructive operation that cannot be undone.
211236 
212### Path Parameters
237#### Path parameters
213238 
214239- `claude_chat_id: string`
215240 
216241 The chat ID (tagged ID, e.g., claude_chat_abc123)
217242 
218### Header Parameters
243#### Headers
219244 
220245- `"x-api-key": optional string`
221246 
222### Returns
247#### Returns
223248 
224249- `id: string`
225250 
from line 254
229254 
230255 Constant string confirming deletion
231256 
232 - `"claude_chat_deleted"`
233 
234### Example
235 
236```http
257 default: claude_chat_deleted
258 
259#### Example
260 
261```bash
237262curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID \
238263 -X DELETE \
239264 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
240265```
241266 
242#### Response
267##### Response (200)
243268 
244269```json
245270{
from line 273
248273}
249274```
250275 
251## Domain Types
252 
253### Chat List Response
254 
255- `ChatListResponse object { id, created_at, deleted_at, 8 more }`
256 
257 Chat metadata for listing chats (without messages).
276## Apps › Chats › Messages
277 
278### Get chat messages
279 
280**GET** `/v1/compliance/apps/chats/{claude_chat_id}/messages`
281 
282Retrieves message history and file metadata for a specific chat.
283 
284#### Path parameters
285 
286- `claude_chat_id: string`
287 
288 The chat ID (tagged ID, e.g., claude_chat_abc123)
289 
290#### Query parameters
291 
292- `after_id: optional string`
293 
294 Pagination cursor for retrieving the next page of results. To paginate, pass the `last_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
295 
296- `before_id: optional string`
297 
298 Pagination cursor for retrieving the previous page of results. To paginate, pass the `first_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
299 
300- `created_at: optional object`
301 
302 - `gt: optional string`
303 
304 Filter messages created after this time (RFC 3339 format)
305 
306 format: date-time
307 
308 - `gte: optional string`
309 
310 Filter messages created at or after this time (RFC 3339 format)
311 
312 format: date-time
313 
314 - `lt: optional string`
315 
316 Filter messages created before this time (RFC 3339 format)
317 
318 format: date-time
319 
320 - `lte: optional string`
321 
322 Filter messages created at or before this time (RFC 3339 format)
323 
324 format: date-time
325 
326- `limit: optional number`
327 
328 Maximum results (max: 1000). When omitted, the full result set is returned in one response.
329 
330 maximum: 1000, minimum: 1
331 
332- `order: optional "asc" or "desc"`
333 
334 Sort direction for messages within the response. `asc` (the default) returns oldest-first; `desc` returns newest-first.
335 
336 default: asc
337 
338 - `"asc"`
339 
340 - `"desc"`
341 
342- `tool_result_max_chars: optional number`
343 
344 Maximum characters returned per tool-result text item. Items longer than this are shortened and the block's `truncated` field is set. Pass -1 to disable the limit.
345 
346 default: 10000, minimum: -1
347 
348- `tool_use_input_max_chars: optional number`
349 
350 Maximum characters of JSON-encoded tool input returned per tool_use block. Inputs longer than this are shortened and the block's `truncated` field is set. Pass -1 to disable the limit.
351 
352 default: 10000, minimum: -1
353 
354- `updated_at: optional object`
355 
356 - `gt: optional string`
357 
358 Filter messages updated after this time (RFC 3339 format)
359 
360 format: date-time
361 
362 - `gte: optional string`
363 
364 Filter messages updated at or after this time (RFC 3339 format)
365 
366 format: date-time
367 
368 - `lt: optional string`
369 
370 Filter messages updated before this time (RFC 3339 format)
371 
372 format: date-time
373 
374 - `lte: optional string`
375 
376 Filter messages updated at or before this time (RFC 3339 format)
377 
378 format: date-time
379 
380#### Headers
381 
382- `"x-api-key": optional string`
383 
384#### Returns
385 
386- `id: string`
387 
388 Chat ID
389 
390- `chat_messages: array of object`
391 
392 Array of chat messages in order of created_at
258393 
259394 - `id: string`
260395 
261 Chat ID
396 Unique identifier for the message e.g. 'claude_chat_msg_abcd1234'
397 
398 - `artifacts: array of object or null`
399 
400 Versioned documents generated or updated by the assistant in this message. Download via `GET /v1/compliance/apps/artifacts/{artifact_version_id}/content`.
401 
402 - `id: string`
403 
404 Artifact ID e.g. 'claude_artifact_abc123'
405 
406 - `artifact_type: string or null`
407 
408 MIME-like artifact type e.g. 'application/vnd.ant.code'
409 
410 - `title: string or null`
411 
412 Artifact title
413 
414 - `version_id: string`
415 
416 Artifact version ID e.g. 'claude_artifact_version_abc123'
417 
418 - `content: array of object or object or object`
419 
420 Content blocks within the message
421 
422 - `Text object`
423 
424 Text content block.
425 
426 - `text: string`
427 
428 Text content from human or assistant
429 
430 - `thinking_redacted: boolean`
431 
432 True when content enclosed in the assistant's internal-reasoning tags (or the tag markup itself) was removed from `text` during export. Removal never occurs with this field false. Always false on human messages, whose text is exported verbatim.
433 
434 default: false
435 
436 - `truncated: boolean`
437 
438 True when `text` was shortened by the server's fixed per-string bound (1 MiB). Always false on chat text blocks.
439 
440 default: false
441 
442 - `type: "text"`
443 
444 default: text
445 
446 - `ToolUse object`
447 
448 Tool invocation requested by the assistant.
449 
450 - `id: string or null`
451 
452 Tool-use ID, e.g. 'toolu_01AbC...'
453 
454 - `input: string`
455 
456 Arguments passed to the tool, as a JSON-encoded string. May be shortened — see the `truncated` field
457 
458 - `integration_name: string or null`
459 
460 Name of the integration that provides this tool, when applicable
461 
462 - `mcp_server_url: string or null`
463 
464 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
465 
466 - `name: string`
467 
468 Name of the tool invoked
469 
470 - `truncated: boolean`
471 
472 True when `input` was shortened. Pass the endpoint's tool-use input max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
473 
474 default: false
475 
476 - `type: "tool_use"`
477 
478 default: tool_use
479 
480 - `ToolResult object`
481 
482 Result returned by a tool invocation.
483 
484 - `content: array of object`
485 
486 Text content returned by the tool. Generated files are surfaced via the message's `generated_files` list; other non-text item types (including images and links) are omitted.
487 
488 - `text: string`
489 
490 Text returned by the tool
491 
492 - `type: "text"`
493 
494 default: text
495 
496 - `integration_name: string or null`
497 
498 Name of the integration that provides this tool, when applicable
499 
500 - `is_error: boolean`
501 
502 True when the tool reported an error
503 
504 - `mcp_server_url: string or null`
505 
506 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
507 
508 - `name: string`
509 
510 Name of the tool that produced this result
511 
512 - `tool_use_id: string or null`
513 
514 ID of the tool_use block this result responds to
515 
516 - `truncated: boolean`
517 
518 True when one or more text items in `content` were shortened. Pass the endpoint's tool-result max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
519 
520 default: false
521 
522 - `type: "tool_result"`
523 
524 default: tool_result
262525 
263526 - `created_at: string`
264527 
265 Creation timestamp
266 
267 - `deleted_at: string or null`
268 
269 Deletion timestamp if deleted
270 
271 - `href: string`
272 
273 URL to view this chat in claude.ai
274 
275 - `model: string or null`
276 
277 Model selected for this chat (e.g. 'claude-opus-5'). May be null for legacy chats that never had a model recorded.
278 
279 - `name: string`
280 
281 Chat name/title
282 
283 - `organization_id: string`
284 
285 Organization ID this chat belongs to
286 
287 - `organization_uuid: string`
288 
289 Organization UUID this chat belongs to
290 
291 - `project_id: string or null`
292 
293 Project ID this chat belongs to
294 
295 - `updated_at: string`
296 
297 Last update timestamp
298 
299 - `user: object { id, email_address } or null`
300 
301 User information for compliance responses.
528 Message creation timestamp - For human: when they sent the message, For assistant: when it completed the last content block
529 
530 format: date-time
531 
532 - `files: array of object or null`
533 
534 Binary file attachments uploaded by the user. Download via `GET /v1/compliance/apps/chats/files/{claude_file_id}/content`.
302535 
303536 - `id: string`
304537 
305 User identifier
306 
307 - `email_address: string`
308 
309 User's email address
310 
311### Chat Delete Response
312 
313- `ChatDeleteResponse object { id, type }`
314 
315 Response for deleting a Claude chat.
538 File ID
539 
540 - `created_at: string`
541 
542 File creation timestamp
543 
544 format: date-time
545 
546 - `filename: string`
547 
548 Display name of the file
549 
550 - `md5: string or null`
551 
552 Lowercase hex MD5 of the file's preferred downloadable variant, as recorded at upload time. Null when no stored hash is available.
553 
554 - `mime_type: string or null`
555 
556 MIME type of the file's preferred downloadable variant (e.g. 'application/pdf')
557 
558 - `size_bytes: number or null`
559 
560 Size in bytes of the file's preferred downloadable variant, if known. Null for older files uploaded before size was recorded.
561 
562 - `generated_files: array of object or null`
563 
564 Downloadable files the assistant created via tool use (e.g. PDF, spreadsheet, slide deck). Distinct from `files`, which are uploads attached to the message. Download via `GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`.
565 
566 - `id: string`
567 
568 Opaque generated-file id, e.g. 'claude_gen_file_abc123'. Treat as an opaque string; the encoding may change without notice.
569 
570 - `filename: string`
571 
572 Display name of the generated file
573 
574 - `md5: string or null`
575 
576 Lowercase hex MD5 of the generated file, when available. Null when no stored hash is available.
577 
578 - `mime_type: string or null`
579 
580 MIME type reported by the tool that produced the file
581 
582 - `size_bytes: number or null`
583 
584 Size in bytes of the generated file, when available. Null when the file has expired or size is not recorded.
585 
586 - `role: "assistant" or "user"`
587 
588 Message sender (user or assistant)
589 
590 - `"assistant"`
591 
592 - `"user"`
593 
594- `created_at: string`
595 
596 Creation timestamp
597 
598 format: date-time
599 
600- `deleted_at: string or null`
601 
602 Deletion timestamp if deleted
603 
604 format: date-time
605 
606- `first_id: string or null`
607 
608 Opaque pagination cursor for the first message in the current result set. Pass as `before_id` on the next request to page backwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
609 
610- `has_more: boolean`
611 
612 Whether more chat messages exist beyond the current result set. Use `last_id` as `after_id` in a follow-up request to page forward.
613 
614 default: false
615 
616- `href: string`
617 
618 URL to view this chat in claude.ai
619 
620- `last_id: string or null`
621 
622 Opaque pagination cursor for the last message in the current result set. Pass as `after_id` on the next request to page forwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
623 
624- `model: string or null`
625 
626 Model selected for this chat (e.g. 'claude-opus-5'). May be null for legacy chats that never had a model recorded.
627 
628- `name: string`
629 
630 Chat name
631 
632- `organization_uuid: string`
633 
634 Organization UUID this chat belongs to
635 
636- `project_id: string or null`
637 
638 Project ID this chat belongs to
639 
640- `updated_at: string`
641 
642 Last update timestamp
643 
644 format: date-time
645 
646- `user: object or null`
647 
648 User information for compliance responses.
316649 
317650 - `id: string`
318651 
319 The ID of the Claude chat that was deleted
320 
321 - `type: optional "claude_chat_deleted"`
322 
323 Constant string confirming deletion
324 
325 - `"claude_chat_deleted"`
326 
327# Messages
328 
329## Get chat messages
330 
331**get** `/v1/compliance/apps/chats/{claude_chat_id}/messages`
332 
333Retrieves message history and file metadata for a specific chat.
334 
335### Path Parameters
336 
337- `claude_chat_id: string`
338 
339 The chat ID (tagged ID, e.g., claude_chat_abc123)
340 
341### Query Parameters
342 
343- `after_id: optional string`
344 
345 Pagination cursor for retrieving the next page of results. To paginate, pass the `last_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
346 
347- `before_id: optional string`
348 
349 Pagination cursor for retrieving the previous page of results. To paginate, pass the `first_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
350 
351- `created_at: optional object { gt, gte, lt, lte }`
352 
353 - `gt: optional string`
354 
355 Filter messages created after this time (RFC 3339 format)
356 
357 - `gte: optional string`
358 
359 Filter messages created at or after this time (RFC 3339 format)
360 
361 - `lt: optional string`
362 
363 Filter messages created before this time (RFC 3339 format)
364 
365 - `lte: optional string`
366 
367 Filter messages created at or before this time (RFC 3339 format)
368 
369- `limit: optional number`
370 
371 Maximum results (max: 1000). When omitted, the full result set is returned in one response.
372 
373- `order: optional "asc" or "desc"`
374 
375 Sort direction for messages within the response. `asc` (the default) returns oldest-first; `desc` returns newest-first.
376 
377 - `"asc"`
378 
379 - `"desc"`
380 
381- `tool_result_max_chars: optional number`
382 
383 Maximum characters returned per tool-result text item. Items longer than this are shortened and the block's `truncated` field is set. Pass -1 to disable the limit.
384 
385- `tool_use_input_max_chars: optional number`
386 
387 Maximum characters of JSON-encoded tool input returned per tool_use block. Inputs longer than this are shortened and the block's `truncated` field is set. Pass -1 to disable the limit.
388 
389- `updated_at: optional object { gt, gte, lt, lte }`
390 
391 - `gt: optional string`
392 
393 Filter messages updated after this time (RFC 3339 format)
394 
395 - `gte: optional string`
396 
397 Filter messages updated at or after this time (RFC 3339 format)
398 
399 - `lt: optional string`
400 
401 Filter messages updated before this time (RFC 3339 format)
402 
403 - `lte: optional string`
404 
405 Filter messages updated at or before this time (RFC 3339 format)
406 
407### Header Parameters
408 
409- `"x-api-key": optional string`
410 
411### Returns
412 
413- `id: string`
414 
415 Chat ID
416 
417- `chat_messages: array of object { id, artifacts, content, 4 more }`
418 
419 Array of chat messages in order of created_at
420 
421 - `id: string`
422 
423 Unique identifier for the message e.g. 'claude_chat_msg_abcd1234'
424 
425 - `artifacts: array of object { id, artifact_type, title, version_id } or null`
426 
427 Versioned documents generated or updated by the assistant in this message. Download via `GET /v1/compliance/apps/artifacts/{artifact_version_id}/content`.
428 
429 - `id: string`
430 
431 Artifact ID e.g. 'claude_artifact_abc123'
432 
433 - `artifact_type: string or null`
434 
435 MIME-like artifact type e.g. 'application/vnd.ant.code'
436 
437 - `title: string or null`
438 
439 Artifact title
440 
441 - `version_id: string`
442 
443 Artifact version ID e.g. 'claude_artifact_version_abc123'
444 
445 - `content: array of object { text, thinking_redacted, truncated, type } or object { id, input, integration_name, 4 more } or object { content, integration_name, is_error, 5 more }`
446 
447 Content blocks within the message
448 
449 - `Text object { text, thinking_redacted, truncated, type }`
450 
451 Text content block.
452 
453 - `text: string`
454 
455 Text content from human or assistant
456 
457 - `thinking_redacted: boolean`
458 
459 True when content enclosed in the assistant's internal-reasoning tags (or the tag markup itself) was removed from `text` during export. Removal never occurs with this field false. Always false on human messages, whose text is exported verbatim.
460 
461 - `truncated: boolean`
462 
463 True when `text` was shortened by the server's fixed per-string bound (1 MiB). Always false on chat text blocks.
464 
465 - `type: "text"`
466 
467 - `"text"`
468 
469 - `ToolUse object { id, input, integration_name, 4 more }`
470 
471 Tool invocation requested by the assistant.
472 
473 - `id: string or null`
474 
475 Tool-use ID, e.g. 'toolu_01AbC...'
476 
477 - `input: string`
478 
479 Arguments passed to the tool, as a JSON-encoded string. May be shortened — see the `truncated` field
480 
481 - `integration_name: string or null`
482 
483 Name of the integration that provides this tool, when applicable
484 
485 - `mcp_server_url: string or null`
486 
487 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
488 
489 - `name: string`
490 
491 Name of the tool invoked
492 
493 - `truncated: boolean`
494 
495 True when `input` was shortened. Pass the endpoint's tool-use input max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
496 
497 - `type: "tool_use"`
498 
499 - `"tool_use"`
500 
501 - `ToolResult object { content, integration_name, is_error, 5 more }`
502 
503 Result returned by a tool invocation.
504 
505 - `content: array of object { text, type }`
506 
507 Text content returned by the tool. Generated files are surfaced via the message's `generated_files` list; other non-text item types (including images and links) are omitted.
508 
509 - `text: string`
510 
511 Text returned by the tool
512 
513 - `type: "text"`
514 
515 - `"text"`
516 
517 - `integration_name: string or null`
518 
519 Name of the integration that provides this tool, when applicable
520 
521 - `is_error: boolean`
522 
523 True when the tool reported an error
524 
525 - `mcp_server_url: string or null`
526 
527 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
528 
529 - `name: string`
530 
531 Name of the tool that produced this result
532 
533 - `tool_use_id: string or null`
534 
535 ID of the tool_use block this result responds to
536 
537 - `truncated: boolean`
538 
539 True when one or more text items in `content` were shortened. Pass the endpoint's tool-result max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
540 
541 - `type: "tool_result"`
542 
543 - `"tool_result"`
544 
545 - `created_at: string`
546 
547 Message creation timestamp - For human: when they sent the message, For assistant: when it completed the last content block
548 
549 - `files: array of object { id, created_at, filename, 3 more } or null`
550 
551 Binary file attachments uploaded by the user. Download via `GET /v1/compliance/apps/chats/files/{claude_file_id}/content`.
552 
553 - `id: string`
554 
555 File ID
556 
557 - `created_at: string`
558 
559 File creation timestamp
560 
561 - `filename: string`
562 
563 Display name of the file
564 
565 - `md5: string or null`
566 
567 Lowercase hex MD5 of the file's preferred downloadable variant, as recorded at upload time. Null when no stored hash is available.
568 
569 - `mime_type: string or null`
570 
571 MIME type of the file's preferred downloadable variant (e.g. 'application/pdf')
572 
573 - `size_bytes: number or null`
574 
575 Size in bytes of the file's preferred downloadable variant, if known. Null for older files uploaded before size was recorded.
576 
577 - `generated_files: array of object { id, filename, md5, 2 more } or null`
578 
579 Downloadable files the assistant created via tool use (e.g. PDF, spreadsheet, slide deck). Distinct from `files`, which are uploads attached to the message. Download via `GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`.
580 
581 - `id: string`
582 
583 Opaque generated-file id, e.g. 'claude_gen_file_abc123'. Treat as an opaque string; the encoding may change without notice.
584 
585 - `filename: string`
586 
587 Display name of the generated file
588 
589 - `md5: string or null`
590 
591 Lowercase hex MD5 of the generated file, when available. Null when no stored hash is available.
592 
593 - `mime_type: string or null`
594 
595 MIME type reported by the tool that produced the file
596 
597 - `size_bytes: number or null`
598 
599 Size in bytes of the generated file, when available. Null when the file has expired or size is not recorded.
600 
601 - `role: "assistant" or "user"`
602 
603 Message sender (user or assistant)
604 
605 - `"assistant"`
606 
607 - `"user"`
608 
609- `created_at: string`
610 
611 Creation timestamp
612 
613- `deleted_at: string or null`
614 
615 Deletion timestamp if deleted
616 
617- `first_id: string or null`
618 
619 Opaque pagination cursor for the first message in the current result set. Pass as `before_id` on the next request to page backwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
620 
621- `has_more: boolean`
622 
623 Whether more chat messages exist beyond the current result set. Use `last_id` as `after_id` in a follow-up request to page forward.
624 
625- `href: string`
626 
627 URL to view this chat in claude.ai
628 
629- `last_id: string or null`
630 
631 Opaque pagination cursor for the last message in the current result set. Pass as `after_id` on the next request to page forwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
632 
633- `model: string or null`
634 
635 Model selected for this chat (e.g. 'claude-opus-5'). May be null for legacy chats that never had a model recorded.
636 
637- `name: string`
638 
639 Chat name
652 User identifier
653 
654 - `email_address: string`
655 
656 User's email address
640657 
641658- `organization_id: string`
642659 
660 **Deprecated**
661 
643662 Organization ID this chat belongs to
644663 
645- `organization_uuid: string`
646 
647 Organization UUID this chat belongs to
648 
649- `project_id: string or null`
650 
651 Project ID this chat belongs to
652 
653- `updated_at: string`
654 
655 Last update timestamp
656 
657- `user: object { id, email_address } or null`
658 
659 User information for compliance responses.
660 
661 - `id: string`
662 
663 User identifier
664 
665 - `email_address: string`
666 
667 User's email address
668 
669### Example
670 
671```http
664#### Example
665 
666```bash
672667curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID/messages \
673668 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
674669```
675670 
676#### Response
671##### Response (200)
677672 
678673```json
679674{
from line 733
738733}
739734```
740735 
741## Domain Types
742 
743### Message List Response
744 
745- `MessageListResponse object { id, artifacts, content, 4 more }`
746 
747 A single message in a chat conversation.
748 
749 - `id: string`
750 
751 Unique identifier for the message e.g. 'claude_chat_msg_abcd1234'
752 
753 - `artifacts: array of object { id, artifact_type, title, version_id } or null`
754 
755 Versioned documents generated or updated by the assistant in this message. Download via `GET /v1/compliance/apps/artifacts/{artifact_version_id}/content`.
756 
757 - `id: string`
758 
759 Artifact ID e.g. 'claude_artifact_abc123'
760 
761 - `artifact_type: string or null`
762 
763 MIME-like artifact type e.g. 'application/vnd.ant.code'
764 
765 - `title: string or null`
766 
767 Artifact title
768 
769 - `version_id: string`
770 
771 Artifact version ID e.g. 'claude_artifact_version_abc123'
772 
773 - `content: array of object { text, thinking_redacted, truncated, type } or object { id, input, integration_name, 4 more } or object { content, integration_name, is_error, 5 more }`
774 
775 Content blocks within the message
776 
777 - `Text object { text, thinking_redacted, truncated, type }`
778 
779 Text content block.
780 
781 - `text: string`
782 
783 Text content from human or assistant
784 
785 - `thinking_redacted: boolean`
786 
787 True when content enclosed in the assistant's internal-reasoning tags (or the tag markup itself) was removed from `text` during export. Removal never occurs with this field false. Always false on human messages, whose text is exported verbatim.
788 
789 - `truncated: boolean`
790 
791 True when `text` was shortened by the server's fixed per-string bound (1 MiB). Always false on chat text blocks.
792 
793 - `type: "text"`
794 
795 - `"text"`
796 
797 - `ToolUse object { id, input, integration_name, 4 more }`
798 
799 Tool invocation requested by the assistant.
800 
801 - `id: string or null`
802 
803 Tool-use ID, e.g. 'toolu_01AbC...'
804 
805 - `input: string`
806 
807 Arguments passed to the tool, as a JSON-encoded string. May be shortened — see the `truncated` field
808 
809 - `integration_name: string or null`
810 
811 Name of the integration that provides this tool, when applicable
812 
813 - `mcp_server_url: string or null`
814 
815 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
816 
817 - `name: string`
818 
819 Name of the tool invoked
820 
821 - `truncated: boolean`
822 
823 True when `input` was shortened. Pass the endpoint's tool-use input max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
824 
825 - `type: "tool_use"`
826 
827 - `"tool_use"`
828 
829 - `ToolResult object { content, integration_name, is_error, 5 more }`
830 
831 Result returned by a tool invocation.
832 
833 - `content: array of object { text, type }`
834 
835 Text content returned by the tool. Generated files are surfaced via the message's `generated_files` list; other non-text item types (including images and links) are omitted.
836 
837 - `text: string`
838 
839 Text returned by the tool
840 
841 - `type: "text"`
842 
843 - `"text"`
844 
845 - `integration_name: string or null`
846 
847 Name of the integration that provides this tool, when applicable
848 
849 - `is_error: boolean`
850 
851 True when the tool reported an error
852 
853 - `mcp_server_url: string or null`
854 
855 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
856 
857 - `name: string`
858 
859 Name of the tool that produced this result
860 
861 - `tool_use_id: string or null`
862 
863 ID of the tool_use block this result responds to
864 
865 - `truncated: boolean`
866 
867 True when one or more text items in `content` were shortened. Pass the endpoint's tool-result max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
868 
869 - `type: "tool_result"`
870 
871 - `"tool_result"`
872 
873 - `created_at: string`
874 
875 Message creation timestamp - For human: when they sent the message, For assistant: when it completed the last content block
876 
877 - `files: array of object { id, created_at, filename, 3 more } or null`
878 
879 Binary file attachments uploaded by the user. Download via `GET /v1/compliance/apps/chats/files/{claude_file_id}/content`.
880 
881 - `id: string`
882 
883 File ID
884 
885 - `created_at: string`
886 
887 File creation timestamp
888 
889 - `filename: string`
890 
891 Display name of the file
892 
893 - `md5: string or null`
894 
895 Lowercase hex MD5 of the file's preferred downloadable variant, as recorded at upload time. Null when no stored hash is available.
896 
897 - `mime_type: string or null`
898 
899 MIME type of the file's preferred downloadable variant (e.g. 'application/pdf')
900 
901 - `size_bytes: number or null`
902 
903 Size in bytes of the file's preferred downloadable variant, if known. Null for older files uploaded before size was recorded.
904 
905 - `generated_files: array of object { id, filename, md5, 2 more } or null`
906 
907 Downloadable files the assistant created via tool use (e.g. PDF, spreadsheet, slide deck). Distinct from `files`, which are uploads attached to the message. Download via `GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`.
908 
909 - `id: string`
910 
911 Opaque generated-file id, e.g. 'claude_gen_file_abc123'. Treat as an opaque string; the encoding may change without notice.
912 
913 - `filename: string`
914 
915 Display name of the generated file
916 
917 - `md5: string or null`
918 
919 Lowercase hex MD5 of the generated file, when available. Null when no stored hash is available.
920 
921 - `mime_type: string or null`
922 
923 MIME type reported by the tool that produced the file
924 
925 - `size_bytes: number or null`
926 
927 Size in bytes of the generated file, when available. Null when the file has expired or size is not recorded.
928 
929 - `role: "assistant" or "user"`
930 
931 Message sender (user or assistant)
932 
933 - `"assistant"`
934 
935 - `"user"`
936 
937# Files
938 
939## Get file metadata
940 
941**get** `/v1/compliance/apps/chats/files/{claude_file_id}`
736## Apps › Chats › Files
737 
738### Get file metadata
739 
740**GET** `/v1/compliance/apps/chats/files/{claude_file_id}`
942741 
943742Retrieves metadata for a file referenced in chat messages, without
944743downloading the file content. Use the sibling `/content` endpoint to
945744download the bytes.
946745 
947### Path Parameters
746#### Path parameters
948747 
949748- `claude_file_id: string`
950749 
951750 The file ID (tagged ID, e.g., claude_file_abc123)
952751 
953### Header Parameters
752#### Headers
954753 
955754- `"x-api-key": optional string`
956755 
957### Returns
756#### Returns
958757 
959758- `id: string`
960759 
from line 767
968767 
969768 File creation timestamp
970769 
770 format: date-time
771 
971772- `filename: string or null`
972773 
973774 Display name of the file, if set
from line 789
988789 
989790 Size in bytes of the file's preferred downloadable variant, if known
990791 
991### Example
992 
993```http
792#### Example
793 
794```bash
994795curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
995796 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
996797```
997798 
998#### Response
799##### Response (200)
999800 
1000801```json
1001802{
from line 815
1014815}
1015816```
1016817 
1017## Delete file
1018 
1019**delete** `/v1/compliance/apps/chats/files/{claude_file_id}`
818### Delete file
819 
820**DELETE** `/v1/compliance/apps/chats/files/{claude_file_id}`
1020821 
1021822Permanently deletes a specific file. This is a destructive
1022823operation that cannot be undone.
1023824 
1024### Path Parameters
825#### Path parameters
1025826 
1026827- `claude_file_id: string`
1027828 
1028829 The file ID (tagged ID, e.g., claude_file_abc123)
1029830 
1030### Header Parameters
831#### Headers
1031832 
1032833- `"x-api-key": optional string`
1033834 
1034### Returns
835#### Returns
1035836 
1036837- `id: string`
1037838 
from line 842
1041842 
1042843 Constant string confirming deletion
1043844 
1044 - `"claude_file_deleted"`
1045 
1046### Example
1047 
1048```http
845 default: claude_file_deleted
846 
847#### Example
848 
849```bash
1049850curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
1050851 -X DELETE \
1051852 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
1052853```
1053854 
1054#### Response
855##### Response (200)
1055856 
1056857```json
1057858{
from line 861
1060861}
1061862```
1062863 
1063## Download file content
1064 
1065**get** `/v1/compliance/apps/chats/files/{claude_file_id}/content`
864### Download file content
865 
866**GET** `/v1/compliance/apps/chats/files/{claude_file_id}/content`
1066867 
1067868Downloads the binary content of a file referenced in chat messages.
1068869 
1069### Path Parameters
870#### Path parameters
1070871 
1071872- `claude_file_id: string`
1072873 
1073874 The file ID (tagged ID, e.g., claude_file_abc123)
1074875 
1075### Header Parameters
876#### Headers
1076877 
1077878- `"x-api-key": optional string`
1078879 
1079### Example
1080 
1081```http
880#### Example
881 
882```bash
1082883curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID/content \
1083884 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
1084885```
1085886 
1086## Domain Types
1087 
1088### File Retrieve Response
1089 
1090- `FileRetrieveResponse object { id, claude_chat_ids, created_at, 5 more }`
1091 
1092 File metadata for GET /v1/compliance/apps/chats/files/{claude_file_id}.
1093 
1094 Returns metadata only. Use the sibling `/content` endpoint to download
1095 the file bytes.
1096 
1097 - `id: string`
1098 
1099 File ID
1100 
1101 - `claude_chat_ids: array of string`
1102 
1103 Chats this file is attached to. A file can be referenced by messages across multiple chats.
1104 
1105 - `created_at: string`
1106 
1107 File creation timestamp
1108 
1109 - `filename: string or null`
1110 
1111 Display name of the file, if set
1112 
1113 - `md5: string or null`
1114 
1115 Lowercase hex MD5 of the file's preferred downloadable variant, as recorded at upload time. Null when no stored hash is available. The sibling `/content` endpoint also sets a `Content-MD5` header (base64 per RFC 1864) computed over the exact served bytes; when the two disagree, the header is authoritative.
1116 
1117 - `message_ids: array of string`
1118 
1119 Chat message IDs this file is attached to. A file can be referenced by multiple messages.
1120 
1121 - `mime_type: string or null`
1122 
1123 MIME type of the file's preferred downloadable variant (e.g. 'application/pdf'). May be null for files with no downloadable content (e.g. code-interpreter outputs).
1124 
1125 - `size_bytes: number or null`
1126 
1127 Size in bytes of the file's preferred downloadable variant, if known
1128 
1129### File Delete Response
1130 
1131- `FileDeleteResponse object { id, type }`
1132 
1133 Response for deleting a compliance file.
1134 
1135 - `id: string`
1136 
1137 The ID of the file that was deleted
1138 
1139 - `type: optional "claude_file_deleted"`
1140 
1141 Constant string confirming deletion
1142 
1143 - `"claude_file_deleted"`
1144 
1145# Generated Files
1146 
1147## Get Claude-generated file metadata
1148 
1149**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}`
887## Apps › Chats › Generated Files
888 
889### Get Claude-generated file metadata
890 
891**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}`
1150892 
1151893Returns metadata for a file the assistant created via tool use.
1152894 
1153895Use the sibling `/content` endpoint to download the bytes.
1154896 
1155### Path Parameters
897#### Path parameters
1156898 
1157899- `claude_gen_file_id: string`
1158900 
1159901 The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages.
1160902 
1161### Header Parameters
903#### Headers
1162904 
1163905- `"x-api-key": optional string`
1164906 
1165### Returns
907#### Returns
1166908 
1167909- `id: string`
1168910 
from line 918
1176918 
1177919 File creation timestamp, when available
1178920 
921 format: date-time
922 
1179923- `filename: string`
1180924 
1181925 Display name of the generated file
from line 936
1192936 
1193937 Size in bytes of the stored file, when available
1194938 
1195### Example
1196 
1197```http
939#### Example
940 
941```bash
1198942curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID \
1199943 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
1200944```
1201945 
1202#### Response
946##### Response (200)
1203947 
1204948```json
1205949{
from line 957
1213957}
1214958```
1215959 
1216## Download a Claude-generated file
1217 
1218**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`
960### Download a Claude-generated file
961 
962**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`
1219963 
1220964Downloads the binary content of a file the assistant created via tool use.
1221965 
1222### Path Parameters
966#### Path parameters
1223967 
1224968- `claude_gen_file_id: string`
1225969 
1226970 The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages.
1227971 
1228### Header Parameters
972#### Headers
1229973 
1230974- `"x-api-key": optional string`
1231975 
1232### Example
1233 
1234```http
976#### Example
977 
978```bash
1235979curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID/content \
1236980 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
1237981```
1238982 
1239## Domain Types
1240 
1241### Generated File Retrieve Response
1242 
1243- `GeneratedFileRetrieveResponse object { id, claude_chat_id, created_at, 4 more }`
1244 
1245 Metadata for GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}.
1246 
1247 Returns metadata only. Use the sibling `/content` endpoint to download
1248 the bytes. The owning chat is included since the id is opaque; to find the
1249 specific message that produced the file, fetch
1250 `/v1/compliance/apps/chats/{claude_chat_id}/messages` and match on
1251 `generated_files[].id`.
1252 
1253 - `id: string`
1254 
1255 Opaque generated-file id, e.g. 'claude_gen_file_abc123'.
1256 
1257 - `claude_chat_id: string`
1258 
1259 The chat this generated file belongs to
1260 
1261 - `created_at: string or null`
1262 
1263 File creation timestamp, when available
1264 
1265 - `filename: string`
1266 
1267 Display name of the generated file
1268 
1269 - `md5: string or null`
1270 
1271 Lowercase hex MD5 of the stored file. Null when no stored hash is available. The sibling `/content` endpoint also sets a `Content-MD5` header (base64 per RFC 1864) computed over the exact served bytes.
1272 
1273 - `mime_type: string or null`
1274 
1275 MIME type of the stored file, when available
1276 
1277 - `size_bytes: number or null`
1278 
1279 Size in bytes of the stored file, when available
1280 
1281# Projects
1282 
1283## List projects
1284 
1285**get** `/v1/compliance/apps/projects`
983## Apps › Projects
984 
985### List projects
986 
987**GET** `/v1/compliance/apps/projects`
1286988 
1287989Lists project metadata with filtering capabilities. Results
1288990are sorted chronologically (time ascending) by created_at.
1289991 
1290### Query Parameters
1291 
1292- `created_at: optional object { gt, gte, lt, lte }`
992#### Query parameters
993 
994- `created_at: optional object`
1293995 
1294996 - `gt: optional string`
1295997 
1296998 Filter projects created after this time (RFC 3339 format)
1297999 
1000 format: date-time
1001 
12981002 - `gte: optional string`
12991003 
13001004 Filter projects created at or after this time (RFC 3339 format)
13011005 
1006 format: date-time
1007 
13021008 - `lt: optional string`
13031009 
13041010 Filter projects created before this time (RFC 3339 format)
13051011 
1012 format: date-time
1013 
13061014 - `lte: optional string`
13071015 
13081016 Filter projects created at or before this time (RFC 3339 format)
13091017 
1018 format: date-time
1019 
13101020- `limit: optional number`
13111021 
13121022 Maximum results (default: 20, max: 100)
13131023 
1024 default: 20, maximum: 100, minimum: 1
1025 
13141026- `organization_ids: optional array of string`
13151027 
13161028 Filter by organization IDs (accepts `org_...` or organization UUID). Enumerate IDs via `GET /v1/compliance/organizations`.
from line 1031
13191031 
13201032 Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
13211033 
1322- `updated_at: optional object { gt, gte, lt, lte }`
1034- `updated_at: optional object`
13231035 
13241036 - `gt: optional string`
13251037 
13261038 Filter projects updated after this time (RFC 3339 format)
13271039 
1040 format: date-time
1041 
13281042 - `gte: optional string`
13291043 
13301044 Filter projects updated at or after this time (RFC 3339 format)
13311045 
1046 format: date-time
1047 
13321048 - `lt: optional string`
13331049 
13341050 Filter projects updated before this time (RFC 3339 format)
13351051 
1052 format: date-time
1053 
13361054 - `lte: optional string`
13371055 
13381056 Filter projects updated at or before this time (RFC 3339 format)
13391057 
1058 format: date-time
1059 
13401060- `user_ids: optional array of string`
13411061 
13421062 Filter by user IDs. Enumerate IDs via `GET /v1/compliance/organizations/{org_uuid}/users`.
13431063 
1344### Header Parameters
1064#### Headers
13451065 
13461066- `"x-api-key": optional string`
13471067 
1348### Returns
1349 
1350- `data: array of object { id, created_at, deleted_at, 6 more }`
1068#### Returns
1069 
1070- `data: array of object`
13511071 
13521072 List of projects sorted by creation date ascending
13531073 
from line 1079
13591079 
13601080 Project creation timestamp
13611081 
1082 format: date-time
1083 
13621084 - `deleted_at: string or null`
13631085 
13641086 Timestamp when the project was deleted by an end user, or null otherwise
13651087 
1088 format: date-time
1089 
13661090 - `is_private: boolean`
13671091 
13681092 If false, the project is visible to all organization members; if true the project is accessible only to the creator and specified collaborators
from line 1095
13711095 
13721096 Project name
13731097 
1374 - `organization_id: string`
1375 
1376 Organization identifier (tagged ID)
1377 
13781098 - `organization_uuid: string`
13791099 
13801100 Organization UUID this project belongs to
from line 1103
13831103 
13841104 Project last update timestamp
13851105 
1386 - `user: object { id, email_address } or null`
1106 format: date-time
1107 
1108 - `user: object or null`
13871109 
13881110 The user who created a project or project document.
13891111 
from line 1121
13991121 
14001122 User's email address
14011123 
1124 - `organization_id: string`
1125 
1126 **Deprecated**
1127 
1128 Organization identifier (tagged ID)
1129 
14021130- `has_more: boolean`
14031131 
14041132 Whether more records exist beyond the current result set
from line 1135
14071135 
14081136 Token to retrieve the next page. Use this as the 'page' parameter in your next request
14091137 
1410### Example
1411 
1412```http
1138#### Example
1139 
1140```bash
14131141curl https://api.anthropic.com/v1/compliance/apps/projects \
14141142 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
14151143```
14161144 
1417#### Response
1145##### Response (200)
14181146 
14191147```json
14201148{
from line 1166
14381166}
14391167```
14401168 
1441## Get project details
1442 
1443**get** `/v1/compliance/apps/projects/{project_id}`
1169### Get project details
1170 
1171**GET** `/v1/compliance/apps/projects/{project_id}`
14441172 
14451173Get detailed information for a specific project.
14461174 
1447### Path Parameters
1175#### Path parameters
14481176 
14491177- `project_id: string`
14501178 
14511179 The project ID (tagged ID, e.g., claude_proj_abc123)
14521180 
1453### Header Parameters
1181#### Headers
14541182 
14551183- `"x-api-key": optional string`
14561184 
1457### Returns
1185#### Returns
14581186 
14591187- `id: string`
14601188 
from line 1200
14721200 
14731201 Project creation timestamp
14741202 
1203 format: date-time
1204 
14751205- `deleted_at: string or null`
14761206 
14771207 Timestamp when the project was deleted by an end user, or null otherwise
14781208 
1209 format: date-time
1210 
14791211- `description: string`
14801212 
14811213 Project description
from line 1224
14921224 
14931225 Project name
14941226 
1495- `organization_id: string`
1496 
1497 Organization identifier (tagged ID)
1498 
14991227- `organization_uuid: string`
15001228 
15011229 Organization UUID this project belongs to
from line 1232
15041232 
15051233 Project last update timestamp
15061234 
1507- `user: object { id, email_address } or null`
1235 format: date-time
1236 
1237- `user: object or null`
15081238 
15091239 The user who created a project or project document.
15101240 
from line 1250
15201250 
15211251 User's email address
15221252 
1523### Example
1524 
1525```http
1253- `organization_id: string`
1254 
1255 **Deprecated**
1256 
1257 Organization identifier (tagged ID)
1258 
1259#### Example
1260 
1261```bash
15261262curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID \
15271263 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
15281264```
15291265 
1530#### Response
1266##### Response (200)
15311267 
15321268```json
15331269{
from line 1286
15501286}
15511287```
15521288 
1553## Delete project
1554 
1555**delete** `/v1/compliance/apps/projects/{project_id}`
1289### Delete project
1290 
1291**DELETE** `/v1/compliance/apps/projects/{project_id}`
15561292 
15571293Delete a project for compliance purposes.
15581294 
from line 1301
15651301 
15661302Project must have no attached chats - returns 409 if chats exist.
15671303 
1568### Path Parameters
1304#### Path parameters
15691305 
15701306- `project_id: string`
15711307 
15721308 The project ID (tagged ID, e.g., claude_proj_abc123)
15731309 
1574### Header Parameters
1310#### Headers
15751311 
15761312- `"x-api-key": optional string`
15771313 
1578### Returns
1314#### Returns
15791315 
15801316- `id: string`
15811317 
from line 1321
15851321 
15861322 Constant string confirming deletion.
15871323 
1588 - `"claude_project_deleted"`
1589 
1590### Example
1591 
1592```http
1324 default: claude_project_deleted
1325 
1326#### Example
1327 
1328```bash
15931329curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID \
15941330 -X DELETE \
15951331 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
15961332```
15971333 
1598#### Response
1334##### Response (200)
15991335 
16001336```json
16011337{
from line 1340
16041340}
16051341```
16061342 
1607## Domain Types
1608 
1609### Project List Response
1610 
1611- `ProjectListResponse object { id, created_at, deleted_at, 6 more }`
1612 
1613 Project information for compliance responses.
1614 
1615 - `id: string`
1616 
1617 Project identifier (tagged ID)
1618 
1619 - `created_at: string`
1620 
1621 Project creation timestamp
1622 
1623 - `deleted_at: string or null`
1624 
1625 Timestamp when the project was deleted by an end user, or null otherwise
1626 
1627 - `is_private: boolean`
1628 
1629 If false, the project is visible to all organization members; if true the project is accessible only to the creator and specified collaborators
1630 
1631 - `name: string`
1632 
1633 Project name
1634 
1635 - `organization_id: string`
1636 
1637 Organization identifier (tagged ID)
1638 
1639 - `organization_uuid: string`
1640 
1641 Organization UUID this project belongs to
1642 
1643 - `updated_at: string`
1644 
1645 Project last update timestamp
1646 
1647 - `user: object { id, email_address } or null`
1648 
1649 The user who created a project or project document.
1650 
1651 Fields that reference this type are null when the creator's account has
1652 been deleted or the creator is no longer a member of an organization the
1653 key may read.
1654 
1655 - `id: string`
1656 
1657 User identifier (tagged ID)
1658 
1659 - `email_address: string`
1660 
1661 User's email address
1662 
1663### Project Retrieve Response
1664 
1665- `ProjectRetrieveResponse object { id, attachments_count, chats_count, 10 more }`
1666 
1667 Detailed project information for compliance responses.
1668 
1669 - `id: string`
1670 
1671 Project identifier (tagged ID)
1672 
1673 - `attachments_count: number`
1674 
1675 Number of attachments contained within this project
1676 
1677 - `chats_count: number`
1678 
1679 Number of chats contained within this project
1680 
1681 - `created_at: string`
1682 
1683 Project creation timestamp
1684 
1685 - `deleted_at: string or null`
1686 
1687 Timestamp when the project was deleted by an end user, or null otherwise
1688 
1689 - `description: string`
1690 
1691 Project description
1692 
1693 - `instructions: string`
1694 
1695 Project's custom instructions / prompt
1696 
1697 - `is_private: boolean`
1698 
1699 If false, the project is visible to all organization members; if true the project is accessible only to the creator and specified collaborators
1700 
1701 - `name: string`
1702 
1703 Project name
1704 
1705 - `organization_id: string`
1706 
1707 Organization identifier (tagged ID)
1708 
1709 - `organization_uuid: string`
1710 
1711 Organization UUID this project belongs to
1712 
1713 - `updated_at: string`
1714 
1715 Project last update timestamp
1716 
1717 - `user: object { id, email_address } or null`
1718 
1719 The user who created a project or project document.
1720 
1721 Fields that reference this type are null when the creator's account has
1722 been deleted or the creator is no longer a member of an organization the
1723 key may read.
1724 
1725 - `id: string`
1726 
1727 User identifier (tagged ID)
1728 
1729 - `email_address: string`
1730 
1731 User's email address
1732 
1733### Project Delete Response
1734 
1735- `ProjectDeleteResponse object { id, type }`
1736 
1737 Response for deleting a Claude project.
1738 
1739 - `id: string`
1740 
1741 The ID of the Claude project that was deleted
1742 
1743 - `type: optional "claude_project_deleted"`
1744 
1745 Constant string confirming deletion.
1746 
1747 - `"claude_project_deleted"`
1748 
1749# Attachments
1750 
1751## List project attachments
1752 
1753**get** `/v1/compliance/apps/projects/{project_id}/attachments`
1343## Apps › Projects › Attachments
1344 
1345### List project attachments
1346 
1347**GET** `/v1/compliance/apps/projects/{project_id}/attachments`
17541348 
17551349List files and documents attached to a project.
17561350 
from line 1357
17631357The text content of attached project documents can be fetched using the
17641358GET /v1/compliance/apps/projects/documents/{claude_proj_doc_id} endpoint.
17651359 
1766### Path Parameters
1360#### Path parameters
17671361 
17681362- `project_id: string`
17691363 
17701364 The project ID (tagged ID, e.g., claude_proj_abc123)
17711365 
1772### Query Parameters
1366#### Query parameters
17731367 
17741368- `limit: optional number`
17751369 
17761370 Maximum results (default: 20, max: 100)
17771371 
1372 default: 20, maximum: 100, minimum: 1
1373 
17781374- `page: optional string`
17791375 
17801376 Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
17811377 
1782### Header Parameters
1378#### Headers
17831379 
17841380- `"x-api-key": optional string`
17851381 
1786### Returns
1787 
1788- `data: array of object { id, created_at, filename, 4 more } or object { id, created_at, filename, 3 more }`
1382#### Returns
1383 
1384- `data: array of object or object`
17891385 
17901386 List of attachments sorted chronologically by created_at, tie break by id
17911387 
1792 - `ComplianceProjectFileReference object { id, created_at, filename, 4 more }`
1388 - `ComplianceProjectFileReference object`
17931389 
17941390 File attachment reference for compliance responses.
17951391 
from line 1397
18011397 
18021398 Creation timestamp (RFC 3339 format)
18031399 
1400 format: date-time
1401 
18041402 - `filename: string`
18051403 
18061404 Display name of the file (e.g., 'document.pdf')
from line 1419
18211419 
18221420 Discriminator marking this as a binary file
18231421 
1824 - `"project_file"`
1825 
1826 - `ComplianceProjectDocReference object { id, created_at, filename, 3 more }`
1422 default: project_file
1423 
1424 - `ComplianceProjectDocReference object`
18271425 
18281426 Project document attachment reference for compliance responses.
18291427 
from line 1433
18351433 
18361434 Creation timestamp (RFC 3339 format)
18371435 
1436 format: date-time
1437 
18381438 - `filename: string`
18391439 
18401440 Display name of the document (e.g., 'document.txt')
from line 1443
18431443 
18441444 MIME type of the project document, always set to plain text
18451445 
1846 - `"text/plain"`
1446 default: text/plain
18471447 
18481448 - `type: "project_doc"`
18491449 
18501450 Discriminator marking this as a plain text document
18511451 
1852 - `"project_doc"`
1452 default: project_doc
18531453 
18541454 - `updated_at: string or null`
18551455 
18561456 Last-modified timestamp of the document. Reserved for future use — currently always null.
18571457 
1458 format: date-time
1459 
18581460- `has_more: boolean`
18591461 
18601462 Whether more records exist beyond the current result set
from line 1465
18631465 
18641466 To get the next page, use the 'next_page' from the current response as the 'page' in your next request
18651467 
1866### Example
1867 
1868```http
1468#### Example
1469 
1470```bash
18691471curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/attachments \
18701472 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
18711473```
18721474 
1873#### Response
1475##### Response (200)
18741476 
18751477```json
18761478{
from line 1492
18901492}
18911493```
18921494 
1893## Domain Types
1894 
1895### Attachment List Response
1896 
1897- `AttachmentListResponse = object { id, created_at, filename, 4 more } or object { id, created_at, filename, 3 more }`
1898 
1899 File attachment reference for compliance responses.
1900 
1901 - `ComplianceProjectFileReference object { id, created_at, filename, 4 more }`
1902 
1903 File attachment reference for compliance responses.
1904 
1905 - `id: string`
1906 
1907 File identifier (e.g., 'claude_file_abcd')
1908 
1909 - `created_at: string`
1910 
1911 Creation timestamp (RFC 3339 format)
1912 
1913 - `filename: string`
1914 
1915 Display name of the file (e.g., 'document.pdf')
1916 
1917 - `md5: string or null`
1918 
1919 Lowercase hex MD5 of the file's preferred downloadable variant, when recorded. Null otherwise. Use the per-file `/metadata` endpoint for the authoritative value.
1920 
1921 - `mime_type: string`
1922 
1923 MIME type of the file's preferred downloadable variant when one is recorded, else 'application/octet-stream'. Use the per-file `/metadata` endpoint for the authoritative value.
1924 
1925 - `size_bytes: number or null`
1926 
1927 Size in bytes of the file's preferred downloadable variant, when recorded. Null otherwise. Use the per-file `/metadata` endpoint for the authoritative value.
1928 
1929 - `type: "project_file"`
1930 
1931 Discriminator marking this as a binary file
1932 
1933 - `"project_file"`
1934 
1935 - `ComplianceProjectDocReference object { id, created_at, filename, 3 more }`
1936 
1937 Project document attachment reference for compliance responses.
1938 
1939 - `id: string`
1940 
1941 Project document identifier (e.g., 'claude_proj_doc_abcd')
1942 
1943 - `created_at: string`
1944 
1945 Creation timestamp (RFC 3339 format)
1946 
1947 - `filename: string`
1948 
1949 Display name of the document (e.g., 'document.txt')
1950 
1951 - `mime_type: "text/plain"`
1952 
1953 MIME type of the project document, always set to plain text
1954 
1955 - `"text/plain"`
1956 
1957 - `type: "project_doc"`
1958 
1959 Discriminator marking this as a plain text document
1960 
1961 - `"project_doc"`
1962 
1963 - `updated_at: string or null`
1964 
1965 Last-modified timestamp of the document. Reserved for future use — currently always null.
1966 
1967# Collaborators
1968 
1969## List project collaborators
1970 
1971**get** `/v1/compliance/apps/projects/{project_id}/collaborators`
1495## Apps › Projects › Collaborators
1496 
1497### List project collaborators
1498 
1499**GET** `/v1/compliance/apps/projects/{project_id}/collaborators`
19721500 
19731501List the users, groups, and organization-wide grants on a project.
19741502 
from line 1505
19771505RBAC group, the whole organization, or all holders of an organization-level
19781506role.
19791507 
1980### Path Parameters
1508#### Path parameters
19811509 
19821510- `project_id: string`
19831511 
19841512 The project ID (tagged ID, e.g., claude_proj_abc123)
19851513 
1986### Query Parameters
1514#### Query parameters
19871515 
19881516- `limit: optional number`
19891517 
19901518 Maximum results (default: 20, max: 100)
19911519 
1520 default: 20, maximum: 100, minimum: 1
1521 
19921522- `page: optional string`
19931523 
19941524 Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
19951525 
1996### Header Parameters
1526#### Headers
19971527 
19981528- `"x-api-key": optional string`
19991529 
2000### Returns
2001 
2002- `data: array of object { granted_at, role, type, user_id } or object { granted_at, group_id, role, type } or object { granted_at, organization_uuid, role, type } or object { granted_at, organization_role, role, type }`
1530#### Returns
1531 
1532- `data: array of object or object or object or object`
20031533 
20041534 List of collaborators sorted chronologically by granted_at, tie break by the underlying role-assignment UUID
20051535 
2006 - `ComplianceProjectUserCollaborator object { granted_at, role, type, user_id }`
1536 - `ComplianceProjectUserCollaborator object`
20071537 
20081538 An individual user granted a role on a project.
20091539 
from line 1541
20111541 
20121542 When this collaborator was granted access (RFC 3339 format)
20131543 
1544 format: date-time
1545 
20141546 - `role: "admin" or "editor" or "owner" or "viewer"`
20151547 
20161548 Role granted on the project
from line 1559
20271559 
20281560 Discriminator marking this as an individual user collaborator
20291561 
2030 - `"user"`
1562 default: user
20311563 
20321564 - `user_id: string or null`
20331565 
20341566 Identifier of the user granted access (tagged ID), or null if their account has since been deleted
20351567 
2036 - `ComplianceProjectGroupCollaborator object { granted_at, group_id, role, type }`
1568 - `ComplianceProjectGroupCollaborator object`
20371569 
20381570 An RBAC group granted a role on a project.
20391571 
from line 1573
20411573 
20421574 When this collaborator was granted access (RFC 3339 format)
20431575 
1576 format: date-time
1577 
20441578 - `group_id: string`
20451579 
20461580 Identifier of the group granted access (tagged ID)
from line 1595
20611595 
20621596 Discriminator marking this as a group collaborator
20631597 
2064 - `"group"`
2065 
2066 - `ComplianceProjectOrganizationCollaborator object { granted_at, organization_uuid, role, type }`
1598 default: group
1599 
1600 - `ComplianceProjectOrganizationCollaborator object`
20671601 
20681602 An entire organization granted a role on a project.
20691603 
from line 1605
20711605 
20721606 When this collaborator was granted access (RFC 3339 format)
20731607 
1608 format: date-time
1609 
20741610 - `organization_uuid: string`
20751611 
20761612 UUID of the organization granted access
from line 1627
20911627 
20921628 Discriminator marking this as an organization-wide grant
20931629 
2094 - `"organization"`
2095 
2096 - `ComplianceProjectOrganizationRoleCollaborator object { granted_at, organization_role, role, type }`
1630 default: organization
1631 
1632 - `ComplianceProjectOrganizationRoleCollaborator object`
20971633 
20981634 All holders of an organization-level role granted a role on a project.
20991635 
from line 1637
21011637 
21021638 When this collaborator was granted access (RFC 3339 format)
21031639 
1640 format: date-time
1641 
21041642 - `organization_role: string`
21051643 
21061644 The organization-level role whose holders are granted access
from line 1659
21211659 
21221660 Discriminator marking this as a grant to all organization members holding a specific org-level role
21231661 
2124 - `"organization_role"`
1662 default: organization_role
21251663 
21261664- `has_more: boolean`
21271665 
from line 1669
21311669 
21321670 To get the next page, use the 'next_page' from the current response as the 'page' in your next request
21331671 
2134### Example
2135 
2136```http
1672#### Example
1673 
1674```bash
21371675curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/collaborators \
21381676 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
21391677```
21401678 
2141#### Response
1679##### Response (200)
21421680 
21431681```json
21441682{
from line 1693
21551693}
21561694```
21571695 
2158## Domain Types
2159 
2160### Collaborator List Response
2161 
2162- `CollaboratorListResponse = object { granted_at, role, type, user_id } or object { granted_at, group_id, role, type } or object { granted_at, organization_uuid, role, type } or object { granted_at, organization_role, role, type }`
2163 
2164 An individual user granted a role on a project.
2165 
2166 - `ComplianceProjectUserCollaborator object { granted_at, role, type, user_id }`
2167 
2168 An individual user granted a role on a project.
2169 
2170 - `granted_at: string`
2171 
2172 When this collaborator was granted access (RFC 3339 format)
2173 
2174 - `role: "admin" or "editor" or "owner" or "viewer"`
2175 
2176 Role granted on the project
2177 
2178 - `"admin"`
2179 
2180 - `"editor"`
2181 
2182 - `"owner"`
2183 
2184 - `"viewer"`
2185 
2186 - `type: "user"`
2187 
2188 Discriminator marking this as an individual user collaborator
2189 
2190 - `"user"`
2191 
2192 - `user_id: string or null`
2193 
2194 Identifier of the user granted access (tagged ID), or null if their account has since been deleted
2195 
2196 - `ComplianceProjectGroupCollaborator object { granted_at, group_id, role, type }`
2197 
2198 An RBAC group granted a role on a project.
2199 
2200 - `granted_at: string`
2201 
2202 When this collaborator was granted access (RFC 3339 format)
2203 
2204 - `group_id: string`
2205 
2206 Identifier of the group granted access (tagged ID)
2207 
2208 - `role: "admin" or "editor" or "owner" or "viewer"`
2209 
2210 Role granted on the project
2211 
2212 - `"admin"`
2213 
2214 - `"editor"`
2215 
2216 - `"owner"`
2217 
2218 - `"viewer"`
2219 
2220 - `type: "group"`
2221 
2222 Discriminator marking this as a group collaborator
2223 
2224 - `"group"`
2225 
2226 - `ComplianceProjectOrganizationCollaborator object { granted_at, organization_uuid, role, type }`
2227 
2228 An entire organization granted a role on a project.
2229 
2230 - `granted_at: string`
2231 
2232 When this collaborator was granted access (RFC 3339 format)
2233 
2234 - `organization_uuid: string`
2235 
2236 UUID of the organization granted access
2237 
2238 - `role: "admin" or "editor" or "owner" or "viewer"`
2239 
2240 Role granted on the project
2241 
2242 - `"admin"`
2243 
2244 - `"editor"`
2245 
2246 - `"owner"`
2247 
2248 - `"viewer"`
2249 
2250 - `type: "organization"`
2251 
2252 Discriminator marking this as an organization-wide grant
2253 
2254 - `"organization"`
2255 
2256 - `ComplianceProjectOrganizationRoleCollaborator object { granted_at, organization_role, role, type }`
2257 
2258 All holders of an organization-level role granted a role on a project.
2259 
2260 - `granted_at: string`
2261 
2262 When this collaborator was granted access (RFC 3339 format)
2263 
2264 - `organization_role: string`
2265 
2266 The organization-level role whose holders are granted access
2267 
2268 - `role: "admin" or "editor" or "owner" or "viewer"`
2269 
2270 Role granted on the project
2271 
2272 - `"admin"`
2273 
2274 - `"editor"`
2275 
2276 - `"owner"`
2277 
2278 - `"viewer"`
2279 
2280 - `type: "organization_role"`
2281 
2282 Discriminator marking this as a grant to all organization members holding a specific org-level role
2283 
2284 - `"organization_role"`
2285 
2286# Documents
2287 
2288## Get project document content
2289 
2290**get** `/v1/compliance/apps/projects/documents/{document_id}`
1696## Apps › Projects › Documents
1697 
1698### Get project document content
1699 
1700**GET** `/v1/compliance/apps/projects/documents/{document_id}`
22911701 
22921702Get detailed information for a specific project document.
22931703 
2294### Path Parameters
1704#### Path parameters
22951705 
22961706- `document_id: string`
22971707 
22981708 The document ID (tagged ID, e.g., claude_proj_doc_abc123)
22991709 
2300### Header Parameters
1710#### Headers
23011711 
23021712- `"x-api-key": optional string`
23031713 
2304### Returns
1714#### Returns
23051715 
23061716- `id: string`
23071717 
from line 1725
23151725 
23161726 Document creation timestamp
23171727 
1728 format: date-time
1729 
23181730- `filename: string`
23191731 
23201732 Document filename
23211733 
2322- `user: object { id, email_address } or null`
1734- `user: object or null`
23231735 
23241736 The user who created a project or project document.
23251737 
from line 1747
23351747 
23361748 User's email address
23371749 
2338### Example
2339 
2340```http
1750#### Example
1751 
1752```bash
23411753curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID \
23421754 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
23431755```
23441756 
2345#### Response
1757##### Response (200)
23461758 
23471759```json
23481760{
from line 1769
23571769}
23581770```
23591771 
2360## Get project document metadata
2361 
2362**get** `/v1/compliance/apps/projects/documents/{document_id}/metadata`
1772### Get project document metadata
1773 
1774**GET** `/v1/compliance/apps/projects/documents/{document_id}/metadata`
23631775 
23641776Returns metadata for a project document, without the content body.
23651777 
from line 1780
23681780fields here are computed over the UTF-8 encoding of that text, so a DLP
23691781consumer can dedupe or match hashes without downloading every document.
23701782 
2371### Path Parameters
1783#### Path parameters
23721784 
23731785- `document_id: string`
23741786 
23751787 The document ID (tagged ID, e.g., claude_proj_doc_abc123)
23761788 
2377### Header Parameters
1789#### Headers
23781790 
23791791- `"x-api-key": optional string`
23801792 
2381### Returns
1793#### Returns
23821794 
23831795- `id: string`
23841796 
from line 1804
23921804 
23931805 Document creation timestamp
23941806 
1807 format: date-time
1808 
23951809- `filename: string`
23961810 
23971811 Document filename
from line 1818
24041818 
24051819 MIME type of the document content, always plain text
24061820 
2407 - `"text/plain"`
1821 default: text/plain
24081822 
24091823- `size_bytes: number`
24101824 
24111825 Size in bytes of the document content (UTF-8 encoded)
24121826 
2413- `user: object { id, email_address } or null`
1827- `user: object or null`
24141828 
24151829 The user who created a project or project document.
24161830 
from line 1840
24261840 
24271841 User's email address
24281842 
2429### Example
2430 
2431```http
1843#### Example
1844 
1845```bash
24321846curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID/metadata \
24331847 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
24341848```
24351849 
2436#### Response
1850##### Response (200)
24371851 
24381852```json
24391853{
from line 1865
24511865}
24521866```
24531867 
2454## Delete project document
2455 
2456**delete** `/v1/compliance/apps/projects/documents/{document_id}`
1868### Delete project document
1869 
1870**DELETE** `/v1/compliance/apps/projects/documents/{document_id}`
24571871 
24581872Delete a project document for compliance purposes.
24591873 
24601874Hard-deletes the project document permanently.
24611875 
2462### Path Parameters
1876#### Path parameters
24631877 
24641878- `document_id: string`
24651879 
24661880 The document ID (tagged ID, e.g., claude_proj_doc_abc123)
24671881 
2468### Header Parameters
1882#### Headers
24691883 
24701884- `"x-api-key": optional string`
24711885 
2472### Returns
1886#### Returns
24731887 
24741888- `id: string`
24751889 
from line 1893
24791893 
24801894 Constant string confirming deletion.
24811895 
2482 - `"claude_project_document_deleted"`
2483 
2484### Example
2485 
2486```http
1896 default: claude_project_document_deleted
1897 
1898#### Example
1899 
1900```bash
24871901curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID \
24881902 -X DELETE \
24891903 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
24901904```
24911905 
2492#### Response
1906##### Response (200)
24931907 
24941908```json
24951909{
from line 1912
24981912}
24991913```
25001914 
2501## Domain Types
2502 
2503### Document Retrieve Response
2504 
2505- `DocumentRetrieveResponse object { id, content, created_at, 2 more }`
2506 
2507 Project document information for compliance responses.
2508 
2509 - `id: string`
2510 
2511 Project document identifier (tagged ID)
2512 
2513 - `content: string`
2514 
2515 Document text content
2516 
2517 - `created_at: string`
2518 
2519 Document creation timestamp
2520 
2521 - `filename: string`
2522 
2523 Document filename
2524 
2525 - `user: object { id, email_address } or null`
2526 
2527 The user who created a project or project document.
2528 
2529 Fields that reference this type are null when the creator's account has
2530 been deleted or the creator is no longer a member of an organization the
2531 key may read.
2532 
2533 - `id: string`
2534 
2535 User identifier (tagged ID)
2536 
2537 - `email_address: string`
2538 
2539 User's email address
2540 
2541### Document Metadata Response
2542 
2543- `DocumentMetadataResponse object { id, claude_project_id, created_at, 5 more }`
2544 
2545 Project document metadata for GET /v1/compliance/apps/projects/documents/{document_id}/metadata.
2546 
2547 Returns metadata only. Use the sibling endpoint (without `/metadata`)
2548 to fetch the document text content.
2549 
2550 - `id: string`
2551 
2552 Project document identifier (tagged ID)
2553 
2554 - `claude_project_id: string`
2555 
2556 The project this document belongs to
2557 
2558 - `created_at: string`
2559 
2560 Document creation timestamp
2561 
2562 - `filename: string`
2563 
2564 Document filename
2565 
2566 - `md5: string`
2567 
2568 Lowercase hex MD5 of the document content (UTF-8 encoded). Matches the `content` field returned by the sibling content endpoint.
2569 
2570 - `mime_type: "text/plain"`
2571 
2572 MIME type of the document content, always plain text
2573 
2574 - `"text/plain"`
2575 
2576 - `size_bytes: number`
2577 
2578 Size in bytes of the document content (UTF-8 encoded)
2579 
2580 - `user: object { id, email_address } or null`
2581 
2582 The user who created a project or project document.
2583 
2584 Fields that reference this type are null when the creator's account has
2585 been deleted or the creator is no longer a member of an organization the
2586 key may read.
2587 
2588 - `id: string`
2589 
2590 User identifier (tagged ID)
2591 
2592 - `email_address: string`
2593 
2594 User's email address
2595 
2596### Document Delete Response
2597 
2598- `DocumentDeleteResponse object { id, type }`
2599 
2600 Response for deleting a project document.
2601 
2602 - `id: string`
2603 
2604 The ID of the project document that was deleted
2605 
2606 - `type: "claude_project_document_deleted"`
2607 
2608 Constant string confirming deletion.
2609 
2610 - `"claude_project_document_deleted"`
2611 
2612# Artifacts
2613 
2614## Get artifact metadata
2615 
2616**get** `/v1/compliance/apps/artifacts/{artifact_version_id}`
1915## Apps › Artifacts
1916 
1917### Get artifact metadata
1918 
1919**GET** `/v1/compliance/apps/artifacts/{artifact_version_id}`
26171920 
26181921Returns metadata for an artifact version, without the content body.
26191922 
from line 1925
26221925encoding of that text, so a DLP consumer can dedupe or match hashes
26231926without downloading every artifact.
26241927 
2625### Path Parameters
1928#### Path parameters
26261929 
26271930- `artifact_version_id: string`
26281931 
26291932 The artifact version ID (tagged ID, e.g., claude_artifact_version_abc123)
26301933 
2631### Header Parameters
1934#### Headers
26321935 
26331936- `"x-api-key": optional string`
26341937 
2635### Returns
1938#### Returns
26361939 
26371940- `id: string`
26381941 
from line 1953
26501953 
26511954 Artifact version creation timestamp
26521955 
1956 format: date-time
1957 
26531958- `md5: string`
26541959 
26551960 Lowercase hex MD5 of the artifact content (UTF-8 encoded). Matches the `content` field returned by the sibling `/content` endpoint.
from line 1971
26661971 
26671972 Artifact version ID e.g. 'claude_artifact_version_abc123'
26681973 
2669### Example
2670 
2671```http
1974#### Example
1975 
1976```bash
26721977curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID \
26731978 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
26741979```
26751980 
2676#### Response
1981##### Response (200)
26771982 
26781983```json
26791984{
from line 1993
26881993}
26891994```
26901995 
2691## Download artifact content
2692 
2693**get** `/v1/compliance/apps/artifacts/{artifact_version_id}/content`
1996### Download artifact content
1997 
1998**GET** `/v1/compliance/apps/artifacts/{artifact_version_id}/content`
26941999 
26952000Download the content of an artifact version for compliance purposes.
26962001 
26972002Returns the full text content of the artifact version.
26982003 
2699### Path Parameters
2004#### Path parameters
27002005 
27012006- `artifact_version_id: string`
27022007 
27032008 The artifact version ID (tagged ID, e.g., claude_artifact_version_abc123)
27042009 
2705### Header Parameters
2010#### Headers
27062011 
27072012- `"x-api-key": optional string`
27082013 
2709### Example
2710 
2711```http
2014#### Example
2015 
2016```bash
27122017curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID/content \
27132018 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
27142019```
27152020 
2716## Domain Types
2717 
2718### Artifact Retrieve Response
2719 
2720- `ArtifactRetrieveResponse object { id, artifact_type, claude_chat_id, 5 more }`
2721 
2722 Artifact version metadata for GET /v1/compliance/apps/artifacts/{artifact_version_id}.
2723 
2724 Returns metadata only. Use the sibling `/content` endpoint to fetch the
2725 artifact body.
2726 
2727 - `id: string`
2728 
2729 Artifact ID e.g. 'claude_artifact_abc123'
2730 
2731 - `artifact_type: string or null`
2732 
2733 MIME-like artifact type e.g. 'application/vnd.ant.code'
2734 
2735 - `claude_chat_id: string`
2736 
2737 The chat this artifact belongs to
2738 
2739 - `created_at: string`
2740 
2741 Artifact version creation timestamp
2742 
2743 - `md5: string`
2744 
2745 Lowercase hex MD5 of the artifact content (UTF-8 encoded). Matches the `content` field returned by the sibling `/content` endpoint.
2746 
2747 - `size_bytes: number`
2748 
2749 Size in bytes of the artifact content (UTF-8 encoded)
2750 
2751 - `title: string or null`
2752 
2753 Artifact title
2754 
2755 - `version_id: string`
2756 
2757 Artifact version ID e.g. 'claude_artifact_version_abc123'
2758 
2759# Sessions
2760 
2761# Local
2762 
2763## List local sessions
2764 
2765**get** `/v1/compliance/apps/sessions/local`
2021## Apps › Sessions › Local
2022 
2023### List local sessions
2024 
2025**GET** `/v1/compliance/apps/sessions/local`
27662026 
27672027List local sessions across the organizations the key may read.
27682028 
27692029Results are ordered by `created_at` descending. Pagination is
27702030forward-only via `next_page`; there is no reverse cursor.
27712031 
2772### Query Parameters
2773 
2774- `created_at: optional object { gte, lt }`
2032#### Query parameters
2033 
2034- `created_at: optional object`
27752035 
27762036 - `gte: optional string`
27772037 
27782038 Only return sessions whose first inference call is at or after this time (RFC 3339; a UTC offset is required).
27792039 
2040 format: date-time
2041 
27802042 - `lt: optional string`
27812043 
27822044 Only return sessions whose first inference call is strictly before this time (RFC 3339; a UTC offset is required).
27832045 
2046 format: date-time
2047 
27842048- `limit: optional number`
27852049 
27862050 Maximum results (default: 100, max: 500)
27872051 
2052 default: 100, maximum: 500, minimum: 1
2053 
27882054- `page: optional string`
27892055 
27902056 Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
27912057 
2792- `updated_at: optional object { gte }`
2058- `updated_at: optional object`
27932059 
27942060 - `gte: optional string`
27952061 
27962062 Only return sessions whose last inference call is at or after this time (RFC 3339; a UTC offset is required). Combines with `created_at.gte` / `created_at.lt`; the ordering and pagination are unchanged. Use it to poll for sessions that have been active since a previous pass — a session that becomes active later can only enter the result, never leave it.
27972063 
2798### Header Parameters
2064 format: date-time
2065 
2066#### Headers
27992067 
28002068- `"x-api-key": optional string`
28012069 
2802### Returns
2803 
2804- `data: array of object { id, created_at, organization_uuid, 5 more }`
2070#### Returns
2071 
2072- `data: array of object`
28052073 
28062074 Page of local sessions, ordered by `created_at` descending; ties are broken by a fixed server-side order. `updated_at` never participates in the ordering; the `updated_at.gte` query parameter filters on it without changing the order or the pagination cursor.
28072075 
from line 2081
28132081 
28142082 Timestamp of the session's first retained inference call (RFC 3339, UTC). When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected, so this value is the timestamp of the earliest retained call: always strictly after the boundary, never the boundary itself.
28152083 
2084 format: date-time
2085 
28162086 - `organization_uuid: string`
28172087 
28182088 UUID of the child organization the session belongs to
from line 2093
28232093 
28242094 - `type: "compliance_local_session"`
28252095 
2826 - `"compliance_local_session"`
2096 default: compliance_local_session
28272097 
28282098 - `updated_at: string`
28292099 
28302100 Timestamp of the session's last retained inference call (RFC 3339, UTC). Always at or after `created_at`. When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected — but because retention removes only the oldest calls, this value (unlike `created_at`) is unaffected until the entire session has aged out. On the list endpoint this value is a lower bound: for a session still active at a page or `created_at.lt` window boundary it can momentarily lag the session's true last activity. Retrieving the session, or its messages, always reflects the exact latest retained call.
28312101 
2832 - `user: object { id, email_address }`
2102 format: date-time
2103 
2104 - `user: object`
28332105 
28342106 The authenticated user at the time of the session. Always set; `user.id` is always populated. `user.email_address` is null when the user's account has been deleted or the user is no longer a member of an organization the key may read.
28352107 
from line 2121
28492121 
28502122 Opaque pagination cursor (prefixed `page_`) for the next page. Null when there is no further page. Treat as an opaque string; the format may change without notice.
28512123 
2852### Example
2853 
2854```http
2124#### Example
2125 
2126```bash
28552127curl https://api.anthropic.com/v1/compliance/apps/sessions/local \
28562128 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
28572129```
28582130 
2859#### Response
2131##### Response (200)
28602132 
28612133```json
28622134{
from line 2150
28782150}
28792151```
28802152 
2881## Retrieve a local session
2882 
2883**get** `/v1/compliance/apps/sessions/local/{local_session_id}`
2153### Retrieve a local session
2154 
2155**GET** `/v1/compliance/apps/sessions/local/{local_session_id}`
28842156 
28852157Retrieve one local session.
28862158 
from line 2161
28892161enforced when the response is served: a session whose every
28902162inference call has aged out returns 404.
28912163 
2892### Path Parameters
2164#### Path parameters
28932165 
28942166- `local_session_id: string`
28952167 
2896### Header Parameters
2168#### Headers
28972169 
28982170- `"x-api-key": optional string`
28992171 
2900### Returns
2172#### Returns
29012173 
29022174- `id: string`
29032175 
from line 2179
29072179 
29082180 Timestamp of the session's first retained inference call (RFC 3339, UTC). When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected, so this value is the timestamp of the earliest retained call: always strictly after the boundary, never the boundary itself.
29092181 
2182 format: date-time
2183 
29102184- `organization_uuid: string`
29112185 
29122186 UUID of the child organization the session belongs to
from line 2191
29172191 
29182192- `type: "compliance_local_session"`
29192193 
2920 - `"compliance_local_session"`
2194 default: compliance_local_session
29212195 
29222196- `updated_at: string`
29232197 
29242198 Timestamp of the session's last retained inference call (RFC 3339, UTC). Always at or after `created_at`. When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected — but because retention removes only the oldest calls, this value (unlike `created_at`) is unaffected until the entire session has aged out. On the list endpoint this value is a lower bound: for a session still active at a page or `created_at.lt` window boundary it can momentarily lag the session's true last activity. Retrieving the session, or its messages, always reflects the exact latest retained call.
29252199 
2926- `user: object { id, email_address }`
2200 format: date-time
2201 
2202- `user: object`
29272203 
29282204 The authenticated user at the time of the session. Always set; `user.id` is always populated. `user.email_address` is null when the user's account has been deleted or the user is no longer a member of an organization the key may read.
29292205 
from line 2215
29392215 
29402216 Workspace identifier (tagged ID, prefixed `wrkspc_`). Null for sessions not attributed to a workspace.
29412217 
2942### Example
2943 
2944```http
2218#### Example
2219 
2220```bash
29452221curl https://api.anthropic.com/v1/compliance/apps/sessions/local/$LOCAL_SESSION_ID \
29462222 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
29472223```
29482224 
2949#### Response
2225##### Response (200)
29502226 
29512227```json
29522228{
from line 2240
29642240}
29652241```
29662242 
2967## Domain Types
2968 
2969### Local List Response
2970 
2971- `LocalListResponse object { id, created_at, organization_uuid, 5 more }`
2972 
2973 A Cowork or Claude Code session that a user ran on their own computer
2974 while signed in with their organization account.
2975 
2976 - `id: string`
2977 
2978 Local session identifier, prefixed `clls_`. Unique within the parent organization. Treat as an opaque string; the format may change without notice.
2979 
2980 - `created_at: string`
2981 
2982 Timestamp of the session's first retained inference call (RFC 3339, UTC). When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected, so this value is the timestamp of the earliest retained call: always strictly after the boundary, never the boundary itself.
2983 
2984 - `organization_uuid: string`
2985 
2986 UUID of the child organization the session belongs to
2987 
2988 - `product_surface: string or null`
2989 
2990 The product the session ran in: `cowork` for Cowork sessions in Claude Desktop, or `claude_code` for Claude Code sessions. New values appear as coverage expands; treat unrecognized values as opaque. `null` when the surface was not recorded.
2991 
2992 - `type: "compliance_local_session"`
2993 
2994 - `"compliance_local_session"`
2995 
2996 - `updated_at: string`
2997 
2998 Timestamp of the session's last retained inference call (RFC 3339, UTC). Always at or after `created_at`. When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected — but because retention removes only the oldest calls, this value (unlike `created_at`) is unaffected until the entire session has aged out. On the list endpoint this value is a lower bound: for a session still active at a page or `created_at.lt` window boundary it can momentarily lag the session's true last activity. Retrieving the session, or its messages, always reflects the exact latest retained call.
2999 
3000 - `user: object { id, email_address }`
3001 
3002 The authenticated user at the time of the session. Always set; `user.id` is always populated. `user.email_address` is null when the user's account has been deleted or the user is no longer a member of an organization the key may read.
3003 
3004 - `id: string`
3005 
3006 User identifier (tagged ID, prefixed `user_`). Always set, so attribution survives after the user's account is deleted or the user leaves the organizations the key may read.
3007 
3008 - `email_address: string or null`
3009 
3010 User's email address. Null when the user's account has been deleted or the user is no longer a member of an organization the key may read. The messages endpoint does not resolve email addresses; this field is always null there.
3011 
3012 - `workspace_id: string or null`
3013 
3014 Workspace identifier (tagged ID, prefixed `wrkspc_`). Null for sessions not attributed to a workspace.
3015 
3016### Local Retrieve Response
3017 
3018- `LocalRetrieveResponse object { id, created_at, organization_uuid, 5 more }`
3019 
3020 A Cowork or Claude Code session that a user ran on their own computer
3021 while signed in with their organization account.
3022 
3023 - `id: string`
3024 
3025 Local session identifier, prefixed `clls_`. Unique within the parent organization. Treat as an opaque string; the format may change without notice.
3026 
3027 - `created_at: string`
3028 
3029 Timestamp of the session's first retained inference call (RFC 3339, UTC). When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected, so this value is the timestamp of the earliest retained call: always strictly after the boundary, never the boundary itself.
3030 
3031 - `organization_uuid: string`
3032 
3033 UUID of the child organization the session belongs to
3034 
3035 - `product_surface: string or null`
3036 
3037 The product the session ran in: `cowork` for Cowork sessions in Claude Desktop, or `claude_code` for Claude Code sessions. New values appear as coverage expands; treat unrecognized values as opaque. `null` when the surface was not recorded.
3038 
3039 - `type: "compliance_local_session"`
3040 
3041 - `"compliance_local_session"`
3042 
3043 - `updated_at: string`
3044 
3045 Timestamp of the session's last retained inference call (RFC 3339, UTC). Always at or after `created_at`. When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected — but because retention removes only the oldest calls, this value (unlike `created_at`) is unaffected until the entire session has aged out. On the list endpoint this value is a lower bound: for a session still active at a page or `created_at.lt` window boundary it can momentarily lag the session's true last activity. Retrieving the session, or its messages, always reflects the exact latest retained call.
3046 
3047 - `user: object { id, email_address }`
3048 
3049 The authenticated user at the time of the session. Always set; `user.id` is always populated. `user.email_address` is null when the user's account has been deleted or the user is no longer a member of an organization the key may read.
3050 
3051 - `id: string`
3052 
3053 User identifier (tagged ID, prefixed `user_`). Always set, so attribution survives after the user's account is deleted or the user leaves the organizations the key may read.
3054 
3055 - `email_address: string or null`
3056 
3057 User's email address. Null when the user's account has been deleted or the user is no longer a member of an organization the key may read. The messages endpoint does not resolve email addresses; this field is always null there.
3058 
3059 - `workspace_id: string or null`
3060 
3061 Workspace identifier (tagged ID, prefixed `wrkspc_`). Null for sessions not attributed to a workspace.
3062 
3063# Messages
3064 
3065## Retrieve local session messages
3066 
3067**get** `/v1/compliance/apps/sessions/local/{local_session_id}/messages`
2243## Apps › Sessions › Local › Messages
2244 
2245### Retrieve local session messages
2246 
2247**GET** `/v1/compliance/apps/sessions/local/{local_session_id}/messages`
30682248 
30692249Read one local session's transcript, oldest-first by default.
30702250 
from line 2256
30762256honored for 24 hours: a cursor older than that is rejected with an
30772257explicit 400; restart the walk to read under the current boundary.
30782258 
3079### Path Parameters
2259#### Path parameters
30802260 
30812261- `local_session_id: string`
30822262 
3083### Query Parameters
2263#### Query parameters
30842264 
30852265- `limit: optional number`
30862266 
30872267 Maximum results (default: 100, max: 1000)
30882268 
2269 default: 100, maximum: 1000, minimum: 1
2270 
30892271- `order: optional "asc" or "desc"`
30902272 
30912273 Sort direction. `asc` (oldest-first, default) or `desc`.
30922274 
2275 default: asc
2276 
30932277 - `"asc"`
30942278 
30952279 - `"desc"`
from line 2286
31022286 
31032287 Truncate each text item inside a tool result to at most this many bytes (cut on a code-point boundary). Pass `-1` to request the server maximum (approximately 1 MiB); larger values are clamped to it. `0` is not a valid value.
31042288 
2289 default: 10000, maximum: 2147483647, minimum: -1
2290 
31052291- `tool_use_input_max_bytes: optional number`
31062292 
31072293 Truncate each tool-use input to at most this many bytes (cut on a code-point boundary so the result is valid UTF-8). Pass `-1` to request the server maximum (approximately 1 MiB); larger values are clamped to it. `0` is not a valid value.
31082294 
3109### Header Parameters
2295 default: 10000, maximum: 2147483647, minimum: -1
2296 
2297#### Headers
31102298 
31112299- `"x-api-key": optional string`
31122300 
3113### Returns
3114 
3115- `data: array of object { id, content, created_at, 4 more }`
2301#### Returns
2302 
2303- `data: array of object`
31162304 
31172305 Transcript turns for this page, in call order: oldest call first by default, newest call first with `order=desc`. The messages of one call carry the call's timestamp and follow each other in transcript order; a page boundary can fall between them.
31182306 
from line 2308
31202308 
31212309 Message identifier, prefixed `clsm_`. Stable for as long as the message's turn is retained: identifiers of retained turns do not change as older turns age out of the organization's retention period. The `retention_elapsed` placeholder's identifier is distinct from every retained turn's and changes only when further turns age out.
31222310 
3123 - `content: array of object { text, truncated, type } or object { id, input, name, 2 more } or object { content, is_error, name, 3 more }`
2311 - `content: array of object or object or object`
31242312 
31252313 Content blocks within the message, discriminated on `type` (`text` / `tool_use` / `tool_result`: the same discriminator values as the claude.ai chat-messages endpoint; the tool variants omit `integration_name` and `mcp_server_url`, and `text` carries `truncated`). Extended-thinking content is never included. The request's `system` field is never included; a presence-only marker message is emitted when it was set. The request's `tools[]` definitions are never included as transcript messages. Project-level instructions (such as CLAUDE.md files) appear in the message stream as a user-role context block and are included. Empty when `provenance.type` is `content_unavailable`.
31262314 
3127 - `Text object { text, truncated, type }`
2315 - `Text object`
31282316 
31292317 Text content block.
31302318 
from line 2324
31362324 
31372325 True when `text` was shortened by the server's fixed per-string bound (approximately 1 MiB), or when ancillary content the block carried (such as citations) was omitted, or when this block stands in for a non-text block whose content is not shown, or when it is an explanatory marker the server inserted (its text enclosed in square brackets, e.g. prefacing client-asserted history). There is no request parameter that raises the per-string bound.
31382326 
2327 default: false
2328 
31392329 - `type: "text"`
31402330 
3141 - `"text"`
3142 
3143 - `ToolUse object { id, input, name, 2 more }`
2331 default: text
2332 
2333 - `ToolUse object`
31442334 
31452335 Tool invocation requested by the assistant.
31462336 
from line 2350
31602350 
31612351 True when `input` was shortened. Pass `tool_use_input_max_bytes=-1` to request the server maximum.
31622352 
2353 default: false
2354 
31632355 - `type: "tool_use"`
31642356 
3165 - `"tool_use"`
3166 
3167 - `ToolResult object { content, is_error, name, 3 more }`
2357 default: tool_use
2358 
2359 - `ToolResult object`
31682360 
31692361 Result returned by a tool invocation.
31702362 
3171 - `content: array of object { text, type }`
2363 - `content: array of object`
31722364 
31732365 Text content returned by the tool. Non-text item types are omitted and signalled via `truncated` with an in-band item-count marker.
31742366 
from line 2370
31782370 
31792371 - `type: "text"`
31802372 
3181 - `"text"`
2373 default: text
31822374 
31832375 - `is_error: boolean`
31842376 
from line 2388
31962388 
31972389 True when one or more text items in `content` were shortened or non-text items were omitted. Pass `tool_result_max_bytes=-1` to request the server maximum.
31982390 
2391 default: false
2392 
31992393 - `type: "tool_result"`
32002394 
3201 - `"tool_result"`
2395 default: tool_result
32022396 
32032397 - `created_at: string`
32042398 
32052399 When the message was recorded (RFC 3339, UTC)
32062400 
2401 format: date-time
2402 
32072403 - `model: string or null`
32082404 
32092405 The model that served this assistant turn, as reported in the `model` field of the underlying Messages API response. Null on user messages and on any assistant message whose `provenance` is set: client-asserted history and synthetic markers were not produced by a model during this session, and for unavailable content the serving model is not known.
32102406 
3211 - `provenance: object { reason, type } or object { type } or object { type } or null`
2407 - `provenance: object or object or object or null`
32122408 
32132409 Where this turn's content came from, discriminated on `type`. Null (the common case) means verified content: on an assistant message, content Claude produced during this session; on a user message, content the user sent. `content_unavailable`: the turn's content cannot be returned and `content` is empty; `reason` says why. `client_asserted`: assistant content the client supplied as conversation history; `content` shows what the model received but its authorship is not verified; never on user-role messages. `synthetic_marker`: a transcript marker the endpoint generated rather than content either party sent during the session. Both `client_asserted` and `synthetic_marker` can result from normal request or client processing, not only client modification. Callers should tolerate unrecognized `type` values.
32142410 
3215 - `ContentUnavailable object { reason, type }`
2411 - `ContentUnavailable object`
32162412 
32172413 The turn's content cannot be returned; `content` is empty.
32182414 
from line 2418
32222418 
32232419 - `type: "content_unavailable"`
32242420 
3225 - `"content_unavailable"`
3226 
3227 - `ClientAsserted object { type }`
2421 default: content_unavailable
2422 
2423 - `ClientAsserted object`
32282424 
32292425 Assistant content the client supplied as conversation history
32302426 rather than produced by Claude during this session. `content` shows
from line 2430
32342430 
32352431 - `type: "client_asserted"`
32362432 
3237 - `"client_asserted"`
3238 
3239 - `SyntheticMarker object { type }`
2433 default: client_asserted
2434 
2435 - `SyntheticMarker object`
32402436 
32412437 A transcript marker generated by the endpoint rather than sent by
32422438 either party during the session. Marker messages indicate that the
from line 2446
32502446 
32512447 - `type: "synthetic_marker"`
32522448 
3253 - `"synthetic_marker"`
2449 default: synthetic_marker
32542450 
32552451 - `role: "assistant" or "user"`
32562452 
from line 2458
32622458 
32632459 - `type: "compliance_local_session_message"`
32642460 
3265 - `"compliance_local_session_message"`
2461 default: compliance_local_session_message
32662462 
32672463- `next_page: string or null`
32682464 
32692465 Opaque pagination cursor (prefixed `page_`) for the next page. Null when there is no further page. Treat as an opaque string; the format may change without notice.
32702466 
3271- `session: object { id, created_at, organization_uuid, 5 more }`
2467- `session: object`
32722468 
32732469 The local session the messages belong to. `user.email_address` is always null on this endpoint; the messages endpoint does not resolve email addresses.
32742470 
from line 2476
32802476 
32812477 Timestamp of the session's first retained inference call (RFC 3339, UTC). When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected, so this value is the timestamp of the earliest retained call: always strictly after the boundary, never the boundary itself.
32822478 
2479 format: date-time
2480 
32832481 - `organization_uuid: string`
32842482 
32852483 UUID of the child organization the session belongs to
from line 2488
32902488 
32912489 - `type: "compliance_local_session"`
32922490 
3293 - `"compliance_local_session"`
2491 default: compliance_local_session
32942492 
32952493 - `updated_at: string`
32962494 
32972495 Timestamp of the session's last retained inference call (RFC 3339, UTC). Always at or after `created_at`. When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected — but because retention removes only the oldest calls, this value (unlike `created_at`) is unaffected until the entire session has aged out. On the list endpoint this value is a lower bound: for a session still active at a page or `created_at.lt` window boundary it can momentarily lag the session's true last activity. Retrieving the session, or its messages, always reflects the exact latest retained call.
32982496 
3299 - `user: object { id, email_address }`
2497 format: date-time
2498 
2499 - `user: object`
33002500 
33012501 The authenticated user at the time of the session. Always set; `user.id` is always populated. `user.email_address` is null when the user's account has been deleted or the user is no longer a member of an organization the key may read.
33022502 
from line 2512
33122512 
33132513 Workspace identifier (tagged ID, prefixed `wrkspc_`). Null for sessions not attributed to a workspace.
33142514 
3315### Example
3316 
3317```http
2515#### Example
2516 
2517```bash
33182518curl https://api.anthropic.com/v1/compliance/apps/sessions/local/$LOCAL_SESSION_ID/messages \
33192519 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
33202520```
33212521 
3322#### Response
2522##### Response (200)
33232523 
33242524```json
33252525{
from line 2560
33602560}
33612561```
33622562 
3363## Domain Types
3364 
3365### Message List Response
3366 
3367- `MessageListResponse object { id, content, created_at, 4 more }`
3368 
3369 A single user or assistant turn in a local session transcript.
3370 
3371 - `id: string`
3372 
3373 Message identifier, prefixed `clsm_`. Stable for as long as the message's turn is retained: identifiers of retained turns do not change as older turns age out of the organization's retention period. The `retention_elapsed` placeholder's identifier is distinct from every retained turn's and changes only when further turns age out.
3374 
3375 - `content: array of object { text, truncated, type } or object { id, input, name, 2 more } or object { content, is_error, name, 3 more }`
3376 
3377 Content blocks within the message, discriminated on `type` (`text` / `tool_use` / `tool_result`: the same discriminator values as the claude.ai chat-messages endpoint; the tool variants omit `integration_name` and `mcp_server_url`, and `text` carries `truncated`). Extended-thinking content is never included. The request's `system` field is never included; a presence-only marker message is emitted when it was set. The request's `tools[]` definitions are never included as transcript messages. Project-level instructions (such as CLAUDE.md files) appear in the message stream as a user-role context block and are included. Empty when `provenance.type` is `content_unavailable`.
3378 
3379 - `Text object { text, truncated, type }`
3380 
3381 Text content block.
3382 
3383 - `text: string`
3384 
3385 Text content from the user or the assistant
3386 
3387 - `truncated: boolean`
3388 
3389 True when `text` was shortened by the server's fixed per-string bound (approximately 1 MiB), or when ancillary content the block carried (such as citations) was omitted, or when this block stands in for a non-text block whose content is not shown, or when it is an explanatory marker the server inserted (its text enclosed in square brackets, e.g. prefacing client-asserted history). There is no request parameter that raises the per-string bound.
3390 
3391 - `type: "text"`
3392 
3393 - `"text"`
3394 
3395 - `ToolUse object { id, input, name, 2 more }`
3396 
3397 Tool invocation requested by the assistant.
3398 
3399 - `id: string or null`
3400 
3401 Tool-use ID, e.g. 'toolu_01AbC...'
3402 
3403 - `input: string`
3404 
3405 Arguments passed to the tool, as a JSON-encoded string. May be shortened (see the `truncated` field); a truncated value is cut mid-document and is not valid JSON.
3406 
3407 - `name: string`
3408 
3409 Name of the tool invoked
3410 
3411 - `truncated: boolean`
3412 
3413 True when `input` was shortened. Pass `tool_use_input_max_bytes=-1` to request the server maximum.
3414 
3415 - `type: "tool_use"`
3416 
3417 - `"tool_use"`
3418 
3419 - `ToolResult object { content, is_error, name, 3 more }`
3420 
3421 Result returned by a tool invocation.
3422 
3423 - `content: array of object { text, type }`
3424 
3425 Text content returned by the tool. Non-text item types are omitted and signalled via `truncated` with an in-band item-count marker.
3426 
3427 - `text: string`
3428 
3429 Text returned by the tool
3430 
3431 - `type: "text"`
3432 
3433 - `"text"`
3434 
3435 - `is_error: boolean`
3436 
3437 True when the tool reported an error
3438 
3439 - `name: string`
3440 
3441 Name of the tool that produced this result
3442 
3443 - `tool_use_id: string or null`
3444 
3445 ID of the tool_use block this result responds to
3446 
3447 - `truncated: boolean`
3448 
3449 True when one or more text items in `content` were shortened or non-text items were omitted. Pass `tool_result_max_bytes=-1` to request the server maximum.
3450 
3451 - `type: "tool_result"`
3452 
3453 - `"tool_result"`
3454 
3455 - `created_at: string`
3456 
3457 When the message was recorded (RFC 3339, UTC)
3458 
3459 - `model: string or null`
3460 
3461 The model that served this assistant turn, as reported in the `model` field of the underlying Messages API response. Null on user messages and on any assistant message whose `provenance` is set: client-asserted history and synthetic markers were not produced by a model during this session, and for unavailable content the serving model is not known.
3462 
3463 - `provenance: object { reason, type } or object { type } or object { type } or null`
3464 
3465 Where this turn's content came from, discriminated on `type`. Null (the common case) means verified content: on an assistant message, content Claude produced during this session; on a user message, content the user sent. `content_unavailable`: the turn's content cannot be returned and `content` is empty; `reason` says why. `client_asserted`: assistant content the client supplied as conversation history; `content` shows what the model received but its authorship is not verified; never on user-role messages. `synthetic_marker`: a transcript marker the endpoint generated rather than content either party sent during the session. Both `client_asserted` and `synthetic_marker` can result from normal request or client processing, not only client modification. Callers should tolerate unrecognized `type` values.
3466 
3467 - `ContentUnavailable object { reason, type }`
3468 
3469 The turn's content cannot be returned; `content` is empty.
3470 
3471 - `reason: string`
3472 
3473 Why this turn's content cannot be returned, e.g. `not_captured` (the content was not captured for compliance retrieval), `client_aborted` (the client closed the connection or cancelled the request before the response completed, so the response was not captured for this turn; any partial output already streamed to the client is not included; assistant-role turns only), `cmek_key_revoked` (the content is encrypted under the organization's customer-managed key and that key is unavailable), `retention_elapsed` (the content lies past the organization's retention boundary; on the placeholder standing in for every pre-boundary turn), or `oversize` (the message exceeds the server's per-message size bound even after per-block truncation). Callers should tolerate unrecognized values. `not_captured` is not proof that no record was stored: content withheld by the storage layer's fail-closed access policies carries the same reason and is deliberately indistinguishable from content that was never captured.
3474 
3475 - `type: "content_unavailable"`
3476 
3477 - `"content_unavailable"`
3478 
3479 - `ClientAsserted object { type }`
3480 
3481 Assistant content the client supplied as conversation history
3482 rather than produced by Claude during this session. `content` shows
3483 what the model received but its authorship is not verified; this can
3484 result from normal request or client processing, not only client
3485 modification. Never on user-role messages.
3486 
3487 - `type: "client_asserted"`
3488 
3489 - `"client_asserted"`
3490 
3491 - `SyntheticMarker object { type }`
3492 
3493 A transcript marker generated by the endpoint rather than sent by
3494 either party during the session. Marker messages indicate that the
3495 prompt history diverged from what was captured, that the request's
3496 `system` field was present but is not shown, or that
3497 prompt-carried history was suppressed because the session spans the
3498 child organization's retention boundary and those turns cannot be
3499 placed against it (the marker's text names the cause). Markers that
3500 report a mismatch with captured history can result from normal request
3501 or client processing, not only client modification.
3502 
3503 - `type: "synthetic_marker"`
3504 
3505 - `"synthetic_marker"`
3506 
3507 - `role: "assistant" or "user"`
3508 
3509 Message sender (`user` or `assistant`)
3510 
3511 - `"assistant"`
3512 
3513 - `"user"`
3514 
3515 - `type: "compliance_local_session_message"`
3516 
3517 - `"compliance_local_session_message"`
3518 
3519# Remote
3520 
3521## List remote sessions
3522 
3523**get** `/v1/compliance/apps/sessions/remote`
2563## Apps › Sessions › Remote
2564 
2565### List remote sessions
2566 
2567**GET** `/v1/compliance/apps/sessions/remote`
35242568 
35252569List remote sessions (Cowork sessions that run in Anthropic-managed
35262570cloud environments) across the organizations the key may read.
from line 2584
35402584forward-only: pass the response's `next_page` value back as `page` to
35412585retrieve the next page, and stop when `next_page` is null.
35422586 
3543### Query Parameters
3544 
3545- `created_at: optional object { gt, gte, lt, lte }`
2587#### Query parameters
2588 
2589- `created_at: optional object`
35462590 
35472591 - `gt: optional string`
35482592 
35492593 Filter remote sessions created after this time (RFC 3339 format)
35502594 
2595 format: date-time
2596 
35512597 - `gte: optional string`
35522598 
35532599 Filter remote sessions created at or after this time (RFC 3339 format)
35542600 
2601 format: date-time
2602 
35552603 - `lt: optional string`
35562604 
35572605 Filter remote sessions created before this time (RFC 3339 format)
35582606 
2607 format: date-time
2608 
35592609 - `lte: optional string`
35602610 
35612611 Filter remote sessions created at or before this time (RFC 3339 format)
35622612 
2613 format: date-time
2614 
35632615- `limit: optional number`
35642616 
35652617 Maximum results (default: 100, max: 500)
35662618 
2619 default: 100, maximum: 500, minimum: 1
2620 
35672621- `organization_ids: optional array of string`
35682622 
35692623 Filter to specific child organization identifiers. Omit to enumerate every child organization the key may read.
35702624 
2625 maxItems: 500
2626 
35712627- `page: optional string`
35722628 
35732629 Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
from line 2632
35762632 
35772633 Filter to sessions owned by specific users (max 10 per request). Agent-owned sessions are excluded when this filter is set.
35782634 
3579### Header Parameters
2635 maxItems: 10
2636 
2637#### Headers
35802638 
35812639- `"x-api-key": optional string`
35822640 
3583### Returns
3584 
3585- `data: array of object { id, agent_id, claude_project_id, 7 more }`
2641#### Returns
2642 
2643- `data: array of object`
35862644 
35872645 - `id: string`
35882646 
from line 2658
36002658 
36012659 When the session was created (RFC 3339, UTC)
36022660 
2661 format: date-time
2662 
36032663 - `organization_uuid: string`
36042664 
36052665 UUID of the organization the session belongs to
from line 2668
36082668 
36092669 The Claude product the session was created from. Currently `cowork_remote`, for Cowork sessions started on claude.ai web or mobile. More values will appear as other surfaces launch, so treat any unrecognized value as an unclassified surface rather than an error. Null for sessions created before this field was recorded, for surfaces that do not stamp it, and for unrecognized tag values.
36102670 
3611 - `started_by_user: object { id, email_address } or null`
2671 - `started_by_user: object or null`
36122672 
36132673 A user associated with a remote session.
36142674 
from line 2688
36282688 
36292689 When the session was last modified (RFC 3339, UTC)
36302690 
3631 - `user: object { id, email_address } or null`
2691 format: date-time
2692 
2693 - `user: object or null`
36322694 
36332695 A user associated with a remote session.
36342696 
from line 2706
36442706 
36452707 Opaque page token; pass as `page` to retrieve the next page. Null when no rows exist after this page. Treat this value as opaque; do not parse or store it long-term, as the format may change without notice.
36462708 
3647### Example
3648 
3649```http
2709#### Example
2710 
2711```bash
36502712curl https://api.anthropic.com/v1/compliance/apps/sessions/remote \
36512713 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
36522714```
36532715 
3654#### Response
2716##### Response (200)
36552717 
36562718```json
36572719{
from line 2736
36742736}
36752737```
36762738 
3677## Domain Types
3678 
3679### Remote List Response
3680 
3681- `RemoteListResponse object { id, agent_id, claude_project_id, 7 more }`
3682 
3683 Metadata for one remote session, as returned in the list response
3684 and in the messages response's `session` field.
3685 
3686 Carries session attributes only, not transcript content. Use the
3687 messages endpoint to retrieve a session's transcript.
3688 
3689 - `id: string`
3690 
3691 Remote session identifier
3692 
3693 - `agent_id: string or null`
3694 
3695 Identifier of the automated agent that owns the session. Null for user-owned sessions. At most one of `user` and `agent_id` is set.
3696 
3697 - `claude_project_id: string or null`
3698 
3699 ID of the project the session is bound to. Null when the session has no project binding.
3700 
3701 - `created_at: string`
3702 
3703 When the session was created (RFC 3339, UTC)
3704 
3705 - `organization_uuid: string`
3706 
3707 UUID of the organization the session belongs to
3708 
3709 - `product_surface: string or null`
3710 
3711 The Claude product the session was created from. Currently `cowork_remote`, for Cowork sessions started on claude.ai web or mobile. More values will appear as other surfaces launch, so treat any unrecognized value as an unclassified surface rather than an error. Null for sessions created before this field was recorded, for surfaces that do not stamp it, and for unrecognized tag values.
3712 
3713 - `started_by_user: object { id, email_address } or null`
3714 
3715 A user associated with a remote session.
3716 
3717 - `id: string`
3718 
3719 User identifier
3720 
3721 - `email_address: string or null`
3722 
3723 User's email address. Null when the user is no longer a member of an organization the key may read — `id` remains set so attribution is preserved. The messages endpoint does not resolve email addresses; this field is always null there.
3724 
3725 - `status: string`
3726 
3727 Session lifecycle state. One of `active`, `paused`, `archived`, or `failed` — the lifecycle states the owning product surface exposes — plus `pending`, a brief transient state that resolves before any transcript content exists. The list endpoint includes `pending`; the messages endpoint returns 404 for it. Deleted sessions are not returned on either endpoint. Treat unrecognized values as an unknown state rather than an error.
3728 
3729 - `updated_at: string`
3730 
3731 When the session was last modified (RFC 3339, UTC)
3732 
3733 - `user: object { id, email_address } or null`
3734 
3735 A user associated with a remote session.
3736 
3737 - `id: string`
3738 
3739 User identifier
3740 
3741 - `email_address: string or null`
3742 
3743 User's email address. Null when the user is no longer a member of an organization the key may read — `id` remains set so attribution is preserved. The messages endpoint does not resolve email addresses; this field is always null there.
3744 
3745# Messages
3746 
3747## Retrieve remote session messages
3748 
3749**get** `/v1/compliance/apps/sessions/remote/{claude_remote_session_id}/messages`
2739## Apps › Sessions › Remote › Messages
2740 
2741### Retrieve remote session messages
2742 
2743**GET** `/v1/compliance/apps/sessions/remote/{claude_remote_session_id}/messages`
37502744 
37512745Retrieve one remote session's transcript: user prompts, assistant
37522746responses, and tool calls and results. Thinking blocks and images are
from line 2763
37692763and for sessions outside the organizations the key may read. A
37702764malformed session identifier returns 400.
37712765 
3772### Path Parameters
2766#### Path parameters
37732767 
37742768- `claude_remote_session_id: string`
37752769 
37762770 The remote session identifier (`cse_...`) to retrieve
37772771 
3778### Query Parameters
2772#### Query parameters
37792773 
37802774- `limit: optional number`
37812775 
37822776 Maximum results (default: 100, max: 1000)
37832777 
2778 default: 100, maximum: 1000, minimum: 1
2779 
37842780- `order: optional "asc" or "desc"`
37852781 
37862782 Sort direction. `asc` (oldest-first) or `desc`.
37872783 
2784 default: asc
2785 
37882786 - `"asc"`
37892787 
37902788 - `"desc"`
from line 2795
37972795 
37982796 Truncate each text item inside a tool result to at most this many bytes (cut on a code-point boundary). Pass `-1` to request the server maximum. `0` is not a valid value.
37992797 
2798 default: 10000, maximum: 2147483647, minimum: -1
2799 
38002800- `tool_use_input_max_bytes: optional number`
38012801 
38022802 Truncate each tool-use input to at most this many bytes (cut on a code-point boundary so the result is valid UTF-8). Pass `-1` to request the server maximum. `0` is not a valid value.
38032803 
3804### Header Parameters
2804 default: 10000, maximum: 2147483647, minimum: -1
2805 
2806#### Headers
38052807 
38062808- `"x-api-key": optional string`
38072809 
3808### Returns
3809 
3810- `data: array of object { id, content, content_unavailable, 3 more }`
2810#### Returns
2811 
2812- `data: array of object`
38112813 
38122814 Transcript turns for this page, ordered by transcript position. `created_at` is a commit timestamp and may tie or invert under concurrent writes; do not re-sort by it.
38132815 
from line 2817
38152817 
38162818 Unique identifier for the message, e.g. `csev_abc123`
38172819 
3818 - `content: array of object { text, truncated, type } or object { id, input, name, 2 more } or object { content, is_error, name, 3 more }`
2820 - `content: array of object or object or object`
38192821 
38202822 Content blocks within the message
38212823 
3822 - `Text object { text, truncated, type }`
2824 - `Text object`
38232825 
38242826 Text content block.
38252827 
from line 2833
38312833 
38322834 True when `text` exceeded the server-defined maximum (approximately 1 MiB) and was shortened.
38332835 
2836 default: false
2837 
38342838 - `type: "text"`
38352839 
3836 - `"text"`
3837 
3838 - `ToolUse object { id, input, name, 2 more }`
2840 default: text
2841 
2842 - `ToolUse object`
38392843 
38402844 Tool invocation requested by the assistant.
38412845 
from line 2859
38552859 
38562860 True when `input` was shortened. Pass `tool_use_input_max_bytes=-1` to request full content, subject to the server-side maximum.
38572861 
2862 default: false
2863 
38582864 - `type: "tool_use"`
38592865 
3860 - `"tool_use"`
3861 
3862 - `ToolResult object { content, is_error, name, 3 more }`
2866 default: tool_use
2867 
2868 - `ToolResult object`
38632869 
38642870 Result returned by a tool invocation.
38652871 
3866 - `content: array of object { text, type }`
2872 - `content: array of object`
38672873 
38682874 Text content returned by the tool. Non-text item types are omitted.
38692875 
from line 2879
38732879 
38742880 - `type: "text"`
38752881 
3876 - `"text"`
2882 default: text
38772883 
38782884 - `is_error: boolean`
38792885 
from line 2897
38912897 
38922898 True when one or more text items in `content` were shortened. Pass `tool_result_max_bytes=-1` to request full content, subject to the server-side maximum.
38932899 
2900 default: false
2901 
38942902 - `type: "tool_result"`
38952903 
3896 - `"tool_result"`
2904 default: tool_result
38972905 
38982906 - `content_unavailable: boolean`
38992907 
39002908 True when the stored content could not be returned — it could not be decrypted, or it exceeded the server's per-event size bound. `content` is empty in that case; this distinguishes 'no content' from 'content withheld'.
39012909 
2910 default: false
2911 
39022912 - `created_at: string`
39032913 
39042914 When the message was recorded (RFC 3339, UTC)
39052915 
2916 format: date-time
2917 
39062918 - `role: "assistant" or "user"`
39072919 
39082920 Message sender (`user` or `assistant`)
from line 2931
39192931 
39202932 Opaque page token; pass as `page` to retrieve the next page. Null when no rows exist after this page. Treat this value as opaque; do not parse or store it long-term, as the format may change without notice.
39212933 
3922- `session: object { id, agent_id, claude_project_id, 7 more }`
2934- `session: object`
39232935 
39242936 Session metadata. `started_by_user`, `user.email_address`, and `claude_project_id` are always null on this endpoint; the messages endpoint resolves neither email addresses nor project bindings.
39252937 
from line 2951
39392951 
39402952 When the session was created (RFC 3339, UTC)
39412953 
2954 format: date-time
2955 
39422956 - `organization_uuid: string`
39432957 
39442958 UUID of the organization the session belongs to
from line 2961
39472961 
39482962 The Claude product the session was created from. Currently `cowork_remote`, for Cowork sessions started on claude.ai web or mobile. More values will appear as other surfaces launch, so treat any unrecognized value as an unclassified surface rather than an error. Null for sessions created before this field was recorded, for surfaces that do not stamp it, and for unrecognized tag values.
39492963 
3950 - `started_by_user: object { id, email_address } or null`
2964 - `started_by_user: object or null`
39512965 
39522966 A user associated with a remote session.
39532967 
from line 2981
39672981 
39682982 When the session was last modified (RFC 3339, UTC)
39692983 
3970 - `user: object { id, email_address } or null`
2984 format: date-time
2985 
2986 - `user: object or null`
39712987 
39722988 A user associated with a remote session.
39732989 
from line 2995
39792995 
39802996 User's email address. Null when the user is no longer a member of an organization the key may read — `id` remains set so attribution is preserved. The messages endpoint does not resolve email addresses; this field is always null there.
39812997 
3982### Example
3983 
3984```http
2998#### Example
2999 
3000```bash
39853001curl https://api.anthropic.com/v1/compliance/apps/sessions/remote/$CLAUDE_REMOTE_SESSION_ID/messages \
39863002 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
39873003```
39883004 
3989#### Response
3005##### Response (200)
39903006 
39913007```json
39923008{
from line 3043
40273043 }
40283044}
40293045```
4030 
4031## Domain Types
4032 
4033### Message List Response
4034 
4035- `MessageListResponse object { id, content, content_unavailable, 3 more }`
4036 
4037 A single user or assistant turn in a remote session transcript.
4038 
4039 `content` is a discriminated union of `text`, `tool_use`, and
4040 `tool_result` blocks.
4041 
4042 - `id: string`
4043 
4044 Unique identifier for the message, e.g. `csev_abc123`
4045 
4046 - `content: array of object { text, truncated, type } or object { id, input, name, 2 more } or object { content, is_error, name, 3 more }`
4047 
4048 Content blocks within the message
4049 
4050 - `Text object { text, truncated, type }`
4051 
4052 Text content block.
4053 
4054 - `text: string`
4055 
4056 Text content from the user or the assistant
4057 
4058 - `truncated: boolean`
4059 
4060 True when `text` exceeded the server-defined maximum (approximately 1 MiB) and was shortened.
4061 
4062 - `type: "text"`
4063 
4064 - `"text"`
4065 
4066 - `ToolUse object { id, input, name, 2 more }`
4067 
4068 Tool invocation requested by the assistant.
4069 
4070 - `id: string or null`
4071 
4072 Tool-use ID, e.g. 'toolu_01AbC...'
4073 
4074 - `input: string`
4075 
4076 Arguments passed to the tool, as a JSON-encoded string. May be shortened — see the `truncated` field
4077 
4078 - `name: string`
4079 
4080 Name of the tool invoked
4081 
4082 - `truncated: boolean`
4083 
4084 True when `input` was shortened. Pass `tool_use_input_max_bytes=-1` to request full content, subject to the server-side maximum.
4085 
4086 - `type: "tool_use"`
4087 
4088 - `"tool_use"`
4089 
4090 - `ToolResult object { content, is_error, name, 3 more }`
4091 
4092 Result returned by a tool invocation.
4093 
4094 - `content: array of object { text, type }`
4095 
4096 Text content returned by the tool. Non-text item types are omitted.
4097 
4098 - `text: string`
4099 
4100 Text returned by the tool
4101 
4102 - `type: "text"`
4103 
4104 - `"text"`
4105 
4106 - `is_error: boolean`
4107 
4108 True when the tool reported an error
4109 
4110 - `name: string`
4111 
4112 Name of the tool that produced this result
4113 
4114 - `tool_use_id: string or null`
4115 
4116 ID of the tool_use block this result responds to
4117 
4118 - `truncated: boolean`
4119 
4120 True when one or more text items in `content` were shortened. Pass `tool_result_max_bytes=-1` to request full content, subject to the server-side maximum.
4121 
4122 - `type: "tool_result"`
4123 
4124 - `"tool_result"`
4125 
4126 - `content_unavailable: boolean`
4127 
4128 True when the stored content could not be returned — it could not be decrypted, or it exceeded the server's per-event size bound. `content` is empty in that case; this distinguishes 'no content' from 'content withheld'.
4129 
4130 - `created_at: string`
4131 
4132 When the message was recorded (RFC 3339, UTC)
4133 
4134 - `role: "assistant" or "user"`
4135 
4136 Message sender (`user` or `assistant`)
4137 
4138 - `"assistant"`
4139 
4140 - `"user"`
4141 
4142 - `sent_by_user_id: string or null`
4143 
4144 Identifier of the human account that sent this turn on an agent-owned session. Null on user-owned sessions, where every user-role turn was sent by the session's `user`.
41453046 

api/compliance/apps/artifacts Changed · +15 / -16 lines

### Path parameters ### Headers #### Response (200) ### Path parameters ### Headers ## Domain types ### Path Parameters ### Header Parameters #### Response ### Path Parameters ### Header Parameters ## Domain Types

from line 1
1---
2title: Artifacts
3url: https://platform.claude.com/docs/en/api/compliance/apps/artifacts
4---
5 
61# Artifacts
72 
83## Get artifact metadata
94 
10**get** `/v1/compliance/apps/artifacts/{artifact_version_id}`
5**GET** `/v1/compliance/apps/artifacts/{artifact_version_id}`
116 
127Returns metadata for an artifact version, without the content body.
138 
from line 11
1611encoding of that text, so a DLP consumer can dedupe or match hashes
1712without downloading every artifact.
1813 
19### Path Parameters
14### Path parameters
2015 
2116- `artifact_version_id: string`
2217 
2318 The artifact version ID (tagged ID, e.g., claude_artifact_version_abc123)
2419 
25### Header Parameters
20### Headers
2621 
2722- `"x-api-key": optional string`
2823 
from line 39
4439 
4540 Artifact version creation timestamp
4641 
42 format: date-time
43 
4744- `md5: string`
4845 
4946 Lowercase hex MD5 of the artifact content (UTF-8 encoded). Matches the `content` field returned by the sibling `/content` endpoint.
from line 59
6259 
6360### Example
6461 
65```http
62```bash
6663curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID \
6764 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
6865```
6966 
70#### Response
67#### Response (200)
7168 
7269```json
7370{
from line 81
8481 
8582## Download artifact content
8683 
87**get** `/v1/compliance/apps/artifacts/{artifact_version_id}/content`
84**GET** `/v1/compliance/apps/artifacts/{artifact_version_id}/content`
8885 
8986Download the content of an artifact version for compliance purposes.
9087 
9188Returns the full text content of the artifact version.
9289 
93### Path Parameters
90### Path parameters
9491 
9592- `artifact_version_id: string`
9693 
9794 The artifact version ID (tagged ID, e.g., claude_artifact_version_abc123)
9895 
99### Header Parameters
96### Headers
10097 
10198- `"x-api-key": optional string`
10299 
103100### Example
104101 
105```http
102```bash
106103curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID/content \
107104 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
108105```
109106 
110## Domain Types
107## Domain types
111108 
112109### Artifact Retrieve Response
113110 
114- `ArtifactRetrieveResponse object { id, artifact_type, claude_chat_id, 5 more }`
111- `ArtifactRetrieveResponse object`
115112 
116113 Artifact version metadata for GET /v1/compliance/apps/artifacts/{artifact_version_id}.
117114 
from line 130
133130 - `created_at: string`
134131 
135132 Artifact version creation timestamp
133 
134 format: date-time
136135 
137136 - `md5: string`
138137 

api/compliance/apps/artifacts/download Changed · +6 / -11 lines

# Download artifact content ## Path parameters ## Headers ## Example ## Download artifact content ### Path Parameters ### Header Parameters ### Example

from line 1
1---
2title: Download artifact content
3url: https://platform.claude.com/docs/en/api/compliance/apps/artifacts/download
4---
1# Download artifact content
52 
6## Download artifact content
3**GET** `/v1/compliance/apps/artifacts/{artifact_version_id}/content`
74 
8**get** `/v1/compliance/apps/artifacts/{artifact_version_id}/content`
9 
105Download the content of an artifact version for compliance purposes.
116 
127Returns the full text content of the artifact version.
138 
14### Path Parameters
9## Path parameters
1510 
1611- `artifact_version_id: string`
1712 
1813 The artifact version ID (tagged ID, e.g., claude_artifact_version_abc123)
1914 
20### Header Parameters
15## Headers
2116 
2217- `"x-api-key": optional string`
2318 
24### Example
19## Example
2520 
26```http
21```bash
2722curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID/content \
2823 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
2924```

api/compliance/apps/artifacts/retrieve Changed · +10 / -13 lines

# Get artifact metadata ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get artifact metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Get artifact metadata
3url: https://platform.claude.com/docs/en/api/compliance/apps/artifacts/retrieve
4---
1# Get artifact metadata
52 
6## Get artifact metadata
3**GET** `/v1/compliance/apps/artifacts/{artifact_version_id}`
74 
8**get** `/v1/compliance/apps/artifacts/{artifact_version_id}`
9 
105Returns metadata for an artifact version, without the content body.
116 
127Use the sibling `/content` endpoint to fetch the artifact text. The
from line 9
149encoding of that text, so a DLP consumer can dedupe or match hashes
1510without downloading every artifact.
1611 
17### Path Parameters
12## Path parameters
1813 
1914- `artifact_version_id: string`
2015 
2116 The artifact version ID (tagged ID, e.g., claude_artifact_version_abc123)
2217 
23### Header Parameters
18## Headers
2419 
2520- `"x-api-key": optional string`
2621 
27### Returns
22## Returns
2823 
2924- `id: string`
3025 
from line 37
4237 
4338 Artifact version creation timestamp
4439 
40 format: date-time
41 
4542- `md5: string`
4643 
4744 Lowercase hex MD5 of the artifact content (UTF-8 encoded). Matches the `content` field returned by the sibling `/content` endpoint.
from line 55
5855 
5956 Artifact version ID e.g. 'claude_artifact_version_abc123'
6057 
61### Example
58## Example
6259 
63```http
60```bash
6461curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID \
6562 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
6663```
6764 
68#### Response
65### Response (200)
6966 
7067```json
7168{

api/compliance/apps/chats Changed · +555 / -769 lines

### Query parameters ### Headers #### Response (200) ### Path parameters ### Headers #### Response (200) ## Domain types ## Chats › Messages ### Get chat messages #### Path parameters #### Query parameters #### Headers #### Returns #### Example ##### Response (200) ## Chats › Files ### Get file metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Delete file #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Download file content #### Path parameters #### Headers #### Example ## Chats › Generated Files ### Get Claude-generated file metadata #### Path parameters #### Headers #### Returns #### Example ##### Response (200) ### Download a Claude-generated file #### Path parameters #### Headers #### Example ### Query Parameters ### Header Parameters #### Response ### Path Parameters ### Header Parameters #### Response ## Domain Types # Messages ## Get chat messages ### Path Parameters ### Query Parameters ### Header Parameters #### Response ## Domain Types ### Message List Response # Files ## Get file metadata ### Path Parameters ### Header Parameters #### Response ## Delete file ### Path Parameters ### Header Parameters #### Response ## Download file content ### Path Parameters ### Header Parameters ## Domain Types ### File Retrieve Response ### File Delete Response # Generated Files ## Get Claude-generated file metadata ### Path Parameters ### Header Parameters #### Response ## Download a Claude-generated file ### Path Parameters ### Header Parameters ## Domain Types ### Generated File Retrieve Response

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 1
1---
2title: Chats
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats
4---
5 
61# Chats
72 
83## List chats
94 
10**get** `/v1/compliance/apps/chats`
5**GET** `/v1/compliance/apps/chats`
116 
127Lists chat metadata with filtering capabilities for targeted
138compliance review. Results are sorted chronologically (time ascending)
from line 17
2217no time filter) with the default `order_by`. `user_ids[]` with
2318`order_by=updated_at` is already rejected.
2419 
25### Query Parameters
20### Query parameters
2621 
2722- `after_id: optional string`
2823 
from line 27
3227 
3328 Pagination cursor for retrieving the previous page of results. To paginate, pass the `first_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
3429 
35- `created_at: optional object { gt, gte, lt, lte }`
30- `created_at: optional object`
3631 
3732 - `gt: optional string`
3833 
3934 Filter chats created after this time (RFC 3339 format)
4035 
36 format: date-time
37 
4138 - `gte: optional string`
4239 
4340 Filter chats created at or after this time (RFC 3339 format)
4441 
42 format: date-time
43 
4544 - `lt: optional string`
4645 
4746 Filter chats created before this time (RFC 3339 format)
4847 
48 format: date-time
49 
4950 - `lte: optional string`
5051 
5152 Filter chats created at or before this time (RFC 3339 format)
5253 
54 format: date-time
55 
5356- `limit: optional number`
5457 
5558 Maximum results (default: 100, max: 1000)
5659 
60 default: 100, maximum: 1000, minimum: 1
61 
5762- `order_by: optional "created_at" or "updated_at"`
5863 
5964 Sort key for results. `created_at` (default) sorts by chat creation time. `updated_at` sorts by last update time and is only supported for org-wide queries (omit user_ids[]). For org-wide queries, any time filter must match the sort key: `created_at.*` filters require `order_by=created_at`, and `updated_at.*` filters require `order_by=updated_at`.
6065 
66 default: created_at
67 
6168 - `"created_at"`
6269 
6370 - `"updated_at"`
from line 77
7077 
7178 Filter by project IDs (accepts `claude_proj_...`). Enumerate IDs via `GET /v1/compliance/apps/projects`. Requires user_ids[]; not supported for org-wide queries.
7279 
73- `updated_at: optional object { gt, gte, lt, lte }`
80- `updated_at: optional object`
7481 
7582 - `gt: optional string`
7683 
7784 Filter chats updated after this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
7885 
86 format: date-time
87 
7988 - `gte: optional string`
8089 
8190 Filter chats updated at or after this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
8291 
92 format: date-time
93 
8394 - `lt: optional string`
8495 
8596 Filter chats updated before this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
8697 
98 format: date-time
99 
87100 - `lte: optional string`
88101 
89102 Filter chats updated at or before this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
90103 
104 format: date-time
105 
91106- `user_ids: optional array of string`
92107 
93108 Filter to chats created by specific users (max 10 per request). Omit for an org-wide query. Enumerate IDs via `GET /v1/compliance/organizations/{org_uuid}/users`. Deprecated combination: passing `user_ids[]` together with any `updated_at.*` filter is deprecated and will be rejected after 2026-09-22. For `updated_at`-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
94109 
95### Header Parameters
110 maxItems: 10
111 
112### Headers
96113 
97114- `"x-api-key": optional string`
98115 
99116### Returns
100117 
101- `data: array of object { id, created_at, deleted_at, 8 more }`
118- `data: array of object`
102119 
103120 List of chat metadata sorted chronologically by the request's `order_by` key (default `created_at`), tie break by id
104121 
from line 127
110127 
111128 Creation timestamp
112129 
130 format: date-time
131 
113132 - `deleted_at: string or null`
114133 
115134 Deletion timestamp if deleted
116135 
136 format: date-time
137 
117138 - `href: string`
118139 
119140 URL to view this chat in claude.ai
from line 147
126147 
127148 Chat name/title
128149 
150 - `organization_uuid: string`
151 
152 Organization UUID this chat belongs to
153 
154 - `project_id: string or null`
155 
156 Project ID this chat belongs to
157 
158 - `updated_at: string`
159 
160 Last update timestamp
161 
162 format: date-time
163 
164 - `user: object or null`
165 
166 User information for compliance responses.
167 
168 - `id: string`
169 
170 User identifier
171 
172 - `email_address: string`
173 
174 User's email address
175 
129176 - `organization_id: string`
130177 
178 **Deprecated**
179 
131180 Organization ID this chat belongs to
132181 
133 - `organization_uuid: string`
134 
135 Organization UUID this chat belongs to
136 
137 - `project_id: string or null`
138 
139 Project ID this chat belongs to
140 
141 - `updated_at: string`
142 
143 Last update timestamp
144 
145 - `user: object { id, email_address } or null`
146 
147 User information for compliance responses.
148 
149 - `id: string`
150 
151 User identifier
152 
153 - `email_address: string`
154 
155 User's email address
156 
157182- `first_id: string or null`
158183 
159184 Opaque pagination cursor for the first chat in the current result set. Pass as `before_id` on the next request to page backwards. Backward pagination is only supported for per-user queries (`user_ids[]` set); org-wide queries do not accept `before_id`. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
from line 193
168193 
169194### Example
170195 
171```http
196```bash
172197curl https://api.anthropic.com/v1/compliance/apps/chats \
173198 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
174199```
175200 
176#### Response
201#### Response (200)
177202 
178203```json
179204{
from line 227
202227 
203228## Delete chat
204229 
205**delete** `/v1/compliance/apps/chats/{claude_chat_id}`
230**DELETE** `/v1/compliance/apps/chats/{claude_chat_id}`
206231 
207232Permanently deletes a chat and all associated messages and
208233files. This is a destructive operation that cannot be undone.
209234 
210### Path Parameters
235### Path parameters
211236 
212237- `claude_chat_id: string`
213238 
214239 The chat ID (tagged ID, e.g., claude_chat_abc123)
215240 
216### Header Parameters
241### Headers
217242 
218243- `"x-api-key": optional string`
219244 
from line 252
227252 
228253 Constant string confirming deletion
229254 
230 - `"claude_chat_deleted"`
255 default: claude_chat_deleted
231256 
232257### Example
233258 
234```http
259```bash
235260curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID \
236261 -X DELETE \
237262 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
238263```
239264 
240#### Response
265#### Response (200)
241266 
242267```json
243268{
from line 271
246271}
247272```
248273 
249## Domain Types
274## Domain types
250275 
251276### Chat List Response
252277 
253- `ChatListResponse object { id, created_at, deleted_at, 8 more }`
278- `ChatListResponse object`
254279 
255280 Chat metadata for listing chats (without messages).
256281 
from line 287
262287 
263288 Creation timestamp
264289 
290 format: date-time
291 
265292 - `deleted_at: string or null`
266293 
267294 Deletion timestamp if deleted
268295 
296 format: date-time
297 
269298 - `href: string`
270299 
271300 URL to view this chat in claude.ai
from line 307
278307 
279308 Chat name/title
280309 
310 - `organization_uuid: string`
311 
312 Organization UUID this chat belongs to
313 
314 - `project_id: string or null`
315 
316 Project ID this chat belongs to
317 
318 - `updated_at: string`
319 
320 Last update timestamp
321 
322 format: date-time
323 
324 - `user: object or null`
325 
326 User information for compliance responses.
327 
328 - `id: string`
329 
330 User identifier
331 
332 - `email_address: string`
333 
334 User's email address
335 
281336 - `organization_id: string`
282337 
338 **Deprecated**
339 
283340 Organization ID this chat belongs to
284341 
285 - `organization_uuid: string`
286 
287 Organization UUID this chat belongs to
288 
289 - `project_id: string or null`
290 
291 Project ID this chat belongs to
292 
293 - `updated_at: string`
294 
295 Last update timestamp
296 
297 - `user: object { id, email_address } or null`
298 
299 User information for compliance responses.
342### Chat Delete Response
343 
344- `ChatDeleteResponse object`
345 
346 Response for deleting a Claude chat.
347 
348 - `id: string`
349 
350 The ID of the Claude chat that was deleted
351 
352 - `type: optional "claude_chat_deleted"`
353 
354 Constant string confirming deletion
355 
356 default: claude_chat_deleted
357 
358## Chats › Messages
359 
360### Get chat messages
361 
362**GET** `/v1/compliance/apps/chats/{claude_chat_id}/messages`
363 
364Retrieves message history and file metadata for a specific chat.
365 
366#### Path parameters
367 
368- `claude_chat_id: string`
369 
370 The chat ID (tagged ID, e.g., claude_chat_abc123)
371 
372#### Query parameters
373 
374- `after_id: optional string`
375 
376 Pagination cursor for retrieving the next page of results. To paginate, pass the `last_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
377 
378- `before_id: optional string`
379 
380 Pagination cursor for retrieving the previous page of results. To paginate, pass the `first_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
381 
382- `created_at: optional object`
383 
384 - `gt: optional string`
385 
386 Filter messages created after this time (RFC 3339 format)
387 
388 format: date-time
389 
390 - `gte: optional string`
391 
392 Filter messages created at or after this time (RFC 3339 format)
393 
394 format: date-time
395 
396 - `lt: optional string`
397 
398 Filter messages created before this time (RFC 3339 format)
399 
400 format: date-time
401 
402 - `lte: optional string`
403 
404 Filter messages created at or before this time (RFC 3339 format)
405 
406 format: date-time
407 
408- `limit: optional number`
409 
410 Maximum results (max: 1000). When omitted, the full result set is returned in one response.
411 
412 maximum: 1000, minimum: 1
413 
414- `order: optional "asc" or "desc"`
415 
416 Sort direction for messages within the response. `asc` (the default) returns oldest-first; `desc` returns newest-first.
417 
418 default: asc
419 
420 - `"asc"`
421 
422 - `"desc"`
423 
424- `tool_result_max_chars: optional number`
425 
426 Maximum characters returned per tool-result text item. Items longer than this are shortened and the block's `truncated` field is set. Pass -1 to disable the limit.
427 
428 default: 10000, minimum: -1
429 
430- `tool_use_input_max_chars: optional number`
431 
432 Maximum characters of JSON-encoded tool input returned per tool_use block. Inputs longer than this are shortened and the block's `truncated` field is set. Pass -1 to disable the limit.
433 
434 default: 10000, minimum: -1
435 
436- `updated_at: optional object`
437 
438 - `gt: optional string`
439 
440 Filter messages updated after this time (RFC 3339 format)
441 
442 format: date-time
443 
444 - `gte: optional string`
445 
446 Filter messages updated at or after this time (RFC 3339 format)
447 
448 format: date-time
449 
450 - `lt: optional string`
451 
452 Filter messages updated before this time (RFC 3339 format)
453 
454 format: date-time
455 
456 - `lte: optional string`
457 
458 Filter messages updated at or before this time (RFC 3339 format)
459 
460 format: date-time
461 
462#### Headers
463 
464- `"x-api-key": optional string`
465 
466#### Returns
467 
468- `id: string`
469 
470 Chat ID
471 
472- `chat_messages: array of object`
473 
474 Array of chat messages in order of created_at
475 
476 - `id: string`
477 
478 Unique identifier for the message e.g. 'claude_chat_msg_abcd1234'
479 
480 - `artifacts: array of object or null`
481 
482 Versioned documents generated or updated by the assistant in this message. Download via `GET /v1/compliance/apps/artifacts/{artifact_version_id}/content`.
300483 
301484 - `id: string`
302485 
303 User identifier
304 
305 - `email_address: string`
306 
307 User's email address
308 
309### Chat Delete Response
310 
311- `ChatDeleteResponse object { id, type }`
312 
313 Response for deleting a Claude chat.
486 Artifact ID e.g. 'claude_artifact_abc123'
487 
488 - `artifact_type: string or null`
489 
490 MIME-like artifact type e.g. 'application/vnd.ant.code'
491 
492 - `title: string or null`
493 
494 Artifact title
495 
496 - `version_id: string`
497 
498 Artifact version ID e.g. 'claude_artifact_version_abc123'
499 
500 - `content: array of object or object or object`
501 
502 Content blocks within the message
503 
504 - `Text object`
505 
506 Text content block.
507 
508 - `text: string`
509 
510 Text content from human or assistant
511 
512 - `thinking_redacted: boolean`
513 
514 True when content enclosed in the assistant's internal-reasoning tags (or the tag markup itself) was removed from `text` during export. Removal never occurs with this field false. Always false on human messages, whose text is exported verbatim.
515 
516 default: false
517 
518 - `truncated: boolean`
519 
520 True when `text` was shortened by the server's fixed per-string bound (1 MiB). Always false on chat text blocks.
521 
522 default: false
523 
524 - `type: "text"`
525 
526 default: text
527 
528 - `ToolUse object`
529 
530 Tool invocation requested by the assistant.
531 
532 - `id: string or null`
533 
534 Tool-use ID, e.g. 'toolu_01AbC...'
535 
536 - `input: string`
537 
538 Arguments passed to the tool, as a JSON-encoded string. May be shortened — see the `truncated` field
539 
540 - `integration_name: string or null`
541 
542 Name of the integration that provides this tool, when applicable
543 
544 - `mcp_server_url: string or null`
545 
546 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
547 
548 - `name: string`
549 
550 Name of the tool invoked
551 
552 - `truncated: boolean`
553 
554 True when `input` was shortened. Pass the endpoint's tool-use input max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
555 
556 default: false
557 
558 - `type: "tool_use"`
559 
560 default: tool_use
561 
562 - `ToolResult object`
563 
564 Result returned by a tool invocation.
565 
566 - `content: array of object`
567 
568 Text content returned by the tool. Generated files are surfaced via the message's `generated_files` list; other non-text item types (including images and links) are omitted.
569 
570 - `text: string`
571 
572 Text returned by the tool
573 
574 - `type: "text"`
575 
576 default: text
577 
578 - `integration_name: string or null`
579 
580 Name of the integration that provides this tool, when applicable
581 
582 - `is_error: boolean`
583 
584 True when the tool reported an error
585 
586 - `mcp_server_url: string or null`
587 
588 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
589 
590 - `name: string`
591 
592 Name of the tool that produced this result
593 
594 - `tool_use_id: string or null`
595 
596 ID of the tool_use block this result responds to
597 
598 - `truncated: boolean`
599 
600 True when one or more text items in `content` were shortened. Pass the endpoint's tool-result max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
601 
602 default: false
603 
604 - `type: "tool_result"`
605 
606 default: tool_result
607 
608 - `created_at: string`
609 
610 Message creation timestamp - For human: when they sent the message, For assistant: when it completed the last content block
611 
612 format: date-time
613 
614 - `files: array of object or null`
615 
616 Binary file attachments uploaded by the user. Download via `GET /v1/compliance/apps/chats/files/{claude_file_id}/content`.
617 
618 - `id: string`
619 
620 File ID
621 
622 - `created_at: string`
623 
624 File creation timestamp
625 
626 format: date-time
627 
628 - `filename: string`
629 
630 Display name of the file
631 
632 - `md5: string or null`
633 
634 Lowercase hex MD5 of the file's preferred downloadable variant, as recorded at upload time. Null when no stored hash is available.
635 
636 - `mime_type: string or null`
637 
638 MIME type of the file's preferred downloadable variant (e.g. 'application/pdf')
639 
640 - `size_bytes: number or null`
641 
642 Size in bytes of the file's preferred downloadable variant, if known. Null for older files uploaded before size was recorded.
643 
644 - `generated_files: array of object or null`
645 
646 Downloadable files the assistant created via tool use (e.g. PDF, spreadsheet, slide deck). Distinct from `files`, which are uploads attached to the message. Download via `GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`.
647 
648 - `id: string`
649 
650 Opaque generated-file id, e.g. 'claude_gen_file_abc123'. Treat as an opaque string; the encoding may change without notice.
651 
652 - `filename: string`
653 
654 Display name of the generated file
655 
656 - `md5: string or null`
657 
658 Lowercase hex MD5 of the generated file, when available. Null when no stored hash is available.
659 
660 - `mime_type: string or null`
661 
662 MIME type reported by the tool that produced the file
663 
664 - `size_bytes: number or null`
665 
666 Size in bytes of the generated file, when available. Null when the file has expired or size is not recorded.
667 
668 - `role: "assistant" or "user"`
669 
670 Message sender (user or assistant)
671 
672 - `"assistant"`
673 
674 - `"user"`
675 
676- `created_at: string`
677 
678 Creation timestamp
679 
680 format: date-time
681 
682- `deleted_at: string or null`
683 
684 Deletion timestamp if deleted
685 
686 format: date-time
687 
688- `first_id: string or null`
689 
690 Opaque pagination cursor for the first message in the current result set. Pass as `before_id` on the next request to page backwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
691 
692- `has_more: boolean`
693 
694 Whether more chat messages exist beyond the current result set. Use `last_id` as `after_id` in a follow-up request to page forward.
695 
696 default: false
697 
698- `href: string`
699 
700 URL to view this chat in claude.ai
701 
702- `last_id: string or null`
703 
704 Opaque pagination cursor for the last message in the current result set. Pass as `after_id` on the next request to page forwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
705 
706- `model: string or null`
707 
708 Model selected for this chat (e.g. 'claude-opus-5'). May be null for legacy chats that never had a model recorded.
709 
710- `name: string`
711 
712 Chat name
713 
714- `organization_uuid: string`
715 
716 Organization UUID this chat belongs to
717 
718- `project_id: string or null`
719 
720 Project ID this chat belongs to
721 
722- `updated_at: string`
723 
724 Last update timestamp
725 
726 format: date-time
727 
728- `user: object or null`
729 
730 User information for compliance responses.
314731 
315732 - `id: string`
316733 
317 The ID of the Claude chat that was deleted
318 
319 - `type: optional "claude_chat_deleted"`
320 
321 Constant string confirming deletion
322 
323 - `"claude_chat_deleted"`
324 
325# Messages
326 
327## Get chat messages
328 
329**get** `/v1/compliance/apps/chats/{claude_chat_id}/messages`
330 
331Retrieves message history and file metadata for a specific chat.
332 
333### Path Parameters
334 
335- `claude_chat_id: string`
336 
337 The chat ID (tagged ID, e.g., claude_chat_abc123)
338 
339### Query Parameters
340 
341- `after_id: optional string`
342 
343 Pagination cursor for retrieving the next page of results. To paginate, pass the `last_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
344 
345- `before_id: optional string`
346 
347 Pagination cursor for retrieving the previous page of results. To paginate, pass the `first_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
348 
349- `created_at: optional object { gt, gte, lt, lte }`
350 
351 - `gt: optional string`
352 
353 Filter messages created after this time (RFC 3339 format)
354 
355 - `gte: optional string`
356 
357 Filter messages created at or after this time (RFC 3339 format)
358 
359 - `lt: optional string`
360 
361 Filter messages created before this time (RFC 3339 format)
362 
363 - `lte: optional string`
364 
365 Filter messages created at or before this time (RFC 3339 format)
366 
367- `limit: optional number`
368 
369 Maximum results (max: 1000). When omitted, the full result set is returned in one response.
370 
371- `order: optional "asc" or "desc"`
372 
373 Sort direction for messages within the response. `asc` (the default) returns oldest-first; `desc` returns newest-first.
374 
375 - `"asc"`
376 
377 - `"desc"`
378 
379- `tool_result_max_chars: optional number`
380 
381 Maximum characters returned per tool-result text item. Items longer than this are shortened and the block's `truncated` field is set. Pass -1 to disable the limit.
382 
383- `tool_use_input_max_chars: optional number`
384 
385 Maximum characters of JSON-encoded tool input returned per tool_use block. Inputs longer than this are shortened and the block's `truncated` field is set. Pass -1 to disable the limit.
386 
387- `updated_at: optional object { gt, gte, lt, lte }`
388 
389 - `gt: optional string`
390 
391 Filter messages updated after this time (RFC 3339 format)
392 
393 - `gte: optional string`
394 
395 Filter messages updated at or after this time (RFC 3339 format)
396 
397 - `lt: optional string`
398 
399 Filter messages updated before this time (RFC 3339 format)
400 
401 - `lte: optional string`
402 
403 Filter messages updated at or before this time (RFC 3339 format)
404 
405### Header Parameters
406 
407- `"x-api-key": optional string`
408 
409### Returns
410 
411- `id: string`
412 
413 Chat ID
414 
415- `chat_messages: array of object { id, artifacts, content, 4 more }`
416 
417 Array of chat messages in order of created_at
418 
419 - `id: string`
420 
421 Unique identifier for the message e.g. 'claude_chat_msg_abcd1234'
422 
423 - `artifacts: array of object { id, artifact_type, title, version_id } or null`
424 
425 Versioned documents generated or updated by the assistant in this message. Download via `GET /v1/compliance/apps/artifacts/{artifact_version_id}/content`.
426 
427 - `id: string`
428 
429 Artifact ID e.g. 'claude_artifact_abc123'
430 
431 - `artifact_type: string or null`
432 
433 MIME-like artifact type e.g. 'application/vnd.ant.code'
434 
435 - `title: string or null`
436 
437 Artifact title
438 
439 - `version_id: string`
440 
441 Artifact version ID e.g. 'claude_artifact_version_abc123'
442 
443 - `content: array of object { text, thinking_redacted, truncated, type } or object { id, input, integration_name, 4 more } or object { content, integration_name, is_error, 5 more }`
444 
445 Content blocks within the message
446 
447 - `Text object { text, thinking_redacted, truncated, type }`
448 
449 Text content block.
450 
451 - `text: string`
452 
453 Text content from human or assistant
454 
455 - `thinking_redacted: boolean`
456 
457 True when content enclosed in the assistant's internal-reasoning tags (or the tag markup itself) was removed from `text` during export. Removal never occurs with this field false. Always false on human messages, whose text is exported verbatim.
458 
459 - `truncated: boolean`
460 
461 True when `text` was shortened by the server's fixed per-string bound (1 MiB). Always false on chat text blocks.
462 
463 - `type: "text"`
464 
465 - `"text"`
466 
467 - `ToolUse object { id, input, integration_name, 4 more }`
468 
469 Tool invocation requested by the assistant.
470 
471 - `id: string or null`
472 
473 Tool-use ID, e.g. 'toolu_01AbC...'
474 
475 - `input: string`
476 
477 Arguments passed to the tool, as a JSON-encoded string. May be shortened — see the `truncated` field
478 
479 - `integration_name: string or null`
480 
481 Name of the integration that provides this tool, when applicable
482 
483 - `mcp_server_url: string or null`
484 
485 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
486 
487 - `name: string`
488 
489 Name of the tool invoked
490 
491 - `truncated: boolean`
492 
493 True when `input` was shortened. Pass the endpoint's tool-use input max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
494 
495 - `type: "tool_use"`
496 
497 - `"tool_use"`
498 
499 - `ToolResult object { content, integration_name, is_error, 5 more }`
500 
501 Result returned by a tool invocation.
502 
503 - `content: array of object { text, type }`
504 
505 Text content returned by the tool. Generated files are surfaced via the message's `generated_files` list; other non-text item types (including images and links) are omitted.
506 
507 - `text: string`
508 
509 Text returned by the tool
510 
511 - `type: "text"`
512 
513 - `"text"`
514 
515 - `integration_name: string or null`
516 
517 Name of the integration that provides this tool, when applicable
518 
519 - `is_error: boolean`
520 
521 True when the tool reported an error
522 
523 - `mcp_server_url: string or null`
524 
525 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
526 
527 - `name: string`
528 
529 Name of the tool that produced this result
530 
531 - `tool_use_id: string or null`
532 
533 ID of the tool_use block this result responds to
534 
535 - `truncated: boolean`
536 
537 True when one or more text items in `content` were shortened. Pass the endpoint's tool-result max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
538 
539 - `type: "tool_result"`
540 
541 - `"tool_result"`
542 
543 - `created_at: string`
544 
545 Message creation timestamp - For human: when they sent the message, For assistant: when it completed the last content block
546 
547 - `files: array of object { id, created_at, filename, 3 more } or null`
548 
549 Binary file attachments uploaded by the user. Download via `GET /v1/compliance/apps/chats/files/{claude_file_id}/content`.
550 
551 - `id: string`
552 
553 File ID
554 
555 - `created_at: string`
556 
557 File creation timestamp
558 
559 - `filename: string`
560 
561 Display name of the file
562 
563 - `md5: string or null`
564 
565 Lowercase hex MD5 of the file's preferred downloadable variant, as recorded at upload time. Null when no stored hash is available.
566 
567 - `mime_type: string or null`
568 
569 MIME type of the file's preferred downloadable variant (e.g. 'application/pdf')
570 
571 - `size_bytes: number or null`
572 
573 Size in bytes of the file's preferred downloadable variant, if known. Null for older files uploaded before size was recorded.
574 
575 - `generated_files: array of object { id, filename, md5, 2 more } or null`
576 
577 Downloadable files the assistant created via tool use (e.g. PDF, spreadsheet, slide deck). Distinct from `files`, which are uploads attached to the message. Download via `GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`.
578 
579 - `id: string`
580 
581 Opaque generated-file id, e.g. 'claude_gen_file_abc123'. Treat as an opaque string; the encoding may change without notice.
582 
583 - `filename: string`
584 
585 Display name of the generated file
586 
587 - `md5: string or null`
588 
589 Lowercase hex MD5 of the generated file, when available. Null when no stored hash is available.
590 
591 - `mime_type: string or null`
592 
593 MIME type reported by the tool that produced the file
594 
595 - `size_bytes: number or null`
596 
597 Size in bytes of the generated file, when available. Null when the file has expired or size is not recorded.
598 
599 - `role: "assistant" or "user"`
600 
601 Message sender (user or assistant)
602 
603 - `"assistant"`
604 
605 - `"user"`
606 
607- `created_at: string`
608 
609 Creation timestamp
610 
611- `deleted_at: string or null`
612 
613 Deletion timestamp if deleted
614 
615- `first_id: string or null`
616 
617 Opaque pagination cursor for the first message in the current result set. Pass as `before_id` on the next request to page backwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
618 
619- `has_more: boolean`
620 
621 Whether more chat messages exist beyond the current result set. Use `last_id` as `after_id` in a follow-up request to page forward.
622 
623- `href: string`
624 
625 URL to view this chat in claude.ai
626 
627- `last_id: string or null`
628 
629 Opaque pagination cursor for the last message in the current result set. Pass as `after_id` on the next request to page forwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
630 
631- `model: string or null`
632 
633 Model selected for this chat (e.g. 'claude-opus-5'). May be null for legacy chats that never had a model recorded.
634 
635- `name: string`
636 
637 Chat name
734 User identifier
735 
736 - `email_address: string`
737 
738 User's email address
638739 
639740- `organization_id: string`
640741 
742 **Deprecated**
743 
641744 Organization ID this chat belongs to
642745 
643- `organization_uuid: string`
644 
645 Organization UUID this chat belongs to
646 
647- `project_id: string or null`
648 
649 Project ID this chat belongs to
650 
651- `updated_at: string`
652 
653 Last update timestamp
654 
655- `user: object { id, email_address } or null`
656 
657 User information for compliance responses.
658 
659 - `id: string`
660 
661 User identifier
662 
663 - `email_address: string`
664 
665 User's email address
666 
667### Example
668 
669```http
746#### Example
747 
748```bash
670749curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID/messages \
671750 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
672751```
673752 
674#### Response
753##### Response (200)
675754 
676755```json
677756{
from line 815
736815}
737816```
738817 
739## Domain Types
740 
741### Message List Response
742 
743- `MessageListResponse object { id, artifacts, content, 4 more }`
744 
745 A single message in a chat conversation.
746 
747 - `id: string`
748 
749 Unique identifier for the message e.g. 'claude_chat_msg_abcd1234'
750 
751 - `artifacts: array of object { id, artifact_type, title, version_id } or null`
752 
753 Versioned documents generated or updated by the assistant in this message. Download via `GET /v1/compliance/apps/artifacts/{artifact_version_id}/content`.
754 
755 - `id: string`
756 
757 Artifact ID e.g. 'claude_artifact_abc123'
758 
759 - `artifact_type: string or null`
760 
761 MIME-like artifact type e.g. 'application/vnd.ant.code'
762 
763 - `title: string or null`
764 
765 Artifact title
766 
767 - `version_id: string`
768 
769 Artifact version ID e.g. 'claude_artifact_version_abc123'
770 
771 - `content: array of object { text, thinking_redacted, truncated, type } or object { id, input, integration_name, 4 more } or object { content, integration_name, is_error, 5 more }`
772 
773 Content blocks within the message
774 
775 - `Text object { text, thinking_redacted, truncated, type }`
776 
777 Text content block.
778 
779 - `text: string`
780 
781 Text content from human or assistant
782 
783 - `thinking_redacted: boolean`
784 
785 True when content enclosed in the assistant's internal-reasoning tags (or the tag markup itself) was removed from `text` during export. Removal never occurs with this field false. Always false on human messages, whose text is exported verbatim.
786 
787 - `truncated: boolean`
788 
789 True when `text` was shortened by the server's fixed per-string bound (1 MiB). Always false on chat text blocks.
790 
791 - `type: "text"`
792 
793 - `"text"`
794 
795 - `ToolUse object { id, input, integration_name, 4 more }`
796 
797 Tool invocation requested by the assistant.
798 
799 - `id: string or null`
800 
801 Tool-use ID, e.g. 'toolu_01AbC...'
802 
803 - `input: string`
804 
805 Arguments passed to the tool, as a JSON-encoded string. May be shortened — see the `truncated` field
806 
807 - `integration_name: string or null`
808 
809 Name of the integration that provides this tool, when applicable
810 
811 - `mcp_server_url: string or null`
812 
813 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
814 
815 - `name: string`
816 
817 Name of the tool invoked
818 
819 - `truncated: boolean`
820 
821 True when `input` was shortened. Pass the endpoint's tool-use input max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
822 
823 - `type: "tool_use"`
824 
825 - `"tool_use"`
826 
827 - `ToolResult object { content, integration_name, is_error, 5 more }`
828 
829 Result returned by a tool invocation.
830 
831 - `content: array of object { text, type }`
832 
833 Text content returned by the tool. Generated files are surfaced via the message's `generated_files` list; other non-text item types (including images and links) are omitted.
834 
835 - `text: string`
836 
837 Text returned by the tool
838 
839 - `type: "text"`
840 
841 - `"text"`
842 
843 - `integration_name: string or null`
844 
845 Name of the integration that provides this tool, when applicable
846 
847 - `is_error: boolean`
848 
849 True when the tool reported an error
850 
851 - `mcp_server_url: string or null`
852 
853 Base URL (scheme, host, and path only) of the MCP server that provides this tool, when applicable
854 
855 - `name: string`
856 
857 Name of the tool that produced this result
858 
859 - `tool_use_id: string or null`
860 
861 ID of the tool_use block this result responds to
862 
863 - `truncated: boolean`
864 
865 True when one or more text items in `content` were shortened. Pass the endpoint's tool-result max parameter as -1 to request full content, subject to any server-side maximum the endpoint enforces.
866 
867 - `type: "tool_result"`
868 
869 - `"tool_result"`
870 
871 - `created_at: string`
872 
873 Message creation timestamp - For human: when they sent the message, For assistant: when it completed the last content block
874 
875 - `files: array of object { id, created_at, filename, 3 more } or null`
876 
877 Binary file attachments uploaded by the user. Download via `GET /v1/compliance/apps/chats/files/{claude_file_id}/content`.
878 
879 - `id: string`
880 
881 File ID
882 
883 - `created_at: string`
884 
885 File creation timestamp
886 
887 - `filename: string`
888 
889 Display name of the file
890 
891 - `md5: string or null`
892 
893 Lowercase hex MD5 of the file's preferred downloadable variant, as recorded at upload time. Null when no stored hash is available.
894 
895 - `mime_type: string or null`
896 
897 MIME type of the file's preferred downloadable variant (e.g. 'application/pdf')
898 
899 - `size_bytes: number or null`
900 
901 Size in bytes of the file's preferred downloadable variant, if known. Null for older files uploaded before size was recorded.
902 
903 - `generated_files: array of object { id, filename, md5, 2 more } or null`
904 
905 Downloadable files the assistant created via tool use (e.g. PDF, spreadsheet, slide deck). Distinct from `files`, which are uploads attached to the message. Download via `GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`.
906 
907 - `id: string`
908 
909 Opaque generated-file id, e.g. 'claude_gen_file_abc123'. Treat as an opaque string; the encoding may change without notice.
910 
911 - `filename: string`
912 
913 Display name of the generated file
914 
915 - `md5: string or null`
916 
917 Lowercase hex MD5 of the generated file, when available. Null when no stored hash is available.
918 
919 - `mime_type: string or null`
920 
921 MIME type reported by the tool that produced the file
922 
923 - `size_bytes: number or null`
924 
925 Size in bytes of the generated file, when available. Null when the file has expired or size is not recorded.
926 
927 - `role: "assistant" or "user"`
928 
929 Message sender (user or assistant)
930 
931 - `"assistant"`
932 
933 - `"user"`
934 
935# Files
936 
937## Get file metadata
938 
939**get** `/v1/compliance/apps/chats/files/{claude_file_id}`
818## Chats › Files
819 
820### Get file metadata
821 
822**GET** `/v1/compliance/apps/chats/files/{claude_file_id}`
940823 
941824Retrieves metadata for a file referenced in chat messages, without
942825downloading the file content. Use the sibling `/content` endpoint to
943826download the bytes.
944827 
945### Path Parameters
828#### Path parameters
946829 
947830- `claude_file_id: string`
948831 
949832 The file ID (tagged ID, e.g., claude_file_abc123)
950833 
951### Header Parameters
834#### Headers
952835 
953836- `"x-api-key": optional string`
954837 
955### Returns
838#### Returns
956839 
957840- `id: string`
958841 
from line 849
966849 
967850 File creation timestamp
968851 
852 format: date-time
853 
969854- `filename: string or null`
970855 
971856 Display name of the file, if set
from line 871
986871 
987872 Size in bytes of the file's preferred downloadable variant, if known
988873 
989### Example
990 
991```http
874#### Example
875 
876```bash
992877curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
993878 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
994879```
995880 
996#### Response
881##### Response (200)
997882 
998883```json
999884{
from line 897
1012897}
1013898```
1014899 
1015## Delete file
1016 
1017**delete** `/v1/compliance/apps/chats/files/{claude_file_id}`
900### Delete file
901 
902**DELETE** `/v1/compliance/apps/chats/files/{claude_file_id}`
1018903 
1019904Permanently deletes a specific file. This is a destructive
1020905operation that cannot be undone.
1021906 
1022### Path Parameters
907#### Path parameters
1023908 
1024909- `claude_file_id: string`
1025910 
1026911 The file ID (tagged ID, e.g., claude_file_abc123)
1027912 
1028### Header Parameters
913#### Headers
1029914 
1030915- `"x-api-key": optional string`
1031916 
1032### Returns
917#### Returns
1033918 
1034919- `id: string`
1035920 
from line 924
1039924 
1040925 Constant string confirming deletion
1041926 
1042 - `"claude_file_deleted"`
1043 
1044### Example
1045 
1046```http
927 default: claude_file_deleted
928 
929#### Example
930 
931```bash
1047932curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
1048933 -X DELETE \
1049934 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
1050935```
1051936 
1052#### Response
937##### Response (200)
1053938 
1054939```json
1055940{
from line 943
1058943}
1059944```
1060945 
1061## Download file content
1062 
1063**get** `/v1/compliance/apps/chats/files/{claude_file_id}/content`
946### Download file content
947 
948**GET** `/v1/compliance/apps/chats/files/{claude_file_id}/content`
1064949 
1065950Downloads the binary content of a file referenced in chat messages.
1066951 
1067### Path Parameters
952#### Path parameters
1068953 
1069954- `claude_file_id: string`
1070955 
1071956 The file ID (tagged ID, e.g., claude_file_abc123)
1072957 
1073### Header Parameters
958#### Headers
1074959 
1075960- `"x-api-key": optional string`
1076961 
1077### Example
1078 
1079```http
962#### Example
963 
964```bash
1080965curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID/content \
1081966 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
1082967```
1083968 
1084## Domain Types
1085 
1086### File Retrieve Response
1087 
1088- `FileRetrieveResponse object { id, claude_chat_ids, created_at, 5 more }`
1089 
1090 File metadata for GET /v1/compliance/apps/chats/files/{claude_file_id}.
1091 
1092 Returns metadata only. Use the sibling `/content` endpoint to download
1093 the file bytes.
1094 
1095 - `id: string`
1096 
1097 File ID
1098 
1099 - `claude_chat_ids: array of string`
1100 
1101 Chats this file is attached to. A file can be referenced by messages across multiple chats.
1102 
1103 - `created_at: string`
1104 
1105 File creation timestamp
1106 
1107 - `filename: string or null`
1108 
1109 Display name of the file, if set
1110 
1111 - `md5: string or null`
1112 
1113 Lowercase hex MD5 of the file's preferred downloadable variant, as recorded at upload time. Null when no stored hash is available. The sibling `/content` endpoint also sets a `Content-MD5` header (base64 per RFC 1864) computed over the exact served bytes; when the two disagree, the header is authoritative.
1114 
1115 - `message_ids: array of string`
1116 
1117 Chat message IDs this file is attached to. A file can be referenced by multiple messages.
1118 
1119 - `mime_type: string or null`
1120 
1121 MIME type of the file's preferred downloadable variant (e.g. 'application/pdf'). May be null for files with no downloadable content (e.g. code-interpreter outputs).
1122 
1123 - `size_bytes: number or null`
1124 
1125 Size in bytes of the file's preferred downloadable variant, if known
1126 
1127### File Delete Response
1128 
1129- `FileDeleteResponse object { id, type }`
1130 
1131 Response for deleting a compliance file.
1132 
1133 - `id: string`
1134 
1135 The ID of the file that was deleted
1136 
1137 - `type: optional "claude_file_deleted"`
1138 
1139 Constant string confirming deletion
1140 
1141 - `"claude_file_deleted"`
1142 
1143# Generated Files
1144 
1145## Get Claude-generated file metadata
1146 
1147**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}`
969## Chats › Generated Files
970 
971### Get Claude-generated file metadata
972 
973**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}`
1148974 
1149975Returns metadata for a file the assistant created via tool use.
1150976 
1151977Use the sibling `/content` endpoint to download the bytes.
1152978 
1153### Path Parameters
979#### Path parameters
1154980 
1155981- `claude_gen_file_id: string`
1156982 
1157983 The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages.
1158984 
1159### Header Parameters
985#### Headers
1160986 
1161987- `"x-api-key": optional string`
1162988 
1163### Returns
989#### Returns
1164990 
1165991- `id: string`
1166992 
from line 1000
11741000 
11751001 File creation timestamp, when available
11761002 
1003 format: date-time
1004 
11771005- `filename: string`
11781006 
11791007 Display name of the generated file
from line 1018
11901018 
11911019 Size in bytes of the stored file, when available
11921020 
1193### Example
1194 
1195```http
1021#### Example
1022 
1023```bash
11961024curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID \
11971025 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
11981026```
11991027 
1200#### Response
1028##### Response (200)
12011029 
12021030```json
12031031{
from line 1039
12111039}
12121040```
12131041 
1214## Download a Claude-generated file
1215 
1216**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`
1042### Download a Claude-generated file
1043 
1044**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`
12171045 
12181046Downloads the binary content of a file the assistant created via tool use.
12191047 
1220### Path Parameters
1048#### Path parameters
12211049 
12221050- `claude_gen_file_id: string`
12231051 
12241052 The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages.
12251053 
1226### Header Parameters
1054#### Headers
12271055 
12281056- `"x-api-key": optional string`
12291057 
1230### Example
1231 
1232```http
1058#### Example
1059 
1060```bash
12331061curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID/content \
12341062 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
12351063```
1236 
1237## Domain Types
1238 
1239### Generated File Retrieve Response
1240 
1241- `GeneratedFileRetrieveResponse object { id, claude_chat_id, created_at, 4 more }`
1242 
1243 Metadata for GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}.
1244 
1245 Returns metadata only. Use the sibling `/content` endpoint to download
1246 the bytes. The owning chat is included since the id is opaque; to find the
1247 specific message that produced the file, fetch
1248 `/v1/compliance/apps/chats/{claude_chat_id}/messages` and match on
1249 `generated_files[].id`.
1250 
1251 - `id: string`
1252 
1253 Opaque generated-file id, e.g. 'claude_gen_file_abc123'.
1254 
1255 - `claude_chat_id: string`
1256 
1257 The chat this generated file belongs to
1258 
1259 - `created_at: string or null`
1260 
1261 File creation timestamp, when available
1262 
1263 - `filename: string`
1264 
1265 Display name of the generated file
1266 
1267 - `md5: string or null`
1268 
1269 Lowercase hex MD5 of the stored file. Null when no stored hash is available. The sibling `/content` endpoint also sets a `Content-MD5` header (base64 per RFC 1864) computed over the exact served bytes.
1270 
1271 - `mime_type: string or null`
1272 
1273 MIME type of the stored file, when available
1274 
1275 - `size_bytes: number or null`
1276 
1277 Size in bytes of the stored file, when available
12781064 

api/compliance/apps/chats/delete Changed · +9 / -14 lines

# Delete chat ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete chat ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Delete chat
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/delete
4---
1# Delete chat
52 
6## Delete chat
3**DELETE** `/v1/compliance/apps/chats/{claude_chat_id}`
74 
8**delete** `/v1/compliance/apps/chats/{claude_chat_id}`
9 
105Permanently deletes a chat and all associated messages and
116files. This is a destructive operation that cannot be undone.
127 
13### Path Parameters
8## Path parameters
149 
1510- `claude_chat_id: string`
1611 
1712 The chat ID (tagged ID, e.g., claude_chat_abc123)
1813 
19### Header Parameters
14## Headers
2015 
2116- `"x-api-key": optional string`
2217 
23### Returns
18## Returns
2419 
2520- `id: string`
2621 
from line 25
3025 
3126 Constant string confirming deletion
3227 
33 - `"claude_chat_deleted"`
28 default: claude_chat_deleted
3429 
35### Example
30## Example
3631 
37```http
32```bash
3833curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID \
3934 -X DELETE \
4035 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
4136```
4237 
43#### Response
38### Response (200)
4439 
4540```json
4641{

api/compliance/apps/chats/files Changed · +23 / -24 lines

### Path parameters ### Headers #### Response (200) ### Path parameters ### Headers #### Response (200) ### Path parameters ### Headers ## Domain types ### Path Parameters ### Header Parameters #### Response ### Path Parameters ### Header Parameters #### Response ### Path Parameters ### Header Parameters ## Domain Types

from line 1
1---
2title: Files
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/files
4---
5 
61# Files
72 
83## Get file metadata
94 
10**get** `/v1/compliance/apps/chats/files/{claude_file_id}`
5**GET** `/v1/compliance/apps/chats/files/{claude_file_id}`
116 
127Retrieves metadata for a file referenced in chat messages, without
138downloading the file content. Use the sibling `/content` endpoint to
149download the bytes.
1510 
16### Path Parameters
11### Path parameters
1712 
1813- `claude_file_id: string`
1914 
2015 The file ID (tagged ID, e.g., claude_file_abc123)
2116 
22### Header Parameters
17### Headers
2318 
2419- `"x-api-key": optional string`
2520 
from line 32
3732 
3833 File creation timestamp
3934 
35 format: date-time
36 
4037- `filename: string or null`
4138 
4239 Display name of the file, if set
from line 56
5956 
6057### Example
6158 
62```http
59```bash
6360curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
6461 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
6562```
6663 
67#### Response
64#### Response (200)
6865 
6966```json
7067{
from line 82
8582 
8683## Delete file
8784 
88**delete** `/v1/compliance/apps/chats/files/{claude_file_id}`
85**DELETE** `/v1/compliance/apps/chats/files/{claude_file_id}`
8986 
9087Permanently deletes a specific file. This is a destructive
9188operation that cannot be undone.
9289 
93### Path Parameters
90### Path parameters
9491 
9592- `claude_file_id: string`
9693 
9794 The file ID (tagged ID, e.g., claude_file_abc123)
9895 
99### Header Parameters
96### Headers
10097 
10198- `"x-api-key": optional string`
10299 
from line 107
110107 
111108 Constant string confirming deletion
112109 
113 - `"claude_file_deleted"`
110 default: claude_file_deleted
114111 
115112### Example
116113 
117```http
114```bash
118115curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
119116 -X DELETE \
120117 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
121118```
122119 
123#### Response
120#### Response (200)
124121 
125122```json
126123{
from line 128
131128 
132129## Download file content
133130 
134**get** `/v1/compliance/apps/chats/files/{claude_file_id}/content`
131**GET** `/v1/compliance/apps/chats/files/{claude_file_id}/content`
135132 
136133Downloads the binary content of a file referenced in chat messages.
137134 
138### Path Parameters
135### Path parameters
139136 
140137- `claude_file_id: string`
141138 
142139 The file ID (tagged ID, e.g., claude_file_abc123)
143140 
144### Header Parameters
141### Headers
145142 
146143- `"x-api-key": optional string`
147144 
148145### Example
149146 
150```http
147```bash
151148curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID/content \
152149 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
153150```
154151 
155## Domain Types
152## Domain types
156153 
157154### File Retrieve Response
158155 
159- `FileRetrieveResponse object { id, claude_chat_ids, created_at, 5 more }`
156- `FileRetrieveResponse object`
160157 
161158 File metadata for GET /v1/compliance/apps/chats/files/{claude_file_id}.
162159 
from line 172
175172 
176173 File creation timestamp
177174 
175 format: date-time
176 
178177 - `filename: string or null`
179178 
180179 Display name of the file, if set
from line 196
197196 
198197### File Delete Response
199198 
200- `FileDeleteResponse object { id, type }`
199- `FileDeleteResponse object`
201200 
202201 Response for deleting a compliance file.
203202 
from line 208
209208 
210209 Constant string confirming deletion
211210 
212 - `"claude_file_deleted"`
211 default: claude_file_deleted
213212 

api/compliance/apps/chats/files/delete Changed · +9 / -14 lines

# Delete file ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete file ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Delete file
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete
4---
1# Delete file
52 
6## Delete file
3**DELETE** `/v1/compliance/apps/chats/files/{claude_file_id}`
74 
8**delete** `/v1/compliance/apps/chats/files/{claude_file_id}`
9 
105Permanently deletes a specific file. This is a destructive
116operation that cannot be undone.
127 
13### Path Parameters
8## Path parameters
149 
1510- `claude_file_id: string`
1611 
1712 The file ID (tagged ID, e.g., claude_file_abc123)
1813 
19### Header Parameters
14## Headers
2015 
2116- `"x-api-key": optional string`
2217 
23### Returns
18## Returns
2419 
2520- `id: string`
2621 
from line 25
3025 
3126 Constant string confirming deletion
3227 
33 - `"claude_file_deleted"`
28 default: claude_file_deleted
3429 
35### Example
30## Example
3631 
37```http
32```bash
3833curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
3934 -X DELETE \
4035 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
4136```
4237 
43#### Response
38### Response (200)
4439 
4540```json
4641{

api/compliance/apps/chats/files/download Changed · +6 / -11 lines

# Download file content ## Path parameters ## Headers ## Example ## Download file content ### Path Parameters ### Header Parameters ### Example

from line 1
1---
2title: Download file content
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/files/download
4---
1# Download file content
52 
6## Download file content
3**GET** `/v1/compliance/apps/chats/files/{claude_file_id}/content`
74 
8**get** `/v1/compliance/apps/chats/files/{claude_file_id}/content`
9 
105Downloads the binary content of a file referenced in chat messages.
116 
12### Path Parameters
7## Path parameters
138 
149- `claude_file_id: string`
1510 
1611 The file ID (tagged ID, e.g., claude_file_abc123)
1712 
18### Header Parameters
13## Headers
1914 
2015- `"x-api-key": optional string`
2116 
22### Example
17## Example
2318 
24```http
19```bash
2520curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID/content \
2621 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
2722```

api/compliance/apps/chats/files/retrieve Changed · +10 / -13 lines

# Get file metadata ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get file metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Get file metadata
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/files/retrieve
4---
1# Get file metadata
52 
6## Get file metadata
3**GET** `/v1/compliance/apps/chats/files/{claude_file_id}`
74 
8**get** `/v1/compliance/apps/chats/files/{claude_file_id}`
9 
105Retrieves metadata for a file referenced in chat messages, without
116downloading the file content. Use the sibling `/content` endpoint to
127download the bytes.
138 
14### Path Parameters
9## Path parameters
1510 
1611- `claude_file_id: string`
1712 
1813 The file ID (tagged ID, e.g., claude_file_abc123)
1914 
20### Header Parameters
15## Headers
2116 
2217- `"x-api-key": optional string`
2318 
24### Returns
19## Returns
2520 
2621- `id: string`
2722 
from line 30
3530 
3631 File creation timestamp
3732 
33 format: date-time
34 
3835- `filename: string or null`
3936 
4037 Display name of the file, if set
from line 52
5552 
5653 Size in bytes of the file's preferred downloadable variant, if known
5754 
58### Example
55## Example
5956 
60```http
57```bash
6158curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
6259 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
6360```
6461 
65#### Response
62### Response (200)
6663 
6764```json
6865{

api/compliance/apps/chats/generated_files Changed · +15 / -16 lines

### Path parameters ### Headers #### Response (200) ### Path parameters ### Headers ## Domain types ### Path Parameters ### Header Parameters #### Response ### Path Parameters ### Header Parameters ## Domain Types

from line 1
1---
2title: Generated Files
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/generated_files
4---
5 
61# Generated Files
72 
83## Get Claude-generated file metadata
94 
10**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}`
5**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}`
116 
127Returns metadata for a file the assistant created via tool use.
138 
149Use the sibling `/content` endpoint to download the bytes.
1510 
16### Path Parameters
11### Path parameters
1712 
1813- `claude_gen_file_id: string`
1914 
2015 The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages.
2116 
22### Header Parameters
17### Headers
2318 
2419- `"x-api-key": optional string`
2520 
from line 32
3732 
3833 File creation timestamp, when available
3934 
35 format: date-time
36 
4037- `filename: string`
4138 
4239 Display name of the generated file
from line 52
5552 
5653### Example
5754 
58```http
55```bash
5956curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID \
6057 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
6158```
6259 
63#### Response
60#### Response (200)
6461 
6562```json
6663{
from line 73
7673 
7774## Download a Claude-generated file
7875 
79**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`
76**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`
8077 
8178Downloads the binary content of a file the assistant created via tool use.
8279 
83### Path Parameters
80### Path parameters
8481 
8582- `claude_gen_file_id: string`
8683 
8784 The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages.
8885 
89### Header Parameters
86### Headers
9087 
9188- `"x-api-key": optional string`
9289 
9390### Example
9491 
95```http
92```bash
9693curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID/content \
9794 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
9895```
9996 
100## Domain Types
97## Domain types
10198 
10299### Generated File Retrieve Response
103100 
104- `GeneratedFileRetrieveResponse object { id, claude_chat_id, created_at, 4 more }`
101- `GeneratedFileRetrieveResponse object`
105102 
106103 Metadata for GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}.
107104 
from line 119
122119 - `created_at: string or null`
123120 
124121 File creation timestamp, when available
122 
123 format: date-time
125124 
126125 - `filename: string`
127126 

api/compliance/apps/chats/generated_files/download Changed · +6 / -11 lines

# Download a Claude-generated file ## Path parameters ## Headers ## Example ## Download a Claude-generated file ### Path Parameters ### Header Parameters ### Example

from line 1
1---
2title: Download a Claude-generated file
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/generated_files/download
4---
1# Download a Claude-generated file
52 
6## Download a Claude-generated file
3**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`
74 
8**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content`
9 
105Downloads the binary content of a file the assistant created via tool use.
116 
12### Path Parameters
7## Path parameters
138 
149- `claude_gen_file_id: string`
1510 
1611 The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages.
1712 
18### Header Parameters
13## Headers
1914 
2015- `"x-api-key": optional string`
2116 
22### Example
17## Example
2318 
24```http
19```bash
2520curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID/content \
2621 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
2722```

api/compliance/apps/chats/generated_files/retrieve Changed · +10 / -13 lines

# Get Claude-generated file metadata ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get Claude-generated file metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: Get Claude-generated file metadata
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/generated_files/retrieve
4---
1# Get Claude-generated file metadata
52 
6## Get Claude-generated file metadata
3**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}`
74 
8**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}`
9 
105Returns metadata for a file the assistant created via tool use.
116 
127Use the sibling `/content` endpoint to download the bytes.
138 
14### Path Parameters
9## Path parameters
1510 
1611- `claude_gen_file_id: string`
1712 
1813 The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages.
1914 
20### Header Parameters
15## Headers
2116 
2217- `"x-api-key": optional string`
2318 
24### Returns
19## Returns
2520 
2621- `id: string`
2722 
from line 30
3530 
3631 File creation timestamp, when available
3732 
33 format: date-time
34 
3835- `filename: string`
3936 
4037 Display name of the generated file
from line 48
5148 
5249 Size in bytes of the stored file, when available
5350 
54### Example
51## Example
5552 
56```http
53```bash
5754curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID \
5855 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
5956```
6057 
61#### Response
58### Response (200)
6259 
6360```json
6461{

api/compliance/apps/chats/list Changed · +68 / -43 lines

# List chats ## Query parameters ## Headers ## Returns ## Example ### Response (200) ## List chats ### Query Parameters ### Header Parameters ### Returns ### Example #### Response

from line 1
1---
2title: List chats
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/list
4---
1# List chats
52 
6## List chats
3**GET** `/v1/compliance/apps/chats`
74 
8**get** `/v1/compliance/apps/chats`
9 
105Lists chat metadata with filtering capabilities for targeted
116compliance review. Results are sorted chronologically (time ascending)
127by the `order_by` key, with ties broken by id.
from line 15
2015no time filter) with the default `order_by`. `user_ids[]` with
2116`order_by=updated_at` is already rejected.
2217 
23### Query Parameters
18## Query parameters
2419 
2520- `after_id: optional string`
2621 
from line 25
3025 
3126 Pagination cursor for retrieving the previous page of results. To paginate, pass the `first_id` value from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
3227 
33- `created_at: optional object { gt, gte, lt, lte }`
28- `created_at: optional object`
3429 
3530 - `gt: optional string`
3631 
3732 Filter chats created after this time (RFC 3339 format)
3833 
34 format: date-time
35 
3936 - `gte: optional string`
4037 
4138 Filter chats created at or after this time (RFC 3339 format)
4239 
40 format: date-time
41 
4342 - `lt: optional string`
4443 
4544 Filter chats created before this time (RFC 3339 format)
4645 
46 format: date-time
47 
4748 - `lte: optional string`
4849 
4950 Filter chats created at or before this time (RFC 3339 format)
5051 
52 format: date-time
53 
5154- `limit: optional number`
5255 
5356 Maximum results (default: 100, max: 1000)
5457 
58 default: 100, maximum: 1000, minimum: 1
59 
5560- `order_by: optional "created_at" or "updated_at"`
5661 
5762 Sort key for results. `created_at` (default) sorts by chat creation time. `updated_at` sorts by last update time and is only supported for org-wide queries (omit user_ids[]). For org-wide queries, any time filter must match the sort key: `created_at.*` filters require `order_by=created_at`, and `updated_at.*` filters require `order_by=updated_at`.
5863 
64 default: created_at
65 
5966 - `"created_at"`
6067 
6168 - `"updated_at"`
from line 75
6875 
6976 Filter by project IDs (accepts `claude_proj_...`). Enumerate IDs via `GET /v1/compliance/apps/projects`. Requires user_ids[]; not supported for org-wide queries.
7077 
71- `updated_at: optional object { gt, gte, lt, lte }`
78- `updated_at: optional object`
7279 
7380 - `gt: optional string`
7481 
7582 Filter chats updated after this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
7683 
84 format: date-time
85 
7786 - `gte: optional string`
7887 
7988 Filter chats updated at or after this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
8089 
90 format: date-time
91 
8192 - `lt: optional string`
8293 
8394 Filter chats updated before this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
8495 
96 format: date-time
97 
8598 - `lte: optional string`
8699 
87100 Filter chats updated at or before this time (RFC 3339 format). Combining updated_at filters with `user_ids[]` is deprecated and will be rejected after 2026-09-22; for updated_at-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
88101 
102 format: date-time
103 
89104- `user_ids: optional array of string`
90105 
91106 Filter to chats created by specific users (max 10 per request). Omit for an org-wide query. Enumerate IDs via `GET /v1/compliance/organizations/{org_uuid}/users`. Deprecated combination: passing `user_ids[]` together with any `updated_at.*` filter is deprecated and will be rejected after 2026-09-22. For `updated_at`-windowed polling, omit `user_ids[]` and use `order_by=updated_at` with `after_id` pagination.
92107 
93### Header Parameters
108 maxItems: 10
94109 
110## Headers
111 
95112- `"x-api-key": optional string`
96113 
97### Returns
114## Returns
98115 
99- `data: array of object { id, created_at, deleted_at, 8 more }`
116- `data: array of object`
100117 
101118 List of chat metadata sorted chronologically by the request's `order_by` key (default `created_at`), tie break by id
102119 
from line 125
108125 
109126 Creation timestamp
110127 
128 format: date-time
129 
111130 - `deleted_at: string or null`
112131 
113132 Deletion timestamp if deleted
114133 
134 format: date-time
135 
115136 - `href: string`
116137 
117138 URL to view this chat in claude.ai
from line 145
124145 
125146 Chat name/title
126147 
127 - `organization_id: string`
128 
129 Organization ID this chat belongs to
130 
131148 - `organization_uuid: string`
132149 
133150 Organization UUID this chat belongs to
from line 157
140157 
141158 Last update timestamp
142159 
143 - `user: object { id, email_address } or null`
160 format: date-time
144161 
162 - `user: object or null`
163 
145164 User information for compliance responses.
146165 
147166 - `id: string`
from line 171
152171 
153172 User's email address
154173 
174 - `organization_id: string`
175 
176 **Deprecated**
177 
178 Organization ID this chat belongs to
179 
155180- `first_id: string or null`
156181 
157182 Opaque pagination cursor for the first chat in the current result set. Pass as `before_id` on the next request to page backwards. Backward pagination is only supported for per-user queries (`user_ids[]` set); org-wide queries do not accept `before_id`. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
from line 189
164189 
165190 Opaque pagination cursor for the last chat in the current result set. Pass as `after_id` on the next request to page forwards. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
166191 
167### Example
192## Example
168193 
169```http
194```bash
170195curl https://api.anthropic.com/v1/compliance/apps/chats \
171196 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
172197```
173198 
174#### Response
199### Response (200)
175200 
176201```json
177202{
Feedback