Claude Platform Docs

案例

列出审查案例
CaseListPage beta().compliance().review().cases().list(params = CaseListParams.none(), requestOptions = RequestOptions.none())
GET/v1/compliance/review/cases

列出该 API 密钥可访问的每个组织的审查案例,默认按最新优先排序。除非设置了 status,否则未关闭和已关闭的案例都会返回。

获取审查案例
BetaComplianceReviewCase beta().compliance().review().cases().retrieve(params = CaseRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/compliance/review/cases/{case_id}

读取一个审查案例。

响应审查案例
BetaComplianceReviewCase beta().compliance().review().cases().respond(params, requestOptions = RequestOptions.none())
POST/v1/compliance/review/cases/{case_id}/respond

发送您对审查案例的结论。响应会关闭该案例,且已关闭的案例无法重新打开。

Models
class BetaComplianceReviewCase { type = "compliance_review_case"; id; createdAt; /* 7 more */ }

A record of an organization's messages that Anthropic flagged and sent to the organization to review. It lists the messages by ID and doesn't include their content.

class BetaComplianceReviewCaseCloseReason { type; }

Why a review case closed.

Type type

responded means that Anthropic recorded a response. window_ended means that the time to respond ended with no response. ended_by_anthropic means that Anthropic ended the case before that time was over. New values can appear, so accept a value that you don't know.

One of the following:
RESPONDED("responded")
WINDOW_ENDED("window_ended")
ENDED_BY_ANTHROPIC("ended_by_anthropic")
class BetaComplianceReviewCaseClosed { type = "closed"; reason; }

Anthropic has stopped waiting for a response. A closed case stays closed.

JsonValue type = "closed"

Why the case closed. It doesn't change afterwards.

Type type

responded means that Anthropic recorded a response. window_ended means that the time to respond ended with no response. ended_by_anthropic means that Anthropic ended the case before that time was over. New values can appear, so accept a value that you don't know.

One of the following:
RESPONDED("responded")
WINDOW_ENDED("window_ended")
ENDED_BY_ANTHROPIC("ended_by_anthropic")
class BetaComplianceReviewCaseOpen { type = "open"; }

Anthropic is waiting for a response to the case.

JsonValue type = "open"
enum BetaComplianceReviewCaseOrderBy

The field that a list of review cases is sorted by: created_at or updated_at.

CREATED_AT("created_at")

Sort by when Anthropic sent the case.

UPDATED_AT("updated_at")

Sort by when the case last changed.

class BetaComplianceReviewCaseStatus: union

The status of a review case.

class BetaComplianceReviewCaseOpen { type = "open"; }

Anthropic is waiting for a response to the case.

JsonValue type = "open"
class BetaComplianceReviewCaseClosed { type = "closed"; reason; }

Anthropic has stopped waiting for a response. A closed case stays closed.

JsonValue type = "closed"

Why the case closed. It doesn't change afterwards.

Type type

responded means that Anthropic recorded a response. window_ended means that the time to respond ended with no response. ended_by_anthropic means that Anthropic ended the case before that time was over. New values can appear, so accept a value that you don't know.

One of the following:
RESPONDED("responded")
WINDOW_ENDED("window_ended")
ENDED_BY_ANTHROPIC("ended_by_anthropic")
enum BetaComplianceReviewCaseStatusFilter

A review case status to filter by: open or closed.

OPEN("open")

Cases that Anthropic is waiting for a response to.

CLOSED("closed")

Cases that Anthropic has stopped waiting on.

enum BetaComplianceReviewDetermination

A conclusion on flagged messages: violation or no_violation.

VIOLATION("violation")

The messages violated a policy.

NO_VIOLATION("no_violation")

The messages violated no policy.

class BetaComplianceReviewEnforcementAction { type; }

An action that Anthropic took on the flagged traffic.

String type

The kind of action. New values can appear, so accept a value that you don't know.

enum BetaComplianceReviewPolicyCategory

Anthropic's label for why messages were flagged. radnuc is radiological or nuclear weapons, cgw is conventional weapons, mgw is military-grade weapons systems, io is influence operations, and frontier_llm is use of the model to accelerate frontier AI research and development in restricted ways. benign means reviewed and found within acceptable use, and undetermined means that the reviewed records do not support a category judgment. New values can appear, so accept a value that you don't know.

class BetaComplianceReviewTranscript { itemId; userProfileId; }

One flagged message of a review case.

String itemId

The ID of the flagged message.

Optional<String> userProfileId

The ID of the user profile that the message belongs to. Null when the message belongs to none, or when the profile can no longer be looked up.

class BetaComplianceReviewVerdictParam { determination; itemId; policyCategory; }

Your conclusion on one message of a review case.

Your conclusion on this message.

One of the following:
VIOLATION("violation")

The messages violated a policy.

NO_VIOLATION("no_violation")

The messages violated no policy.

String itemId

The item_id of one of the case's transcripts.

The policy category that this message violated, from the values that the request's policy_categories accepts. Optional with violation. Leave it out with no_violation.

One of the following:
enum BetaComplianceReviewViolatedPolicyCategory

A policy category that you can report as violated. radnuc is radiological or nuclear weapons, cgw is conventional weapons, mgw is military-grade weapons systems, io is influence operations, and frontier_llm is use of the model to accelerate frontier AI research and development in restricted ways.

CYBER("cyber")
BIO("bio")
CHEM("chem")
RADNUC("radnuc")
CGW("cgw")
MGW("mgw")
IO("io")
FRAUD("fraud")
VIOLENT_EXTREMISM("violent_extremism")
SURVEILLANCE("surveillance")
HUMAN_EXPLOITATION("human_exploitation")
SELF_HARM("self_harm")
ADULT_CONTENT("adult_content")
REASONING_EXTRACTION("reasoning_extraction")
FRONTIER_LLM("frontier_llm")
COMPROMISED_KEY("compromised_key")
OTHER("other")