To enable the Compliance API, see the setup guide.
Set up the Compliance API下载文件内容
GET/v1/compliance/apps/chats/files/{claude_file_id}/content
下载对话消息中引用的文件的二进制内容。
Path parameters
Headers
下载文件内容
cURL
curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID/content \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"