Generated Files
api/compliance/apps/chats/generated_files
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 Changed · +15 / -16 lines
### Path parameters ### Headers #### Response (200) ### Path parameters ### Headers ## Domain types ### Path Parameters ### Header Parameters #### Response ### Path Parameters ### Header Parameters ## Domain Types
---- -title: Generated Files -url: https://platform.claude.com/docs/en/api/compliance/apps/chats/generated_files ---- - # Generated Files ## 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`
File creation timestamp, when available + format: date-time + - `filename: string` Display name of the generated file
### 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 {
## Download a Claude-generated file -**get** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content` +**GET** `/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content` Downloads the binary content of a file the assistant created via tool use. -### 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` ### Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID/content \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -## Domain Types +## Domain types ### Generated File Retrieve Response -- `GeneratedFileRetrieveResponse object { id, claude_chat_id, created_at, 4 more }` +- `GeneratedFileRetrieveResponse object` Metadata for GET /v1/compliance/apps/chats/generated-files/{claude_gen_file_id}.
- `created_at: string or null` File creation timestamp, when available + + format: date-time - `filename: string`