Response (200)
{
"id": "claude_proj_doc_01Qr8StUvWxYzAbCdEfGhJjK",
"content": "# Design notes\n\n- Item one\n- Item two\n",
"created_at": "2025-03-12T18:22:41.123456Z",
"filename": "design-notes.txt",
"user": {
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"email_address": "jane.doe@example.com"
}
}Get project document metadata
GET /v1/compliance/apps/projects/documents/\{document_id\}/metadata
Returns metadata for a project document, without the content body.
Use the sibling GET /v1/compliance/apps/projects/documents/\{document_id\} endpoint to fetch the document text. The md5 and size_bytes fields here are computed over the UTF-8 encoding of that text, so a DLP consumer can dedupe or match hashes without downloading every document.
Path parameters
document_id: stringThe document ID (tagged ID, e.g., claude_proj_doc_abc123)
Headers
"anthropic-version": optional stringThe version of the Claude API you want to use.
Read more about versioning and our version history here.
"x-api-key": optional string
Returns
id: stringProject document identifier (tagged ID)
claude_project_id: stringThe project this document belongs to
created_at: stringDocument creation timestamp
format: date-time
filename: stringDocument filename
md5: stringLowercase hex MD5 of the document content (UTF-8 encoded). Matches the
contentfield returned by the sibling content endpoint.mime_type: "text/plain"MIME type of the document content, always plain text
default: text/plain
size_bytes: numberSize in bytes of the document content (UTF-8 encoded)
user: object or nullThe 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: stringUser identifier (tagged ID)
email_address: stringUser's email address
Example
curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID/metadata \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"