Daftar Pemberitahuan Tinjauan
GET/v1/compliance/review/notices
Cantumkan pemberitahuan Anthropic kepada organisasi yang dapat dijangkau oleh kunci API, diurutkan dari yang terbaru secara default. Pemberitahuan hanya dikembalikan jika kunci API dapat membaca setiap kasus dalam case_ids-nya.
Untuk melakukan polling, simpan nilai created_at terbesar yang telah Anda baca, lalu kirimkan sebagai filter pada-atau-setelah untuk created_at. Baca setiap halaman, cocokkan hasil berdasarkan id, lalu simpan nilai terbesar yang baru setelah halaman terakhir.
Kunci Admin API dengan scope read:compliance_review_cases dapat memanggil endpoint ini.
Parameters
Returns
Daftar Pemberitahuan Tinjauan
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.compliance.review.notices.NoticeListPage;
import com.anthropic.models.beta.compliance.review.notices.NoticeListParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
NoticeListPage page = client.beta().compliance().review().notices().list();
}
}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"
}