To enable the Compliance API, see the setup guide.
Set up the Compliance APIArtifact-Metadaten abrufen
GET/v1/compliance/apps/artifacts/{artifact_version_id}
Gibt Metadaten für eine Artifact-Version zurück, ohne den Inhaltstext.
Verwende den zugehörigen /content-Endpunkt, um den Artifact-Text abzurufen. Die
Felder md5 und size_bytes werden hier über die UTF-8-Kodierung
dieses Textes berechnet, sodass ein DLP-Consumer deduplizieren oder Hashes
abgleichen kann, ohne jedes Artifact herunterzuladen.
Path parameters
Headers
Returns
Artifact-Metadaten abrufen
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"
}