Get project document metadata
api/compliance/apps/projects/documents/metadata
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/compliance/apps/projects/documents/metadata Changed · +12 / -15 lines
# Get project document metadata ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get project document metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Get project document metadata -url: https://platform.claude.com/docs/en/api/compliance/apps/projects/documents/metadata ---- +# Get project document metadata -## Get project document metadata +**GET** `/v1/compliance/apps/projects/documents/{document_id}/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}`
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 +## Path parameters - `document_id: string` The document ID (tagged ID, e.g., claude_proj_doc_abc123) -### Header Parameters +## Headers - `"x-api-key": optional string` -### Returns +## Returns - `id: string`
Document creation timestamp + format: date-time + - `filename: string` Document filename
MIME type of the document content, always plain text - - `"text/plain"` + default: text/plain - `size_bytes: number` Size in bytes of the document content (UTF-8 encoded) -- `user: object { id, email_address } or null` +- `user: object or null` The user who created a project or project document.
User's email address -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID/metadata \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +### Response (200) ```json {