列出审查通知
GET/v1/compliance/review/notices
列出 Anthropic 发给该 API 密钥可访问的组织的通知,默认按最新优先排序。仅当该 API 密钥可以读取通知 case_ids 中的每个案例时,才会返回该通知。
要进行轮询,请存储您已读取的最大 created_at 值,并将其作为 created_at 的“大于或等于”筛选条件发送。请读取每一页,按 id 匹配结果,并在最后一页之后存储新的最大值。
具有 read:compliance_review_cases 范围的 Admin API 密钥可以调用此端点。
Parameters
Returns
列出审查通知
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go/v2"
"github.com/anthropics/anthropic-sdk-go/v2/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
page, err := client.Beta.Compliance.Review.Notices.List(context.TODO(), anthropic.BetaComplianceReviewNoticeListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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"
}