Claude Platform Docs

케이스

검토 케이스 목록 조회
client.Beta.Compliance.Review.Cases.List(ctx, params) (*PageCursor[BetaComplianceReviewCase], error)
GET/v1/compliance/review/cases

API 키가 접근할 수 있는 모든 조직의 검토 케이스를 나열하며, 기본적으로 최신순으로 정렬됩니다. status가 설정되지 않으면 열린 케이스와 종결된 케이스가 모두 반환됩니다.

검토 케이스 조회
client.Beta.Compliance.Review.Cases.Get(ctx, caseID, query) (*BetaComplianceReviewCase, error)
GET/v1/compliance/review/cases/{case_id}

검토 케이스 하나를 읽습니다.

검토 케이스에 응답
client.Beta.Compliance.Review.Cases.Respond(ctx, caseID, params) (*BetaComplianceReviewCase, error)
POST/v1/compliance/review/cases/{case_id}/respond

검토 케이스에 대한 결론을 보냅니다. 응답하면 케이스가 종결되며, 종결된 케이스는 다시 열 수 없습니다.

Models
type BetaComplianceReviewCase struct { 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.

type BetaComplianceReviewCaseCloseReason struct { Type }

Why a review case closed.

Type BetaComplianceReviewCaseCloseReasonType

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:
const BetaComplianceReviewCaseCloseReasonTypeResponded BetaComplianceReviewCaseCloseReasonType = "responded"
const BetaComplianceReviewCaseCloseReasonTypeWindowEnded BetaComplianceReviewCaseCloseReasonType = "window_ended"
const BetaComplianceReviewCaseCloseReasonTypeEndedByAnthropic BetaComplianceReviewCaseCloseReasonType = "ended_by_anthropic"
type BetaComplianceReviewCaseClosed struct { Type: "closed"; Reason }

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

Type Closed

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

Type BetaComplianceReviewCaseCloseReasonType

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:
const BetaComplianceReviewCaseCloseReasonTypeResponded BetaComplianceReviewCaseCloseReasonType = "responded"
const BetaComplianceReviewCaseCloseReasonTypeWindowEnded BetaComplianceReviewCaseCloseReasonType = "window_ended"
const BetaComplianceReviewCaseCloseReasonTypeEndedByAnthropic BetaComplianceReviewCaseCloseReasonType = "ended_by_anthropic"
type BetaComplianceReviewCaseOpen struct { Type: "open" }

Anthropic is waiting for a response to the case.

Type Open
type BetaComplianceReviewCaseOrderBy string

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

One of the following:
const BetaComplianceReviewCaseOrderByCreatedAt BetaComplianceReviewCaseOrderBy = "created_at"

Sort by when Anthropic sent the case.

const BetaComplianceReviewCaseOrderByUpdatedAt BetaComplianceReviewCaseOrderBy = "updated_at"

Sort by when the case last changed.

type BetaComplianceReviewCaseStatusUnion interface{…}

The status of a review case.

One of the following:
type BetaComplianceReviewCaseOpen struct { Type: "open" }

Anthropic is waiting for a response to the case.

Type Open
type BetaComplianceReviewCaseClosed struct { Type: "closed"; Reason }

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

Type Closed

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

Type BetaComplianceReviewCaseCloseReasonType

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:
const BetaComplianceReviewCaseCloseReasonTypeResponded BetaComplianceReviewCaseCloseReasonType = "responded"
const BetaComplianceReviewCaseCloseReasonTypeWindowEnded BetaComplianceReviewCaseCloseReasonType = "window_ended"
const BetaComplianceReviewCaseCloseReasonTypeEndedByAnthropic BetaComplianceReviewCaseCloseReasonType = "ended_by_anthropic"
type BetaComplianceReviewCaseStatusFilter string

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

One of the following:
const BetaComplianceReviewCaseStatusFilterOpen BetaComplianceReviewCaseStatusFilter = "open"

Cases that Anthropic is waiting for a response to.

const BetaComplianceReviewCaseStatusFilterClosed BetaComplianceReviewCaseStatusFilter = "closed"

Cases that Anthropic has stopped waiting on.

type BetaComplianceReviewDetermination string

A conclusion on flagged messages: violation or no_violation.

One of the following:
const BetaComplianceReviewDeterminationViolation BetaComplianceReviewDetermination = "violation"

The messages violated a policy.

const BetaComplianceReviewDeterminationNoViolation BetaComplianceReviewDetermination = "no_violation"

The messages violated no policy.

type BetaComplianceReviewEnforcementAction struct { Type }

An action that Anthropic took on the flagged traffic.

Type string

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

type BetaComplianceReviewPolicyCategory string

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.

One of the following:
type BetaComplianceReviewTranscript struct { ItemID; UserProfileID }

One flagged message of a review case.

ItemID string

The ID of the flagged message.

UserProfileID string

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.

type BetaComplianceReviewVerdictParam struct { Determination; ItemID; PolicyCategory }

Your conclusion on one message of a review case.

Your conclusion on this message.

One of the following:
const BetaComplianceReviewDeterminationViolation BetaComplianceReviewDetermination = "violation"

The messages violated a policy.

const BetaComplianceReviewDeterminationNoViolation BetaComplianceReviewDetermination = "no_violation"

The messages violated no policy.

ItemID string

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:
type BetaComplianceReviewViolatedPolicyCategory string

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.

One of the following: