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

1 つのリモートセッションのトランスクリプト(ユーザープロンプト、アシスタントの応答、ツール呼び出しと結果)を取得します。思考ブロックと画像は含まれません。Claude のアプリがユーザーに表示せずにユーザーのメッセージに追加する、アシスタント向けの一部のメモは返されません。そのような text ブロックは added_as_context: true 付きの空の状態で返されます。その他の追加されたテキストは完全な形で返されます。