To enable the Compliance API, see the setup guide.
Set up the Compliance APIChats
List 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
Permanently deletes a chat and all associated messages and files. This is a destructive operation that cannot be undone.
Models
ChatsMessages
Get chat messages
Retrieves message history and file metadata for a specific chat.
ChatsFiles
Get file metadata
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
Permanently deletes a specific file. This is a destructive operation that cannot be undone.
Download file content
Downloads the binary content of a file referenced in chat messages.
ChatsGenerated Files
Get Claude-generated file metadata
Returns metadata for a file the assistant created via tool use.
Download a Claude-generated file
Downloads the binary content of a file the assistant created via tool use.