Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

對話

列出對話
GET/v1/compliance/apps/chats
刪除對話
DELETE/v1/compliance/apps/chats/{claude_chat_id}
Models
ChatListResponse object{ id, created_at, deleted_at, 8 more }

Chat metadata for listing chats (without messages).

ChatDeleteResponse object{ id, type }

Response for deleting a Claude chat.

id: string

The ID of the Claude chat that was deleted

type: optional "claude_chat_deleted"

Constant string confirming deletion

defaultclaude_chat_deleted

對話訊息

取得對話訊息
GET/v1/compliance/apps/chats/{claude_chat_id}/messages

對話檔案

取得檔案中繼資料
GET/v1/compliance/apps/chats/files/{claude_file_id}
刪除檔案
DELETE/v1/compliance/apps/chats/files/{claude_file_id}
下載檔案內容
GET/v1/compliance/apps/chats/files/{claude_file_id}/content
取得 Claude 生成的檔案中繼資料
GET/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}
下載 Claude 生成的檔案
GET/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content