Compliance API 现在会返回在用户机器上运行的 Cowork 和 Claude Code 会话的记录,该功能在 Claude Enterprise 组织中处于测试阶段。GET /v1/compliance/apps/sessions/local 列出组织内的会话,GET /v1/compliance/apps/sessions/local/{session_id} 检索单个会话的元数据,GET /v1/compliance/apps/sessions/local/{session_id}/messages 返回其记录,所有这些都使用您现有的 Compliance Access Key 和 read:compliance_user_data 范围。请参阅用户机器上的会话。我们已在 Claude API 中添加了 anthropic-workspace-id 响应头。它携带请求的 API 密钥或访问令牌所解析到的工作区的 wrkspc_ 前缀 ID,包括您组织的默认工作区。请参阅识别 API 响应背后的工作区。
The Compliance API now returns transcripts of Cowork and Claude Code sessions that run on your users’ machines, in beta for Claude Enterprise organizations. GET /v1/compliance/apps/sessions/local lists sessions across your organization, GET /v1/compliance/apps/sessions/local/{session_id} retrieves one session’s metadata, and GET /v1/compliance/apps/sessions/local/{session_id}/messages returns its transcript, all with your existing Compliance Access Key and the read:compliance_user_data scope. See Sessions on users’ machines. We’ve added the anthropic-workspace-id response header to the Claude API. It carries the wrkspc_-prefixed ID of the workspace that the request’s API key or access token resolved to, including your organization’s Default Workspace. See Identify the workspace behind an API response.
本文内容采集自官方网站,排版和翻译可能与原页面存在差异。
阅读官方全文