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
Returns
파일 메타데이터 조회
cURL
curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"id": "claude_file_xyz789",
"filename": "quarterly_report.pdf",
"mime_type": "application/pdf",
"size_bytes": 1048576,
"md5": "5d41402abc4b2a76b9719d911017c592",
"created_at": "2024-01-15T10:30:00Z",
"message_ids": [
"claude_chat_msg_abc123"
],
"claude_chat_ids": [
"claude_chat_def456"
]
}Returns Examples
Response 200
{
"id": "claude_file_xyz789",
"filename": "quarterly_report.pdf",
"mime_type": "application/pdf",
"size_bytes": 1048576,
"md5": "5d41402abc4b2a76b9719d911017c592",
"created_at": "2024-01-15T10:30:00Z",
"message_ids": [
"claude_chat_msg_abc123"
],
"claude_chat_ids": [
"claude_chat_def456"
]
}