To enable the Compliance API, see the setup guide.
Set up the Compliance APIObtener metadatos de artifact
GET/v1/compliance/apps/artifacts/{artifact_version_id}
Devuelve los metadatos de una versión de artifact, sin el cuerpo del contenido.
Usa el endpoint hermano /content para obtener el texto del artifact. Los
campos md5 y size_bytes aquí se calculan sobre la codificación UTF-8
de ese texto, de modo que un consumidor DLP pueda deduplicar o comparar hashes
sin descargar cada artifact.
Path parameters
Headers
Returns
Obtener metadatos de 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"
}