Ottieni un elemento di revisione
Leggi un messaggio che Anthropic ha segnalato alla tua organizzazione per la revisione, con la relativa richiesta e risposta.
Un messaggio che la chiave API non può leggere, o che non è segnalato, restituisce lo stesso errore 404 di un messaggio inesistente. Per un messaggio registrato con un profilo utente, invia l'ID di quel profilo nell'intestazione anthropic-user-profile-id. Un messaggio segnalato può inoltre restituire 404 se appartiene a un'organizzazione diversa da quella della chiave, oppure al profilo utente o al Workspace del tuo cliente finale.
Se la tua chiave di crittografia o il tuo bucket di archiviazione rifiuta la lettura, l'API restituisce un errore 400 con cmek_key_disabled, storage_bucket_unreadable o customer_storage_refusal_unattributed in error.details.error_code.
La chiave API deve avere lo scope read:compliance_review_items, read:compliance_user_data o read:org_audit. La chiave di un'organizzazione senza organizzazione padre deve avere read:compliance_review_items.
Parameters
Returns
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.compliance.review.items.BetaComplianceReviewItem;
import com.anthropic.models.beta.compliance.review.items.ItemRetrieveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
BetaComplianceReviewItem betaComplianceReviewItem = client.beta().compliance().review().items().retrieve("item_id");
}
}{
"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
{
"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"
}