To enable the Compliance API, see the setup guide.
Set up the Compliance APIList remote sessions
List remote sessions (Cowork sessions that run in Anthropic-managed cloud environments) across the organizations the key may read.
Each entry carries session metadata only; retrieve a session's
transcript from the messages endpoint. By default the list spans every
such organization; pass up to 500 organization_ids[] values to
narrow it. Pass 1 to 10 user_ids[] values to scope the
list to specific users: that filter matches the session's owning user,
so agent-owned sessions are excluded whenever it is set. Bound results
in time with the created_at range parameters (created_at.gte,
created_at.gt, created_at.lt, created_at.lte; RFC 3339). There
is no updated_at filter.
Results are sorted newest first by created_at, with at most limit
sessions per page (default 100, maximum 500). Pagination is
forward-only: pass the response's next_page value back as page to
retrieve the next page, and stop when next_page is null.
Returns 403 with the error_code organization_compliance_restricted in
error.details when an organization the request covers, or the key's own
organization, has compliance settings that do not allow its remote
sessions to be listed through the Compliance API. No sessions are
returned, and the error does not say which organization it is.
Query parameters
Headers
Returns
curl https://api.anthropic.com/v1/compliance/apps/sessions/remote \
-H 'anthropic-version: 2023-06-01' \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"{
"data": [
{
"id": "cse_01A0000000000000000000000",
"organization_uuid": "00000000-0000-0000-0000-000000000000",
"user": {
"id": "user_01A0000000000000000000000",
"email_address": "user@example.com"
},
"status": "active",
"created_at": "2026-01-02T03:04:05.000000Z",
"updated_at": "2026-01-02T03:04:05.000000Z",
"product_surface": "cowork_remote",
"claude_project_id": "claude_proj_01Nm7PqRsTuVwXyZaBcDeFgH"
}
],
"next_page": "page_AAE..."
}Returns Examples
{
"data": [
{
"id": "cse_01A0000000000000000000000",
"organization_uuid": "00000000-0000-0000-0000-000000000000",
"user": {
"id": "user_01A0000000000000000000000",
"email_address": "user@example.com"
},
"status": "active",
"created_at": "2026-01-02T03:04:05.000000Z",
"updated_at": "2026-01-02T03:04:05.000000Z",
"product_surface": "cowork_remote",
"claude_project_id": "claude_proj_01Nm7PqRsTuVwXyZaBcDeFgH"
}
],
"next_page": "page_AAE..."
}