レビュー通知を一覧表示
GET/v1/compliance/review/notices
APIキーがアクセスできる組織へのAnthropicからの通知を一覧表示します。デフォルトでは新しい順に並びます。通知は、APIキーがその case_ids 内のすべてのケースを読み取れる場合にのみ返されます。
ポーリングするには、読み取った created_at の最大値を保存し、それを created_at の以上(at-or-after)フィルターとして送信します。すべてのページを読み取り、結果を 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"
}