Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

本機

列出本機工作階段
GET/v1/compliance/apps/sessions/local

列出金鑰可讀取之組織範圍內的本機工作階段。

擷取本機工作階段
GET/v1/compliance/apps/sessions/local/{local_session_id}

擷取單一本機工作階段。

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.

本機訊息

擷取本機工作階段訊息
GET/v1/compliance/apps/sessions/local/{local_session_id}/messages

讀取單一本機工作階段的對話記錄,預設由舊到新排序。