Get file metadata
api/compliance/apps/chats/files/retrieve
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/chats/files/retrieve Changed · +10 / -13 lines
# Get file metadata ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get file metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Get file metadata -url: https://platform.claude.com/docs/en/api/compliance/apps/chats/files/retrieve ---- +# Get file metadata -## Get file metadata +**GET** `/v1/compliance/apps/chats/files/{claude_file_id}` -**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. -### Path Parameters +## Path parameters - `claude_file_id: string` The file ID (tagged ID, e.g., claude_file_abc123) -### Header Parameters +## Headers - `"x-api-key": optional string` -### Returns +## Returns - `id: string`
File creation timestamp + format: date-time + - `filename: string or null` Display name of the file, if set
Size in bytes of the file's preferred downloadable variant, if known -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +### Response (200) ```json {