Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Apps

AppsChats

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.

AppsChatsMessages

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

Retrieves message history and file metadata for a specific chat.

AppsChatsFiles

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.

AppsChatsGenerated Files

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.

AppsProjects

List projects
GET/v1/compliance/apps/projects

Lists project metadata with filtering capabilities. Results are sorted chronologically (time ascending) by created_at.

Get project details
GET/v1/compliance/apps/projects/{project_id}

Get detailed information for a specific project.

Delete project
DELETE/v1/compliance/apps/projects/{project_id}

Delete a project for compliance purposes.

AppsProjectsAttachments

List project attachments
GET/v1/compliance/apps/projects/{project_id}/attachments

List files and documents attached to a project.

AppsProjectsCollaborators

List project collaborators
GET/v1/compliance/apps/projects/{project_id}/collaborators

List the users, groups, and organization-wide grants on a project.

AppsProjectsDocuments

Get project document content
GET/v1/compliance/apps/projects/documents/{document_id}

Get detailed information for a specific project document.

Get project document metadata
GET/v1/compliance/apps/projects/documents/{document_id}/metadata

Returns metadata for a project document, without the content body.

Delete project document
DELETE/v1/compliance/apps/projects/documents/{document_id}

Delete a project document for compliance purposes.

AppsArtifacts

Get artifact metadata
GET/v1/compliance/apps/artifacts/{artifact_version_id}

Returns metadata for an artifact version, without the content body.

Download artifact content
GET/v1/compliance/apps/artifacts/{artifact_version_id}/content

Download the content of an artifact version for compliance purposes.

AppsSessionsLocal

List local sessions
GET/v1/compliance/apps/sessions/local

List local sessions across the organizations the key may read.

Retrieve a local session
GET/v1/compliance/apps/sessions/local/{local_session_id}

Retrieve one local session.

AppsSessionsLocalMessages

Retrieve local session messages
GET/v1/compliance/apps/sessions/local/{local_session_id}/messages

Read one local session's transcript, oldest-first by default.

AppsSessionsRemote

List remote sessions
GET/v1/compliance/apps/sessions/remote

List remote sessions (Cowork sessions that run in Anthropic-managed cloud environments) across the organizations the key may read.

AppsSessionsRemoteMessages

Retrieve remote session messages
GET/v1/compliance/apps/sessions/remote/{claude_remote_session_id}/messages

Retrieve one remote session's transcript: user prompts, assistant responses, and tool calls and results. Thinking blocks and images are not included.