To enable the Compliance API, see the setup guide.
Set up the Compliance API프로젝트 첨부 파일 목록 조회
GET/v1/compliance/apps/projects/{project_id}/attachments
프로젝트에 첨부된 파일과 문서를 나열합니다.
project_id로 참조된 프로젝트에 첨부된 파일과 프로젝트 문서를 나열합니다. 여기에는 첨부된 파일의 ID와 첨부된 프로젝트 문서가 포함됩니다.
첨부된 파일의 원시 바이너리 콘텐츠는 GET /v1/compliance/apps/chats/files/{claude_file_id}/content 엔드포인트를 사용하여 다운로드할 수 있습니다.
첨부된 프로젝트 문서의 텍스트 콘텐츠는 GET /v1/compliance/apps/projects/documents/{claude_proj_doc_id} 엔드포인트를 사용하여 가져올 수 있습니다.
Path parameters
Query parameters
Headers
Returns
프로젝트 첨부 파일 목록 조회
cURL
curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/attachments \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"data": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"filename": "filename",
"md5": "md5",
"mime_type": "mime_type",
"size_bytes": 0,
"type": "project_file"
}
],
"has_more": true,
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"filename": "filename",
"md5": "md5",
"mime_type": "mime_type",
"size_bytes": 0,
"type": "project_file"
}
],
"has_more": true,
"next_page": "next_page"
}