To enable the Compliance API, see the setup guide.
Set up the Compliance API下载 Claude 生成的文件
GET/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content
下载助手通过工具使用创建的文件的二进制内容。
Path parameters
Headers
下载 Claude 生成的文件
cURL
curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID/content \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"