To enable the Compliance API, see the setup guide.
Set up the Compliance APIFiles
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.