Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

远程

列出远程会话
GET/v1/compliance/apps/sessions/remote

列出该密钥可读取的各组织中的远程会话(在 Anthropic 托管的云环境中运行的 Cowork 会话)。

Models
RemoteListResponse object{ id, agent_id, claude_project_id, 8 more }

Metadata for one remote session, as returned in the list response and in the messages response's session field.

Carries session attributes only, not transcript content. Use the messages endpoint to retrieve a session's transcript.

远程消息

检索远程会话消息
GET/v1/compliance/apps/sessions/remote/{claude_remote_session_id}/messages

检索一个远程会话的记录:用户提示、助手响应以及工具调用和结果。不包括思考块和图像。Claude 的应用会向用户消息中添加一些给助手的说明而不向用户显示,其中部分说明会被隐去:此类 text 块将以空内容返回,并带有 added_as_context: true。其他添加的文本将完整返回。