レビューアイテムを取得
GET/v1/compliance/review/items/{item_id}
Anthropicが組織のレビュー対象としてフラグを付けた1件のメッセージを、そのリクエストとレスポンスとともに読み取ります。
APIキーが読み取れないメッセージ、またはフラグが付いていないメッセージは、存在しないメッセージと同じ404を返します。ユーザープロファイルとともに記録されたメッセージの場合は、そのプロファイルのIDを anthropic-user-profile-id ヘッダーで送信してください。フラグが付いたメッセージでも、キー自身の組織とは別の組織に属する場合、またはエンドカスタマーのユーザープロファイルやワークスペースに属する場合は、404を返すことがあります。
暗号化キーまたはストレージバケットが読み取りを拒否した場合、APIは error.details.error_code に cmek_key_disabled、storage_bucket_unreadable、または customer_storage_refusal_unattributed を含む400を返します。
APIキーには read:compliance_review_items、read:compliance_user_data、または read:org_audit スコープが必要です。親組織を持たない組織のキーには read:compliance_review_items が必要です。
Parameters
Returns
レビューアイテムを取得
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go/v2"
"github.com/anthropics/anthropic-sdk-go/v2/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaComplianceReviewItem, err := client.Beta.Compliance.Review.Items.Get(
context.TODO(),
"item_id",
anthropic.BetaComplianceReviewItemGetParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaComplianceReviewItem.ID)
}Response 200
{
"id": "id",
"actor": {
"email_address": "email_address",
"type": "user_actor",
"user_id": "user_id"
},
"content_expires_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"details": {
"content": {
"request": {
"foo": "bar"
},
"response": {
"id": "msg_013Zva2CMHLNnXjNJJKqJ2EF",
"container": {
"id": "container_011CpZohnwH4vuy7gazohgSP",
"expires_at": "2019-12-27T18:11:19.117Z",
"skills": [
{
"skill_id": "pdf",
"type": "anthropic",
"version": "latest"
}
]
},
"content": [
{
"citations": null,
"text": "Hi! My name is Claude.",
"type": "text"
}
],
"context_management": {
"applied_edits": [
{
"cleared_input_tokens": 0,
"cleared_tool_uses": 0,
"type": "clear_tool_uses_20250919"
}
]
},
"diagnostics": null,
"model": "claude-opus-5-5",
"role": "assistant",
"stop_details": null,
"stop_reason": "end_turn",
"stop_sequence": null,
"type": "message",
"usage": {
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 0
},
"cache_creation_input_tokens": 2051,
"cache_read_input_tokens": 2051,
"fallback_credit": {
"status": {
"type": "redeemed"
}
},
"inference_geo": "global",
"input_tokens": 2095,
"iterations": [
{
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 0
},
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"input_tokens": 0,
"model": "claude-fable-5-2",
"output_tokens": 0,
"type": "message"
}
],
"output_tokens": 503,
"output_tokens_details": {
"thinking_tokens": 0
},
"server_tool_use": {
"web_fetch_requests": 2,
"web_search_requests": 0
},
"service_tier": "standard",
"speed": "standard"
},
"input_transformations": [
{
"path": "path",
"reason": "model_binding_mismatch",
"type": "thinking_dropped"
}
]
},
"type": "create_message"
},
"content_unavailable_reason": {
"type": "not_captured"
},
"model": "model",
"type": "message"
},
"organization_id": "organization_id",
"read_reason": {
"type": "safeguards_review"
},
"type": "compliance_review_item",
"user_profile_id": "user_profile_id",
"workspace_id": "workspace_id"
}Returns Examples
Response 200
{
"id": "id",
"actor": {
"email_address": "email_address",
"type": "user_actor",
"user_id": "user_id"
},
"content_expires_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"details": {
"content": {
"request": {
"foo": "bar"
},
"response": {
"id": "msg_013Zva2CMHLNnXjNJJKqJ2EF",
"container": {
"id": "container_011CpZohnwH4vuy7gazohgSP",
"expires_at": "2019-12-27T18:11:19.117Z",
"skills": [
{
"skill_id": "pdf",
"type": "anthropic",
"version": "latest"
}
]
},
"content": [
{
"citations": null,
"text": "Hi! My name is Claude.",
"type": "text"
}
],
"context_management": {
"applied_edits": [
{
"cleared_input_tokens": 0,
"cleared_tool_uses": 0,
"type": "clear_tool_uses_20250919"
}
]
},
"diagnostics": null,
"model": "claude-opus-5-5",
"role": "assistant",
"stop_details": null,
"stop_reason": "end_turn",
"stop_sequence": null,
"type": "message",
"usage": {
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 0
},
"cache_creation_input_tokens": 2051,
"cache_read_input_tokens": 2051,
"fallback_credit": {
"status": {
"type": "redeemed"
}
},
"inference_geo": "global",
"input_tokens": 2095,
"iterations": [
{
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 0
},
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"input_tokens": 0,
"model": "claude-fable-5-2",
"output_tokens": 0,
"type": "message"
}
],
"output_tokens": 503,
"output_tokens_details": {
"thinking_tokens": 0
},
"server_tool_use": {
"web_fetch_requests": 2,
"web_search_requests": 0
},
"service_tier": "standard",
"speed": "standard"
},
"input_transformations": [
{
"path": "path",
"reason": "model_binding_mismatch",
"type": "thinking_dropped"
}
]
},
"type": "create_message"
},
"content_unavailable_reason": {
"type": "not_captured"
},
"model": "model",
"type": "message"
},
"organization_id": "organization_id",
"read_reason": {
"type": "safeguards_review"
},
"type": "compliance_review_item",
"user_profile_id": "user_profile_id",
"workspace_id": "workspace_id"
}