To enable the Compliance API, see the setup guide.
Set up the Compliance APIApps
AppsChats
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.
AppsChatsMessages
Get chat messages
Retrieves message history and file metadata for a specific chat.
AppsChatsFiles
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.
AppsChatsGenerated 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.
AppsProjects
List projects
Lists project metadata with filtering capabilities. Results are sorted chronologically (time ascending) by created_at.
Get project details
Get detailed information for a specific project.
Delete project
Delete a project for compliance purposes.
AppsProjectsAttachments
List project attachments
List files and documents attached to a project.
AppsProjectsCollaborators
List project collaborators
List the users, groups, and organization-wide grants on a project.
AppsProjectsDocuments
Get project document content
Get detailed information for a specific project document.
Get project document metadata
Returns metadata for a project document, without the content body.
Delete project document
Delete a project document for compliance purposes.
AppsArtifacts
Get artifact metadata
Returns metadata for an artifact version, without the content body.
Download artifact content
Download the content of an artifact version for compliance purposes.
AppsSessionsLocal
List local sessions
List local sessions across the organizations the key may read.
Retrieve a local session
Retrieve one local session.
AppsSessionsLocalMessages
Retrieve local session messages
Read one local session's transcript, oldest-first by default.
AppsSessionsRemote
List remote sessions
List remote sessions (Cowork sessions that run in Anthropic-managed cloud environments) across the organizations the key may read.
AppsSessionsRemoteMessages
Retrieve remote session messages
Retrieve one remote session's transcript: user prompts, assistant responses, and tool calls and results. Thinking blocks and images are not included.