Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Documents

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.

Models
DocumentRetrieveResponse object{ id, content, created_at, 2 more }

Project document information for compliance responses.

id: string

Project document identifier (tagged ID)

content: string

Document text content

created_at: string

Document creation timestamp

formatdate-time
filename: string

Document filename

user: object{ id, email_address } or null

The user who created a project or project document.

Fields that reference this type are null when the creator's account has been deleted or the creator is no longer a member of an organization the key may read.

id: string

User identifier (tagged ID)

email_address: string

User's email address

DocumentDeleteResponse object{ type: "claude_project_document_deleted", id }

Response for deleting a project document.

type: "claude_project_document_deleted"

Constant string confirming deletion.

defaultclaude_project_document_deleted
id: string

The ID of the project document that was deleted

DocumentMetadataResponse object{ id, claude_project_id, created_at, 5 more }

Project document metadata for GET /v1/compliance/apps/projects/documents/{document_id}/metadata.

Returns metadata only. Use the sibling endpoint (without /metadata) to fetch the document text content.