To enable the Compliance API, see the setup guide.
Set up the Compliance API合規 API
合規 API組織角色
合規 API應用程式對話
合規 API應用程式對話檔案
合規 API應用程式對話生成的檔案
取得 Claude 生成的檔案中繼資料
GET/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}
傳回助理透過工具使用所建立之檔案的中繼資料。
下載 Claude 生成的檔案
GET/v1/compliance/apps/chats/generated-files/{claude_gen_file_id}/content
下載助理透過工具使用所建立之檔案的二進位內容。
合規 API應用程式專案
合規 API應用程式專案協作者
合規 API應用程式專案文件
合規 API應用程式Artifacts
下載 Artifact 內容
GET/v1/compliance/apps/artifacts/{artifact_version_id}/content
基於合規目的下載 Artifact 版本的內容。
合規 API應用程式工作階段本機
合規 API應用程式工作階段本機訊息
擷取本機工作階段訊息
GET/v1/compliance/apps/sessions/local/{local_session_id}/messages
讀取單一本機工作階段的對話記錄,預設由舊到新排序。
合規 API應用程式工作階段遠端
列出遠端工作階段
GET/v1/compliance/apps/sessions/remote
列出金鑰可讀取之組織範圍內的遠端工作階段(在 Anthropic 管理的雲端環境中執行的 Cowork 工作階段)。
合規 API應用程式工作階段遠端訊息
擷取遠端工作階段訊息
GET/v1/compliance/apps/sessions/remote/{claude_remote_session_id}/messages
擷取單一遠端工作階段的逐字稿:使用者提示、助理回應,以及工具呼叫和結果。不包含思考區塊和圖片。
合規 API應用程式程式碼Artifacts
下載 Code Artifact 版本內容
GET/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}
以回應本文串流傳送 Claude Code Artifact 某一版本的內容。
下載 Code Artifact 內容
GET/v1/compliance/apps/code/artifacts/{artifact_id}/content
以回應本文串流傳送 Artifact 的目前內容。對於 Claude Doc,內容為該 Doc 的文字,以 Word 檔案的 ZIP 封存檔形式提供,每個文字分頁一個檔案,且請求必須設定 multi_file_format=zip。對於其他任何 Artifact,內容為最新版本,與 GET /v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id} 傳回的內容相同。
刪除 Code Artifact
DELETE/v1/compliance/apps/code/artifacts/{artifact_id}
永久刪除 Code Artifact 及其所有版本。這是無法復原的破壞性操作。200 回應表示刪除已啟動且 Artifact 已被認領;內容移除會以非同步方式完成。