Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Chats

List chats
GET/v1/compliance/apps/chats

Lists chat metadata with filtering capabilities for targeted compliance review. Results are sorted chronologically (time ascending) by the order_by key, with ties broken by id.

Delete chat
DELETE/v1/compliance/apps/chats/{claude_chat_id}

Permanently deletes a chat and all associated messages and files. This is a destructive operation that cannot be undone.

Models
ChatListResponse object{ id, created_at, deleted_at, 8 more }

Chat metadata for listing chats (without messages).

ChatDeleteResponse object{ type, id }

Response for deleting a Claude chat.

type: optional "claude_chat_deleted"

Constant string confirming deletion

defaultclaude_chat_deleted
id: string

The ID of the Claude chat that was deleted

ChatsMessages

Get chat messages
GET/v1/compliance/apps/chats/{claude_chat_id}/messages

Retrieves message history and file metadata for a specific chat.

ChatsFiles

Get file metadata
GET/v1/compliance/apps/chats/files/{claude_file_id}

Retrieves metadata for a file referenced in chat messages, without downloading the file content. Use the sibling /content endpoint to download the bytes.

Delete file
DELETE/v1/compliance/apps/chats/files/{claude_file_id}

Permanently deletes a specific file. This is a destructive operation that cannot be undone.

Download file content
GET/v1/compliance/apps/chats/files/{claude_file_id}/content

Downloads the binary content of a file referenced in chat messages.

Get Claude-generated file metadata
GET/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}

Returns metadata for a file the assistant created via tool use.

Download a Claude-generated file
GET/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content

Downloads the binary content of a file the assistant created via tool use.