列出审查案例
GET/v1/compliance/review/cases
列出该 API 密钥可访问的每个组织的审查案例,默认按最新优先排序。除非设置了 status,否则未关闭和已关闭的案例都会返回。
要进行同步,请存储您已读取的最大 updated_at 值,并将其作为 updated_at 的“大于或等于”筛选条件发送,同时按 updated_at 升序排序。这样可以找到新案例、新关闭的案例以及有新通知的案例。请读取每一页,按 id 匹配结果,并在最后一页之后存储新的最大值。
带有 anthropic-user-profile-id 标头但没有 user_profile_id 参数的请求会返回 400 错误。
具有 read:compliance_review_cases 范围的 Admin API 密钥可以调用此端点。
Parameters
Returns
列出审查案例
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
page = anthropic.beta.compliance.review.cases.list
puts(page)Response 200
{
"data": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"enforcement_action": {
"type": "type"
},
"organization_id": "organization_id",
"policy_categories": [
"cyber"
],
"status": {
"type": "open"
},
"transcripts": [
{
"item_id": "item_id",
"user_profile_id": "user_profile_id"
}
],
"type": "compliance_review_case",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"enforcement_action": {
"type": "type"
},
"organization_id": "organization_id",
"policy_categories": [
"cyber"
],
"status": {
"type": "open"
},
"transcripts": [
{
"item_id": "item_id",
"user_profile_id": "user_profile_id"
}
],
"type": "compliance_review_case",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}