To enable the Compliance API, see the setup guide.
Set up the Compliance APIArtifacts
下载代码 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 已被认领;内容移除将异步完成。