Follow Discord
Sweep 24 Nov 2026 · 22:58Z Build v2.1.332 549 read Stable v2.1.326 Latest v2.1.332 Next v2.1.332 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

WARNING: This operation PERMANENTLY deletes the chat, all of its messages, changedmanage-claude/compliance-content-data

Nearest release: v2.1.332, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+15added
Lines−5removed
From line 24 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits21to this page, all time

### What chat messages do not return

The whole hunk

from line 24, old and new numbered
/
lines
from line 24
2424 
2525Use [List chats](https://platform.claude.com/docs/en/api/compliance/apps/chats/list) to page through chat metadata, then [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) to fetch the full message content of one chat.
2626 
27Chats in the unified Claude experience are returned by these endpoints like any other chat: a chat that continues in a session in the cloud comes back as one chat. The work Claude does there appears in each message’s `content` as `tool_use` blocks (the tool’s `name` and `input`) and `tool_result` blocks (its output, matched by `tool_use_id`). Coverage of these chats is in beta.
27These endpoints return chats in the unified Claude experience like any other chat: a chat that continues in a session in the cloud comes back as one chat. The work Claude does there appears in each message’s `content` as `tool_use` blocks (the tool’s `name` and `input`) and `tool_result` blocks (its output, matched by `tool_use_id`). For exceptions, see [What chat messages do not return](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#what-chat-messages-do-not-return).
2828 
2929The chat list endpoint defaults to organization-wide scope: leave off `user_ids[]` to include every chat under your parent organization. Add `order_by=updated_at` to sort by last update time. This combination is the recommended way to export chats and keep an export current, because one paginated loop picks up new chats, chats with new messages, and chats deleted in claude.ai for every user without enumerating users first. The following request lists chats updated since a given date.
3030 
from line 74
7474```bash cURL
7575curl --fail-with-body -sS -G \
7676 "https://api.anthropic.com/v1/compliance/apps/chats" \
77 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
78 --header "anthropic-version: 2026-10-21" \
77 -H "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
78 -H "anthropic-version: 2026-10-21" \
7979 --data-urlencode "user_ids[]=user_01WxYzAbCdEfGhJkMnPqRsTu" \
8080 --data-urlencode "created_at.gte=2025-06-01T00:00:00Z" \
8181 --data-urlencode "limit=100"
from line 175
175175 
176176An artifact that Claude creates in a chat can instead be a code artifact (ID prefix `cart_`). Code artifacts are not in `artifacts`. [List code artifacts](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/list) returns them, but does not identify the chat that each one came from.
177177 
178### What chat messages do not return
179 
180When a chat continues in a session in the cloud, [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) does not return everything that occurs in the session:
181 
182* **Files that Claude does not give the user:** Some files stay in the session, such as intermediate files that a script writes. They are not in `files` or `generated_files`, and no endpoint downloads them.
183* **Subagent tool calls:** When Claude delegates work to a subagent, the chat includes the delegation, its result, and the files and artifacts the subagent creates or sends. The subagent’s other tool calls, including connector and web calls, are in the [remote session transcript](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-a-remote-session-transcript), where they are not marked as a subagent’s. Calls inside a skill or another subagent that a subagent runs are not always returned.
184* **Network connections:** No endpoint lists the network connections that the session attempts. Network activity is visible only through the tool calls and results that the endpoints return.
185 
178186## Retrieve files and artifacts
179187 
180188Files and artifacts are downloaded by ID. They aren’t listed independently, except for the artifacts returned by [List code artifacts](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/list), such as Claude Docs documents (see the end of this section). All other IDs come from the chat messages endpoint in [Retrieve chats and messages](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-chats-and-messages) (the `files`, `generated_files`, and `artifacts` arrays on each message) or, for project-level uploads, from the [project attachments endpoint](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-projects-and-attachments).
from line 326
318326* **Files that Claude gives a user:** In the unified Claude experience, almost all files that Claude gives a user are deleted with the chat, unless another chat or project in your organization uses them. Files that Claude gave before October 8, 2026, can remain, no matter how the chat is deleted.
319327* **Code artifacts:** Deleting a chat does not delete the code artifacts that Claude created in it. Delete them with [Delete code artifact](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/delete).
320328* **File copies in the cloud:** [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete) does not delete a copy of the file in a chat’s session in the cloud. Deleting the chat deletes the sessions that were started for it, but not sessions that those sessions started.
329* **File copies for code execution:** For a file uploaded to a chat with code execution on, [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete) does not delete the copy that the chat keeps for running code. To delete that copy, delete each chat that uses the file.
330* **Scheduled tasks:** [Delete project](https://platform.claude.com/docs/en/api/compliance/apps/projects/delete) does not delete the Cowork scheduled tasks in the project, and no Compliance API endpoint deletes them. The user who owns a task can delete it in claude.ai.
321331 
322To delete files that Claude gave a user:
332After a chat is deleted, no endpoint lists the remaining files by chat. To delete files that Claude gave a user:
323333 
3243341. Before the chat is deleted, call [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) and collect each `claude_file_` ID in `generated_files`, and in `files` on assistant messages. The endpoint does not return these IDs after the chat is deleted, and it might not list every file that remains.
3253352. Before or after the chat is deleted, pass each ID to [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete). It deletes the file even if another chat or project uses it. It returns 404 for a file that is already deleted.
Feedback