To enable the Compliance API, see the setup guide.
Set up the Compliance API取得 Artifact 中繼資料
GET/v1/compliance/apps/artifacts/{artifact_version_id}
傳回 Artifact 版本的中繼資料,不含內容本文。
請使用同層級的 /content 端點來擷取 Artifact 文字。此處的 md5 和 size_bytes 欄位是根據該文字的 UTF-8 編碼計算而得,因此 DLP 取用者可以在不下載每個 Artifact 的情況下進行去重或比對雜湊。
Path parameters
Headers
Returns
取得 Artifact 中繼資料
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"
}