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。其他加入的文字則會完整傳回。