Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Local

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.

Models
LocalRetrieveResponse object{ type: "compliance_local_session", id, created_at, 6 more }

A session that a user ran on their own computer in a Claude app while signed in with their organization account.

LocalListResponse object{ type: "compliance_local_session", id, created_at, 6 more }

A session that a user ran on their own computer in a Claude app while signed in with their organization account.

LocalMessages

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

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