Get Claude-generated file metadata
api/compliance/apps/chats/generated_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/generated_files/retrieve Changed · +10 / -13 lines
# Get Claude-generated file metadata ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get Claude-generated file metadata ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Get Claude-generated file metadata -url: https://platform.claude.com/docs/en/api/compliance/apps/chats/generated_files/retrieve ---- +# Get Claude-generated file metadata -## Get Claude-generated file metadata +**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}` -**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}` - Returns metadata for a file the assistant created via tool use. Use the sibling `/content` endpoint to download the bytes. -### Path Parameters +## Path parameters - `claude_gen_file_id: string` The generated-file id (e.g., 'claude_gen_file_abc123') as returned in `chat_messages[].generated_files[].id` from GET /apps/chats/{claude_chat_id}/messages. -### Header Parameters +## Headers - `"x-api-key": optional string` -### Returns +## Returns - `id: string`
File creation timestamp, when available + format: date-time + - `filename: string` Display name of the generated file
Size in bytes of the stored file, when available -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +### Response (200) ```json {