Claude Platform Docs

Casi

Elenca i casi di revisione
client.Beta.Compliance.Review.Cases.List(ctx, params) (*PageCursor[BetaComplianceReviewCase], error)
GET/v1/compliance/review/cases

Elenca i casi di revisione di tutte le organizzazioni raggiungibili dalla chiave API, per impostazione predefinita dal più recente. Vengono restituiti sia i casi aperti sia quelli chiusi, a meno che non sia impostato status.

Ottieni un caso di revisione
client.Beta.Compliance.Review.Cases.Get(ctx, caseID, query) (*BetaComplianceReviewCase, error)
GET/v1/compliance/review/cases/{case_id}

Leggi un caso di revisione.

Rispondi a un caso di revisione
client.Beta.Compliance.Review.Cases.Respond(ctx, caseID, params) (*BetaComplianceReviewCase, error)
POST/v1/compliance/review/cases/{case_id}/respond

Invia la tua conclusione su un caso di revisione. Una risposta chiude il caso, e un caso chiuso non può essere riaperto.

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: