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