Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Artifacts

列出 Code Artifacts
GET/v1/compliance/apps/code/artifacts

列出父組織下各組織所擁有的 Claude Code Artifacts。

下載 Code Artifact 版本內容
GET/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}

以分塊方式將 Artifact 某一版本的內容串流為回應本文,不含 Content-Length。使用 multi_file_format=zip 時,包含多個檔案的版本(Claude Doc 的版本除外;Claude Doc 是 artifact_type 為 claude_docs 的 Artifact)會以其檔案的 ZIP 封存檔形式傳回。

下載 Code Artifact 內容
GET/v1/compliance/apps/code/artifacts/{artifact_id}/content

以分塊方式將 Artifact 目前的內容串流為回應本文,不含 Content-Length。

刪除 Code Artifact
DELETE/v1/compliance/apps/code/artifacts/{artifact_id}

永久刪除 Code Artifact 及其所有版本。這是無法復原的破壞性操作。200 回應表示刪除已啟動且 Artifact 已被認領;內容移除會以非同步方式完成。

Models
ArtifactListResponse object{ id, artifact_type, organization_uuid, 6 more }

An Artifact: a site published from Claude Code, or a document made from one of Anthropic's built-in Artifact types (Claude Docs, Slides, Design, …). artifact_type says which.

ArtifactDeleteResponse object{ type: "code_artifact_deleted", id }

Response for deleting a Code Artifact.

type: "code_artifact_deleted"

Constant string confirming deletion

defaultcode_artifact_deleted
id: string

The ID of the Artifact that was deleted