Claude Platform Docs

Items

Get Review Item
client.Beta.Compliance.Review.Items.Get(ctx, itemID, query) (*BetaComplianceReviewItem, error)
GET/v1/compliance/review/items/{item_id}

Read one message that Anthropic flagged for your organization to review, with its request and response.

Models
type BetaComplianceReviewActorUnion interface{…}

Who sent a message.

One of the following:
type BetaComplianceReviewUserActor struct { Type: "user_actor"; EmailAddress; UserID }

A signed-in user.

Type UserActor
EmailAddress string

The user's email address. Set only for a current member of an organization that the API key can read.

UserID string

The ID of the user (user_...).

type BetaComplianceReviewAPIActor struct { Type: "api_actor"; APIKeyID }

An API key.

Type APIActor
APIKeyID string

The ID of the API key (apikey_...).

type BetaComplianceReviewServiceAccountActor struct { Type: "service_account_actor"; ServiceAccountID }

A service account.

Type ServiceAccountActor
ServiceAccountID string

The ID of the service account (svac_...).

type BetaComplianceReviewAPIActor struct { Type: "api_actor"; APIKeyID }

An API key.

Type APIActor
APIKeyID string

The ID of the API key (apikey_...).

type BetaComplianceReviewContentNotCaptured struct { Type: "not_captured" }

No copy of the message was stored.

Type NotCaptured
type BetaComplianceReviewContentUnavailableReasonUnion interface{…}

Why a message's content isn't returned.

One of the following:
type BetaComplianceReviewContentNotCaptured struct { Type: "not_captured" }

No copy of the message was stored.

Type NotCaptured
type BetaComplianceReviewStoredCopyUnavailable struct { Type: "stored_copy_unavailable" }

A copy of the message was stored and can't be returned.

Type StoredCopyUnavailable
type BetaComplianceReviewCreateMessageContent struct { Type: "create_message"; Request; Response }

A request to create a message, and its response.

Type CreateMessage
Request map[string]any

The POST /v1/messages request body, without thinking blocks or unpublished fields. For a user's message from an Anthropic app, such as Claude Code, system is a placeholder.

Response BetaMessage

The model's Message, without thinking blocks or unpublished fields. Null when no response was stored, for example because the client disconnected.

type BetaComplianceReviewItem struct { Type: "compliance_review_item"; ID; Actor; /* 7 more */ }

One stored item that the organization it belongs to can read for review.

type BetaComplianceReviewItemDetailsUnion interface{…}

What is particular to one kind of review item.

One of the following:
type BetaComplianceReviewMessageDetails struct { Type: "message"; Content; ContentUnavailableReason; Model }

A message sent to Claude.

type BetaComplianceReviewMessageContentUnion interface{…}

The stored copy of one call.

One of the following:
type BetaComplianceReviewCreateMessageContent struct { Type: "create_message"; Request; Response }

A request to create a message, and its response.

Type CreateMessage
Request map[string]any

The POST /v1/messages request body, without thinking blocks or unpublished fields. For a user's message from an Anthropic app, such as Claude Code, system is a placeholder.

Response BetaMessage

The model's Message, without thinking blocks or unpublished fields. Null when no response was stored, for example because the client disconnected.

type BetaComplianceReviewMessageDetails struct { Type: "message"; Content; ContentUnavailableReason; Model }

A message sent to Claude.

type BetaComplianceReviewReadReasonUnion interface{…}

Why a review item is readable.

One of the following:
type BetaComplianceReviewSafeguardsReason struct { Type: "safeguards_review" }

Anthropic flagged the item for your organization to review.

Type SafeguardsReview
type BetaComplianceReviewSafeguardsReason struct { Type: "safeguards_review" }

Anthropic flagged the item for your organization to review.

Type SafeguardsReview
type BetaComplianceReviewServiceAccountActor struct { Type: "service_account_actor"; ServiceAccountID }

A service account.

Type ServiceAccountActor
ServiceAccountID string

The ID of the service account (svac_...).

type BetaComplianceReviewStoredCopyUnavailable struct { Type: "stored_copy_unavailable" }

A copy of the message was stored and can't be returned.

Type StoredCopyUnavailable
type BetaComplianceReviewUserActor struct { Type: "user_actor"; EmailAddress; UserID }

A signed-in user.

Type UserActor
EmailAddress string

The user's email address. Set only for a current member of an organization that the API key can read.

UserID string

The ID of the user (user_...).