Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Sessions

SessionsLocal

List local sessions
GET/v1/compliance/apps/sessions/local

List local sessions across the organizations the key may read.

Retrieve a local session
GET/v1/compliance/apps/sessions/local/{local_session_id}

Retrieve one local session.

SessionsLocalMessages

Retrieve local session messages
GET/v1/compliance/apps/sessions/local/{local_session_id}/messages

Read one local session's transcript, oldest-first by default.

SessionsRemote

List remote sessions
GET/v1/compliance/apps/sessions/remote

List remote sessions (Cowork sessions that run in Anthropic-managed cloud environments) across the organizations the key may read.

SessionsRemoteMessages

Retrieve remote session messages
GET/v1/compliance/apps/sessions/remote/{claude_remote_session_id}/messages

Retrieve one remote session's transcript: user prompts, assistant responses, and tool calls and results. Thinking blocks and images are not included.