Rightshold™ Sign up
Open betalive and open to everyoneEvidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Answers · AI evidence

We're on Claude Enterprise and our compliance team wants to pull Claude Code and Cowork sessions through the Compliance API for eDiscovery and audits. What does a session transcript actually contain, what's left out, and can we treat it as a record of what happened on the developer's machine?

Last updated

TL;DR: A Compliance API session transcript is Anthropic's server-side reconstruction of the Claude API calls a session made: user prompts (including CLAUDE.md and skill text the client sent), assistant text, tool calls and the text parts of tool results, each tagged with the serving model on captured assistant turns. Claude Code and Cowork running on users' machines come back from the local session endpoints (GET /v1/compliance/apps/sessions/local, then /{id}/messages; IDs start clls_), read with a Compliance Access Key holding read:compliance_user_data. Coverage became generally available for Cowork and Claude Code on August 26, 2026, for Claude Enterprise organizations only. Thinking blocks, the system prompt, tool and MCP server definitions, images and other binary content are never returned, tool inputs and results are cut at 10,000 bytes unless you ask for more (up to about 1 MiB), and sessions under zero data retention, Console API keys, Bedrock, Vertex AI, Foundry or Claude Code cloud sessions aren't included. Anthropic's docs say it plainly: a local transcript shows what Claude was asked to do and what it returned, not what occurred on the device.

What should I check, step by step?

1. Confirm the sessions you need are in scope: Claude Code and Cowork on users' machines signed in with the Enterprise account are; Console API key sessions, Bedrock, Vertex AI, Foundry, Claude Code cloud sessions and zero-data-retention sessions aren't.

  1. Request the full tool blocks for evidence exports: set tool_use_input_max_bytes and tool_result_max_bytes to -1 (about 1 MiB each), because the standard cap is 10,000 bytes and a truncated tool input isn't valid JSON.
  2. Keep every message's provenance value: null means content captured from the Claude API; client_asserted means history the client sent that couldn't be matched to a captured response; content_unavailable with a reason (not_captured, client_aborted, retention_elapsed, oversize) means the turn exists but its content can't be returned.
  3. Join user.id against the list endpoint for email addresses: the messages endpoint always returns email_address as null.
  4. Poll with updated_at.gte set a few minutes before your previous run's start, not exactly at it, and deduplicate on session id, since created_at moves forward as old calls age out.
  5. Export what you must keep before retention removes it: local transcripts are kept 6 years unless your organization sets a finite custom period (30 days with HIPAA readiness), and the endpoints are read-only.
  6. Pair the transcript with a record from your own side (repository commits, CI runs, OpenTelemetry) for anything that happened on the machine itself.

What does a Claude Compliance API session transcript contain?

Anthropic records each local session server-side as its requests reach the Claude API; nothing is installed on the device. The messages endpoint rebuilds the transcript from those captured calls: user prompts, assistant text, tool_use blocks (id, name, input as a JSON-encoded string) and tool_result blocks (tool_use_id, name, is_error, text content), returned as sent apart from size limits. Nothing masks URLs, credentials or personal data, so the docs tell you to treat transcripts as sensitive.

What do Claude Compliance API transcripts leave out?

Never returned: thinking blocks, the system prompt (a [system prompt content not shown] marker stands in for it), tool definitions and MCP server configuration. Images, PDFs and other binary blocks become placeholders such as [image content not shown], and non-text items in a tool result, such as web search results, collapse to one [N non-text item(s) not shown] entry. Citation metadata is dropped while the text stays.

What does provenance mean in a Claude Compliance API transcript?

Every message has a provenance field. null is the common case: content captured by the Claude API. client_asserted marks assistant messages the client supplied as history that couldn't be matched to a captured response, so their authorship isn't verified. synthetic_marker marks records the endpoint itself inserted, such as the system prompt stand-in or the point where the client compacted its history.

Does a Claude Code transcript show what ran on the developer's machine?

Anthropic's own wording: local session transcripts show what Claude was asked to do and what it returned, not what occurred on the device. A tool_use block shows a command Claude asked to run; the tool_result shows the text the client sent back. Whether the command actually ran as written, what else ran, and any files the session never sent aren't captured.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “We exported a Claude Code session transcript from the Compliance API for a change review. Record a receipt with the session id, the user id, the time window, the commit it produced and the SHA-256 of the exported transcript JSON.”

One-click setup

{
  "tool": "record_action",
  "arguments": {
    "action_type": "ai_session.transcript_exported",
    "outcome": "success",
    "occurred_at": "2026-11-22T13:00:00Z",
    "client_event_id": "compliance-export:clls_<session id>",
    "summary": "Compliance API local session transcript (product_surface claude_code) for change review; session clls_<session id>; user user_<id>; session window 2026-11-21T14:02Z to 15:10Z; tool caps -1; 0 content_unavailable turns; produced commit <sha>",
    "action_sha256": "<sha256 of the exported transcript JSON>"
  }
}

Rightshold isn't affiliated with Anthropic. Details are from Anthropic's 'Retrieve session transcripts' documentation, the Compliance API reference for local session messages and Anthropic's August 11, 2026 article (updated August 26, 2026) on Compliance API coverage for Cowork and Claude Code, all read November 22, 2026. Product coverage, caps and retention can change; check the current docs before relying on them.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'