To enable the Compliance API, see the setup guide.
合规 API
合规 API组织用户偏好设置
合规 API组织角色
合规 API组织Security posture
获取组织的 Security posture
Get an organization's security controls and their current results.
合规 API应用对话
合规 API应用对话文件
合规 API应用对话生成的文件
获取 Claude 生成的文件元数据
返回助手通过工具使用创建的文件的元数据。
下载 Claude 生成的文件
下载助手通过工具使用创建的文件的二进制内容。
合规 API应用项目
合规 API应用项目文档
合规 API应用Artifacts
下载 Artifact 内容
出于合规目的下载 Artifact 版本的内容。
合规 API应用会话本地
合规 API应用会话本地消息
检索本地会话消息
读取单个本地会话的对话记录,默认按从旧到新的顺序排列。
合规 API应用会话远程
合规 API应用会话远程消息
检索远程会话消息
Retrieve one remote session's transcript: user prompts, assistant
responses, and tool calls and results. Thinking blocks and images are
not included. Some notes for the assistant that Claude's apps add to a user's
message, without showing them to the user, are withheld: such a text block
is returned empty with added_as_context: true. Other added text is returned
in full.
合规 API应用代码Artifacts
下载代码 Artifact 版本内容
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 内容
Streams an Artifact's current content as the response body, in chunks with no Content-Length.
删除代码 Artifact
永久删除代码 Artifact 及其所有版本。这是一个破坏性操作,无法撤销。200 响应表示删除已启动且该 Artifact 已被认领;内容移除将异步完成。