Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Код

КодArtifacts

Список Artifacts кода
GET/v1/compliance/apps/code/artifacts

Список Artifacts Claude Code, принадлежащих организациям в составе родительской организации.

Загрузка содержимого версии Artifact кода
GET/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}

Streams the content of one version of an Artifact as the response body, in chunks with no Content-Length. With multi_file_format=zip, a version with more than one file, other than a Claude Doc's or a Claude Sheet's (an Artifact whose artifact_type is claude_docs or claude_sheets), comes back as a ZIP archive of its files.

Загрузка содержимого Artifact кода
GET/v1/compliance/apps/code/artifacts/{artifact_id}/content

Streams an Artifact's current content as the response body, in chunks with no Content-Length.

Удаление Artifact кода
DELETE/v1/compliance/apps/code/artifacts/{artifact_id}

Безвозвратно удаляет Artifact кода и все его версии. Это деструктивная операция, которую нельзя отменить. Ответ 200 означает, что удаление инициировано и Artifact зарезервирован; удаление содержимого завершается асинхронно.