Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

消息

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

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

Models
MessageListResponse object{ id, content, content_unavailable, 4 more }

A single entry in a remote session transcript.

content is a discriminated union of text, tool_use, and tool_result blocks.