列出審查通知
GET/v1/compliance/review/notices
列出 Anthropic 發送給 API 金鑰可存取之組織的通知,預設依最新優先排序。只有在 API 金鑰可讀取通知 case_ids 中的每個案件時,才會傳回該通知。
若要輪詢,請儲存您已讀取的最大 created_at 值,並將其作為 created_at 的「大於或等於」篩選條件傳送。請讀取每一頁,依 id 比對結果,並在讀取最後一頁後儲存新的最大值。
具有 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.notices.list
puts(page)Response 200
{
"data": [
{
"id": "id",
"case_ids": [
"string"
],
"created_at": "2019-12-27T18:11:19.117Z",
"kind": {
"type": "response_requested"
},
"message": "message",
"organization_id": "organization_id",
"respond_by": "2019-12-27T18:11:19.117Z",
"type": "compliance_review_notice"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"id": "id",
"case_ids": [
"string"
],
"created_at": "2019-12-27T18:11:19.117Z",
"kind": {
"type": "response_requested"
},
"message": "message",
"organization_id": "organization_id",
"respond_by": "2019-12-27T18:11:19.117Z",
"type": "compliance_review_notice"
}
],
"next_page": "next_page"
}