To enable the Compliance API, see the setup guide.
Set up the Compliance API아티팩트 메타데이터 조회
GET/v1/compliance/apps/artifacts/{artifact_version_id}
콘텐츠 본문 없이 아티팩트 버전의 메타데이터를 반환합니다.
아티팩트 텍스트를 가져오려면 형제 엔드포인트인 /content를 사용하세요. 여기의 md5 및 size_bytes 필드는 해당 텍스트의 UTF-8 인코딩을 기준으로 계산되므로, DLP 소비자는 모든 아티팩트를 다운로드하지 않고도 중복을 제거하거나 해시를 대조할 수 있습니다.
Path parameters
Headers
Returns
아티팩트 메타데이터 조회
cURL
curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"id": "id",
"artifact_type": "artifact_type",
"claude_chat_id": "claude_chat_id",
"created_at": "2019-12-27T18:11:19.117Z",
"md5": "md5",
"size_bytes": 0,
"title": "title",
"version_id": "version_id"
}Returns Examples
Response 200
{
"id": "id",
"artifact_type": "artifact_type",
"claude_chat_id": "claude_chat_id",
"created_at": "2019-12-27T18:11:19.117Z",
"md5": "md5",
"size_bytes": 0,
"title": "title",
"version_id": "version_id"
}