Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Compliance API

Compliance APIActivities

Query compliance activities
GET/v1/compliance/activities

List compliance activities for the authenticated tenant.

Compliance APIOrganizations

List organizations
GET/v1/compliance/organizations

List organizations under the parent organization.

Compliance APIOrganizationsUsers

List organization users
GET/v1/compliance/organizations/{org_uuid}/users

List current user members of an organization.

Compliance APIOrganizationsRoles

List Compliance Roles
GET/v1/compliance/organizations/{org_uuid}/roles
Get Compliance Role
GET/v1/compliance/organizations/{org_uuid}/roles/{role_id}

Compliance APIOrganizationsRolesPermissions

List Compliance Role Permissions
GET/v1/compliance/organizations/{org_uuid}/roles/{role_id}/permissions

Compliance APIOrganizationsSettings

Get effective organization settings
GET/v1/compliance/organizations/{organization_id}/settings

Retrieve the effective settings for an organization.

Compliance APIGroups

List Compliance Groups
GET/v1/compliance/groups
Get Compliance Group
GET/v1/compliance/groups/{group_id}

Compliance APIGroupsMembers

List Compliance Group Members
GET/v1/compliance/groups/{group_id}/members

Compliance APIAppsChats

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.

Compliance APIAppsChatsMessages

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

Retrieves message history and file metadata for a specific chat.

Compliance APIAppsChatsFiles

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.

Compliance APIAppsChatsGenerated 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.

Compliance APIAppsProjects

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.

Compliance APIAppsProjectsAttachments

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

List files and documents attached to a project.

Compliance APIAppsProjectsCollaborators

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

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

Compliance APIAppsProjectsDocuments

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.

Compliance APIAppsArtifacts

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.

Compliance APIAppsSessionsLocal

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.

Compliance APIAppsSessionsLocalMessages

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

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

Compliance APIAppsSessionsRemote

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.

Compliance APIAppsSessionsRemoteMessages

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.

Compliance APICodeArtifacts

List Code Artifacts
GET/v1/compliance/apps/code/artifacts

List Claude Code Artifacts owned by organizations under the parent organization.

Download Code Artifact Version Content
GET/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}

Streams the content of one version of a Claude Code Artifact as the response body.

Delete Code Artifact
DELETE/v1/compliance/apps/code/artifacts/{artifact_id}

Permanently deletes a Code Artifact and all its versions. This is a destructive operation that cannot be undone. A 200 response means the deletion is initiated and the Artifact is claimed; content removal completes asynchronously.