To enable the Compliance API, see the setup guide.
Set up the Compliance API列出远程会话
GET/v1/compliance/apps/sessions/remote
列出该密钥可读取的各组织中的远程会话(在 Anthropic 托管的云环境中运行的 Cowork 会话)。
每个条目仅包含会话元数据;请从消息端点检索会话的记录。默认情况下,列表涵盖所有此类组织;传递最多 500 个 organization_ids[] 值以缩小范围。传递 1 到 10 个 user_ids[] 值可将列表限定到特定用户:该筛选器匹配会话的所属用户,因此一旦设置该筛选器,代理拥有的会话将被排除。使用 created_at 范围参数(created_at.gte、created_at.gt、created_at.lt、created_at.lte;RFC 3339 格式)按时间限定结果。没有 updated_at 筛选器。
结果按 created_at 从新到旧排序,每页最多 limit 个会话(默认 100,最大 500)。分页仅支持向前翻页:将响应的 next_page 值作为 page 传回以检索下一页,当 next_page 为 null 时停止。
Query parameters
Headers
Returns
列出远程会话
cURL
curl https://api.anthropic.com/v1/compliance/apps/sessions/remote \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"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
Response 200
{
"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..."
}