compliance-sessions changedmanage-claude/compliance-sessions
Nearest release: v2.1.333, published 2 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+52added
Lines−7removed
From line
14
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits34to this page, all time
### List a project’s sessions
The whole hunk
from line 14, old and new numbered
/
from line 14
1414 **Prerequisite:** None for listing sessions organization-wide. To filter the remote session list (sessions in the cloud) to specific users, you need user IDs from [List organization users](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organization-users); the local session list has no user filter.
1515</Check>
1616
17The endpoints on this page expose session transcripts from your Claude Enterprise organizations to compliance reviewers. The transcripts cover the sessions your users run in Claude apps and agents (Cowork, Claude Code, Claude Science, Claude for Microsoft 365, the Claude add-ins for Google Docs, Google Sheets, and Google Slides, Claude in Chrome, and Claude Tag). Each session is a single conversation with Claude; its transcript is the sequence of user prompts, assistant responses, and tool calls and results in that conversation. The endpoints support eDiscovery (electronic discovery) exports and data loss prevention (DLP) enforcement.
17The endpoints on this page expose session transcripts from your Claude Enterprise organizations to compliance reviewers. The transcripts cover the sessions your users run in Claude apps and agents (Cowork, Claude Code, Claude Science, Claude for Microsoft 365, the Claude add-ins for Google Docs, Google Sheets, and Google Slides, Claude in Chrome, Claude Tag, and the new projects experience). Each session is a single conversation with Claude; its transcript is the sequence of user prompts, assistant responses, and tool calls and results in that conversation. The endpoints support eDiscovery (electronic discovery) exports and data loss prevention (DLP) enforcement.
1818
1919## Endpoint families and coverage
2020
from line 21
2121The Compliance API groups sessions into two endpoint families:
2222
2323* **Local session endpoints** return sessions that run on users’ machines.
24* **Remote session endpoints** return sessions that run in the cloud in Anthropic-managed environments. They also return Claude Tag sessions that run on a self-hosted runner pool.
24* **Remote session endpoints** return sessions that run in the cloud in Anthropic-managed environments. They also return Claude Tag sessions that run on a self-hosted runner pool and sessions in the new projects experience, wherever they run.
2525
2626Both families are read-only. Neither is available to Admin API keys (`sk-ant-admin01-...`): a call authenticated with one returns [403 Forbidden](https://platform.claude.com/docs/en/manage-claude/compliance-errors#403-forbidden).
2727
from line 37
3737| Claude in Chrome (the browser extension’s built-in chat), running on the user’s machine | Local session endpoints | `claude_in_chrome` |
3838| Cowork sessions running in the cloud in Anthropic-managed environments, including sessions started on claude.ai web or mobile and cloud runs of Cowork scheduled tasks | Remote session endpoints (`/v1/compliance/apps/sessions/remote`) | `cowork_remote` |
3939| [Claude Tag](https://claude.com/docs/claude-tag/overview) sessions started in Slack, running in the cloud in Anthropic-managed environments or on a self-hosted runner pool | Remote session endpoints | `claude_tag` |
40| Sessions in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience) (a project’s conversation and its threads) | Remote session endpoints | `claude_projects` |
4041
4142Coverage is stable for Cowork sessions (local and remote), Claude Code sessions, and Claude for Microsoft 365 sessions. It is in beta for every other product in the table.
4243
from line 46
4546Capture of local sessions is tied to the Compliance API being enabled for your organization and applies while users are signed in with their Claude Enterprise account. The session endpoints do not return the following:
4647
4748* Claude Code sessions authenticated with a Claude Console Developer API key, or run through a third-party cloud platform such as Amazon Bedrock, Claude Models on Google Cloud (Google managed), or Microsoft Foundry.
48* [Claude Code cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web) (including [Claude Code cloud scheduled tasks](https://code.claude.com/docs/en/routines)), which run on cloud infrastructure instead of the user’s machine. These cloud sessions are not remote sessions, even though both run in the cloud; the remote session endpoints return Cowork and Claude Tag sessions only.
49* [Claude Code cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web) (including [Claude Code cloud scheduled tasks](https://code.claude.com/docs/en/routines)), which run on cloud infrastructure instead of the user’s machine. These cloud sessions are not remote sessions, even though both run in the cloud, unless they belong to a project in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience). The remote session endpoints return sessions from Cowork, Claude Tag, and the new projects experience only.
4950* Local sessions from products other than Cowork and Claude Code in organizations with [HIPAA readiness](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#hipaa-readiness) enabled. In those organizations, the local session endpoints return Cowork and Claude Code sessions only, and captured session content is stored for 30 days.
5051* Local sessions for which [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) is in effect. These sessions are excluded from list results, and the retrieve and messages endpoints return 404 for them.
5152
from line 58
5758| Setup | Works with your existing Compliance Access Key | Works with your existing Compliance Access Key | Admin configures an OTLP endpoint and content-capture settings |
5859| Infrastructure | Anthropic-hosted | Anthropic-hosted | You run the collector and storage |
5960| ID prefix | `clls_` | `cse_` | N/A |
60| `product_surface` values | `cowork`, `claude_code`, `claude_science`, `claude_in_chrome`, and values starting with `office_agents` | `cowork_remote`, `claude_tag` | N/A |
61| `product_surface` values | `cowork`, `claude_code`, `claude_science`, `claude_in_chrome`, and values starting with `office_agents` | `cowork_remote`, `claude_tag`, `claude_projects` | N/A |
6162| Retention | 6 years by default, or your organization’s custom conversation retention period when a finite one is set; 30 days in organizations with HIPAA readiness enabled; held by Anthropic | No default period; see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion); held by Anthropic | Your infrastructure, your policies |
6263| User prompts and assistant responses | Yes | Yes | Yes, subject to content-capture settings |
6364| Tool inputs | Truncated to 10,000 bytes for each input by default; up to about 1 MiB on request | Truncated to 10,000 bytes for each input by default; up to about 1 MiB on request | Truncated summaries |
from line 381
380381
381382Each run of a Cowork scheduled task in the cloud takes place in a session that has the same owner as the task. When a user creates the task in Cowork, those sessions are user-owned: `user` identifies that user, and `agent_id` and `started_by_user` are `null`. A `user_ids[]` filter that names that user matches these sessions. A run can start a new session or continue an existing one. When a run continues an existing session, that session’s `created_at` is when the session began, not when the run took place. No session field marks a session as a scheduled run or carries the task’s name or schedule.
382383
383`claude_project_id` is the ID of the claude.ai [project](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-projects-and-attachments) the session belongs to (prefix `claude_proj_`), or `null` when the session is not in a project.
384`claude_project_id` is the ID of the claude.ai [project](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-projects-and-attachments) the session belongs to (prefix `claude_proj_` or, in the new projects experience, `chan_`), or `null` when the session is not in a project.
384385
385386`status` is one of `pending`, `active`, `paused`, `archived`, or `failed`. A session is `pending` while it is being provisioned; a `pending` session has no transcript yet, and the messages endpoint returns 404 for it until provisioning completes. Sessions that have been deleted are never returned.
386387
387`product_surface` (string or `null`) identifies the product that created the session. The endpoint currently returns sessions with one of two `product_surface` values. `cowork_remote` is for Cowork sessions in the cloud, including sessions started on claude.ai web or mobile and cloud runs of Cowork scheduled tasks. `claude_tag` is for Claude Tag sessions started in Slack.
388`product_surface` (string or `null`) identifies the product that created the session. `claude_projects` is for sessions in the new projects experience. See [List a project’s sessions](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#list-a-projects-sessions). `cowork_remote` is for Cowork sessions in the cloud, including sessions started on claude.ai web or mobile and cloud runs of Cowork scheduled tasks. `claude_tag` is for Claude Tag sessions started in Slack.
388389
389390To retrieve a chat in the unified Claude experience, including the part that ran in the cloud, use the chat endpoints ([Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list)). The remote session list also returns the sessions that such a chat continues in, as `cowork_remote`, so an export of both chats and remote sessions contains most of that work twice. Each can hold content that the other does not, so keep both records. For example, user messages in the remote session do not include attached files or long pasted text, and usually do not indicate that they exist. The chat lists them in `files`. For content that the chat does not include, see [What chat messages do not return](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#what-chat-messages-do-not-return).
390391
from line 393
392393 **Build forward-compatible handlers.** Pass through unrecognized `status` and `product_surface` values, and ignore fields your handler does not expect, so your integration keeps working as new statuses and product surfaces ship.
393394</Note>
394395
396### List a project’s sessions
397
398In the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience), a project’s conversation and each of its threads run as one or more remote sessions. On each one, `product_surface` is `claude_projects` and `claude_project_id` is the project’s ID. `user` identifies the project’s owner, and `agent_id` is `null`. A thread that runs on a user’s machine can also be returned as a local session, and no field links the two.
399
400The remote session list returns these sessions. Without a project filter, it leaves out sessions that started before the Compliance API covered these projects for your organization, so use the filter to list those. With or without the filter, the list does not return a session that started before November 12, 2026.
401
402To list only the sessions of specific projects, pass 1–10 `project_ids[]` values. The filter takes only the IDs of projects in the new projects experience (`is_coordinated` is `true`), which you can get from [List projects](https://platform.claude.com/docs/en/api/compliance/apps/projects/list). The request must cover exactly one organization: if your key can read several, pass the project’s `organization_uuid` as the only `organization_ids[]` value. You cannot combine the filter with `user_ids[]`. The filter accepts projects that together hold up to 5,000 sessions. A request that breaks one of these rules returns a 400. See [Invalid project filter](https://platform.claude.com/docs/en/manage-claude/compliance-errors#invalid-project-filter). The following request lists one project’s sessions.
403
404```bash cURL
405curl --fail-with-body -sS -G \
406 "https://api.anthropic.com/v1/compliance/apps/sessions/remote" \
407 -H "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
408 -H "anthropic-version: 2026-10-21" \
409 --data-urlencode "organization_ids[]=91012d09-e48b-438e-a489-1bebfd8fa6f9" \
410 --data-urlencode "project_ids[]=chan_01Hq7ZkXw3Tn5vB8mRc2LdPy"
411```
412
413```json Response
414{
415 "data": [
416 {
417 "id": "cse_01RmTvWxYzAbCdEfGhJkMnP8",
418 "organization_uuid": "91012d09-e48b-438e-a489-1bebfd8fa6f9",
419 "user": {
420 "id": "user_01WxYzAbCdEfGhJkMnPqRsTu",
421 "email_address": "[email protected]"
422 },
423 "agent_id": null,
424 "started_by_user": null,
425 "status": "active",
426 "created_at": "2026-12-01T16:20:11Z",
427 "updated_at": "2026-12-01T16:42:57Z",
428 "product_surface": "claude_projects",
429 "claude_project_id": "chan_01Hq7ZkXw3Tn5vB8mRc2LdPy"
430 }
431 ],
432 "next_page": null
433}
434```
435
436The filter returns scheduled task runs that take place in the project conversation or a thread. It does not return runs that have a session of their own. Apart from threads on a user’s machine, it does not return sessions that one of the project’s sessions starts for a user. The project’s `chats_count` does not count them either.
437
395438### Retrieve a remote session transcript
396439
397440The messages endpoint returns the session’s transcript: user prompts, assistant responses, and tool calls and results. Thinking blocks and images are not included. For a coverage summary, see the [Compliance API FAQ](https://platform.claude.com/docs/en/manage-claude/compliance-faq#data-coverage-and-retention); for a table comparing remote sessions with local sessions and Cowork’s OpenTelemetry logging, see [Endpoint families and coverage](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#endpoint-families-and-coverage).
from line 515
472515
473516Deleting a scheduled task also deletes the sessions that its runs started. See [Limits for scheduled tasks](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#limits-for-scheduled-tasks).
474517
518When a user deletes a project in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience), the sessions of its conversation and threads are deleted with it.
519
475520Claude Tag session transcripts also have no default retention period. They are deleted when [the channel is removed from Claude Tag](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#remove-a-channel), when the channel is deleted in Slack, when the Slack workspace or Enterprise Grid is disconnected, and when the Slack app is uninstalled from a workspace. Removing the organization-wide installation from an Enterprise Grid does not delete them. Export any Claude Tag transcript you must keep before you remove a channel or disconnect a workspace.
476521
477522The remote session endpoints do not return a session after it is deleted, and its transcript is not recoverable through the Compliance API. To learn how session retention sits alongside Anthropic’s other retention arrangements, see [API and data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention).
from line 525
480525
481526The remote session list returns cloud runs of Cowork scheduled tasks, including tasks that users create in the unified Claude experience. These limits apply:
482527
483* **Claude Code tasks:** The list does not return runs of [Claude Code cloud scheduled tasks](https://code.claude.com/docs/en/routines). A user creates one, for example, by adding a repository, a GitHub event trigger, or an API trigger in the scheduled task form.
528* **Claude Code tasks:** The list does not return runs of [Claude Code cloud scheduled tasks](https://code.claude.com/docs/en/routines), unless the run takes place in the conversation or a thread of a project in the new projects experience. See [List a project’s sessions](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#list-a-projects-sessions). A user creates one, for example, by adding a repository, a GitHub event trigger, or an API trigger in the scheduled task form.
484529* **Managing tasks:** No Compliance API endpoint lists, retrieves, or deletes scheduled tasks.
485530* **Changes to tasks:** The [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) does not record when a user creates, edits, or deletes a task.
486531* **Deleted tasks:** When a user deletes a task, the sessions that its runs started are deleted and cannot be recovered through the Compliance API. The Activity Feed does not record those deletions.
No line in this hunk matches that.