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

读取单个本地会话的对话记录,默认按从旧到新的顺序排列。