Dapatkan Item Tinjauan
Baca satu pesan yang ditandai oleh Anthropic untuk ditinjau oleh organisasi Anda, beserta permintaan dan responsnya.
Pesan yang tidak dapat dibaca oleh kunci API, atau yang tidak ditandai, menghasilkan 404 yang sama seperti pesan yang tidak ada. Untuk pesan yang direkam dengan profil pengguna, kirimkan ID profil tersebut di header anthropic-user-profile-id. Pesan yang ditandai juga dapat menghasilkan 404 jika pesan tersebut milik organisasi selain organisasi pemilik kunci, atau milik profil pengguna atau Workspace pelanggan akhir Anda.
Jika kunci enkripsi atau bucket penyimpanan Anda menolak pembacaan, API mengembalikan 400 dengan cmek_key_disabled, storage_bucket_unreadable, atau customer_storage_refusal_unattributed di error.details.error_code.
Kunci API harus memiliki scope read:compliance_review_items, read:compliance_user_data, atau read:org_audit. Kunci dari organisasi yang tidak memiliki organisasi induk harus memiliki 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"
}