Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Artifacts

Daftar Artifact Kode
GET/v1/compliance/apps/code/artifacts

Mendaftar Artifact Claude Code yang dimiliki oleh organisasi di bawah organisasi induk.

Unduh Konten Versi Artifact Kode
GET/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}

Mengalirkan konten satu versi Artifact sebagai isi respons, dalam potongan tanpa Content-Length. Dengan multi_file_format=zip, versi yang memiliki lebih dari satu file, selain versi Claude Doc (Artifact yang artifact_type-nya adalah claude_docs), dikembalikan sebagai arsip ZIP berisi file-filenya.

Unduh Konten Artifact Kode
GET/v1/compliance/apps/code/artifacts/{artifact_id}/content

Mengalirkan konten Artifact saat ini sebagai isi respons, dalam potongan tanpa Content-Length.

Hapus Artifact Kode
DELETE/v1/compliance/apps/code/artifacts/{artifact_id}

Menghapus Artifact Kode dan semua versinya secara permanen. Ini adalah operasi destruktif yang tidak dapat dibatalkan. Respons 200 berarti penghapusan telah dimulai dan Artifact telah diklaim; penghapusan konten diselesaikan secara asinkron.

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