Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

会话

会话本地

列出本地会话
GET/v1/compliance/apps/sessions/local

列出该密钥可读取的各组织中的本地会话。

检索本地会话
GET/v1/compliance/apps/sessions/local/{local_session_id}

检索一个本地会话。

会话本地消息

检索本地会话消息
GET/v1/compliance/apps/sessions/local/{local_session_id}/messages

读取单个本地会话的对话记录,默认按从旧到新的顺序排列。

会话远程

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

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

会话远程消息

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

检索一个远程会话的记录:用户提示、助手响应以及工具调用和结果。不包括思考块和图像。