Claude Platform Docs

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
claude_file_id: string

The file ID (tagged ID, e.g., claude_file_abc123)

Headers
"x-api-key": optional string
下载文件内容
cURL
curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID/content \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"