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

列出父组织下各组织拥有的 Claude Code Artifacts。

下载代码 Artifact 版本内容
GET/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}

Streams the content of one version of a Claude Code Artifact as the response body.

Download Code Artifact Content
GET/v1/compliance/apps/code/artifacts/{artifact_id}/content

Streams an Artifact's current content as the response body. For a Claude Doc, that is the Doc's text as a ZIP archive of Word files, one per text tab, and the request must set multi_file_format=zip. For any other Artifact, it is the latest version, as GET /v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id} returns it.

删除代码 Artifact
DELETE/v1/compliance/apps/code/artifacts/{artifact_id}

永久删除代码 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