compliance-sessions changedmanage-claude/compliance-sessions
Nearest release: v2.1.334, published 8 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+13added
Lines−7removed
From line
326
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits34to this page, all time
The whole hunk
from line 326, old and new numbered
/
from line 326
326326
327327Cowork sessions started on claude.ai web or mobile and Claude Tag sessions started in Slack run in the cloud in Anthropic-managed environments; Claude Tag sessions can also run on a self-hosted runner pool. The Compliance API exposes these remote sessions through two endpoints: `GET /v1/compliance/apps/sessions/remote` lists session metadata, and `GET /v1/compliance/apps/sessions/remote/{session_id}/messages` returns one session’s transcript. Both require the `read:compliance_user_data` scope, and both count against the shared Compliance API rate limit plus a second request budget specific to these endpoints; see [429 Too Many Requests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests).
328328
329The list endpoint defaults to organization-wide scope: leave off `organization_ids[]` to include every claude.ai organization your key can read, or pass up to 500 values to narrow the scope. To scope the list to specific users instead, pass 1–10 `user_ids[]` values (obtain the IDs from [List organization users](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organization-users)); the filter matches the session’s owning user, so agent-owned sessions, including agent-owned Claude Tag sessions, are excluded whenever `user_ids[]` is set. Bound the results in time with `created_at` range parameters (`gte`, `gt`, `lt`, `lte`, in RFC 3339 format). There is no `updated_at` filter. The following request lists sessions created since a given date.
329The list endpoint defaults to organization-wide scope: leave off `organization_ids[]` to include every claude.ai organization your key can read, or pass up to 500 values to narrow the scope. To scope the list to specific users instead, pass 1–10 `user_ids[]` values. Obtain the IDs from [List organization users](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organization-users). The filter matches the session’s owning user, so agent-owned sessions, including agent-owned Claude Tag sessions, are excluded whenever `user_ids[]` is set. Bound the results in time with `created_at` range parameters (`gte`, `gt`, `lt`, `lte`, in RFC 3339 format). There is no `updated_at` or `scheduled_task_id` filter. The following request lists sessions created since a given date.
330330
331331```bash cURL
332332curl --fail-with-body -sS -G \
from line 353
353353 "created_at": "2026-07-01T17:04:05Z",
354354 "updated_at": "2026-07-01T18:00:41Z",
355355 "product_surface": "cowork_remote",
356 "claude_project_id": "claude_proj_01KGp4eZNug9ri4kE35RSppq"
356 "claude_project_id": "claude_proj_01KGp4eZNug9ri4kE35RSppq",
357 "scheduled_task_id": null
357358 },
358359 {
359360 "id": "cse_01TkNpRsUvWxYzAbCdEfGhJ4",
from line 369
368369 "created_at": "2026-06-28T09:15:22Z",
369370 "updated_at": "2026-06-28T09:47:10Z",
370371 "product_surface": "cowork_remote",
371 "claude_project_id": null
372 "claude_project_id": null,
373 "scheduled_task_id": "trig_01HnRsTuVwXyZaBcDeFgHjK7"
372374 }
373375 ],
374376 "next_page": "page_AAEfMk93cXpYdGxrZXk"
from line 381
379381
380382A session is owned by either a user or an agent, never both. For user-owned sessions, `user` carries the owner’s ID and email address (`email_address` is `null` when the user is no longer a member of an organization your key can read) and `agent_id` is `null`. For agent-owned sessions (for example, a Claude Tag session started by a Slack mention), `user` is `null` and `agent_id` carries the agent’s ID (prefix `cagt_`). On those sessions, `started_by_user` identifies the human who started the session when one is recorded, so it can be `null` on a Claude Tag session. On user-owned sessions, `started_by_user` is `null`.
381383
382Each 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.
384Each 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.
383385
386`scheduled_task_id` (prefix `trig_`) is the ID of the task whose run started the session; the task might no longer exist. It is `null` when no task is recorded, even if a task started or ran in the session. A run that continues an existing session does not change the session’s `scheduled_task_id`. No session field carries the task’s name or schedule.
387
384388`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.
385389
386390`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.
from line 430
426430 "created_at": "2026-12-01T16:20:11Z",
427431 "updated_at": "2026-12-01T16:42:57Z",
428432 "product_surface": "claude_projects",
429 "claude_project_id": "chan_01Hq7ZkXw3Tn5vB8mRc2LdPy"
433 "claude_project_id": "chan_01Hq7ZkXw3Tn5vB8mRc2LdPy",
434 "scheduled_task_id": null
430435 }
431436 ],
432437 "next_page": null
from line 466
461466 "created_at": "2026-07-01T17:04:05Z",
462467 "updated_at": "2026-07-01T18:00:41Z",
463468 "product_surface": "cowork_remote",
464 "claude_project_id": null
469 "claude_project_id": null,
470 "scheduled_task_id": null
465471 },
466472 "data": [
467473 {
from line 503
497503}
498504```
499505
500The response embeds a `session` envelope alongside the paginated `data` array. On this endpoint the envelope always has `user.email_address`, `started_by_user`, and `claude_project_id` set to `null`; get those values from the list endpoint instead.
506The response embeds a `session` envelope alongside the paginated `data` array. On this endpoint, the envelope always has `user.email_address`, `started_by_user`, and `claude_project_id` set to `null`; get those values from the list endpoint instead. The envelope’s `scheduled_task_id` has the same value as on the list endpoint.
501507
502508Messages are returned oldest first by default; pass `order=desc` to reverse. Pagination uses the same `page`/`next_page` scheme as the list endpoint, with a `limit` default of 100 and a max of 1,000. A page can end early when the response reaches its size limit, so a page with fewer than `limit` messages does not mean you have reached the end; keep paginating until `next_page` is `null`.
503509
No line in this hunk matches that.