取得審查項目
GET/v1/compliance/review/items/{item_id}
讀取 Anthropic 標記給您的組織審查的單一訊息,包含其請求與回應。
若訊息是 API 金鑰無法讀取的,或未被標記的,將傳回與不存在之訊息相同的 404。對於以使用者設定檔記錄的訊息,請在 anthropic-user-profile-id 標頭中傳送該設定檔的 ID。若已標記的訊息屬於金鑰所屬組織以外的其他組織,或屬於您終端客戶的使用者設定檔或工作區,也可能傳回 404。
若您的加密金鑰或儲存貯體拒絕讀取,API 會傳回 400,並在 error.details.error_code 中包含 cmek_key_disabled、storage_bucket_unreadable 或 customer_storage_refusal_unattributed。
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"
}