Rightshold™ Sign up
Rightshold is live — the trust layer for AI agents.Launched November 23, 2026.Evidence 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 ChatGPT Enterprise and legal wants a record of what employees asked ChatGPT and what it answered, plus what Codex and workspace agents did, for investigations and legal holds. What does the Compliance API actually give us, who can turn it on, and can we rely on OpenAI to keep the logs?

Last updated

TL;DR: OpenAI's help article on the Compliance Platform for Enterprise and Edu says it has two parts: the Compliance Logs Platform, which serves immutable, append-only log events as time-windowed JSONL files, and a stateful Compliance API for querying current state. Event types include conversation messages between users and the assistant (Elastic's integration docs say these carry author, client surface, model, tools and skills used, the message content and conversation metadata), Codex logs, workspace agent logs, admin audit logs, authentication logs and app logs. Messages from locked chats are included; an account PIN doesn't stop authorized compliance access. Only a workspace owner can grant the conversation messages permission. The key limit: OpenAI says the Compliance Logs Platform retains data for 30 days, and for longer retention you must continuously download the logs and keep them under your own policy. The old stateful conversation route was removed on June 5, 2026.

What should I check, step by step?

1. Ask a workspace owner to create a workspace-scoped Admin key. OpenAI says only a workspace owner can grant broad compliance access or the Conversation messages permission; an admin can grant individual categories such as audit, authentication or app logs.

  1. Start continuous collection now, not when a dispute starts: the Compliance Logs Platform keeps data for 30 days, and anything older than that window is gone from the source.
  2. Collect each event type you need separately (for example CONVERSATION_MESSAGE, CODEX_LOG, CUSTOM_AGENTS_LOG, AUDIT_LOG, AUTH_LOG, APP_LOG) by listing log files after a timestamp and downloading each file.
  3. Apply your own retention and legal holds to the copies you keep. OpenAI's guide says not to assume the source retention window replaces your organization's retention policy.
  4. If you still call the old stateful conversations route, move to the conversation logs: OpenAI removed that route on June 5, 2026.
  5. For agents running on employees' computers, collect OpenTelemetry events too, and run a test task to compare the exported records with what was actually done.
  6. Keep a hash of each log file you download so you can later show the copy you rely on is the one you collected.

What does the ChatGPT Enterprise Compliance API give you?

OpenAI launched the Enterprise Compliance API on July 18, 2024, describing it as a record of time-stamped interactions including conversations, uploaded files, workspace GPT configuration and metadata, memories and workspace users. An update dated December 11, 2025 says it is now part of the OpenAI Compliance Logs Platform, which exports data as immutable, time-windowed JSONL log files and added admin audit, user authentication and Codex usage logs.

How long does OpenAI keep ChatGPT Enterprise compliance logs, and what does deletion do?

OpenAI's help article says the Compliance Logs Platform retains data for 30 days. If you want it longer, you need a system that continuously downloads all logs and retains them under your own policy. Deleted data can't be recovered.

What don't ChatGPT Enterprise compliance logs show about agent work?

OpenAI's ChatGPT Learn guide says work that ChatGPT agents do on a user's computer appears under the conversation_message and codex_log event types, and that local execution also produces OpenTelemetry events you collect separately. It says these sources don't establish a complete record of every local command, file operation, screenshot, approval or external action, and suggests running a representative task and comparing the exported records with the actions performed.

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 downloaded today's ChatGPT Enterprise CONVERSATION_MESSAGE log files for a legal hold. Record a receipt with the workspace, event type, time window, file count and the SHA-256 of the downloaded JSONL.”

One-click setup

{
  "tool": "record_action",
  "arguments": {
    "action_type": "ai_logs.compliance_export",
    "outcome": "success",
    "occurred_at": "2026-11-25T11:00:00Z",
    "client_event_id": "chatgpt-compliance:<workspace id>:CONVERSATION_MESSAGE:2026-11-24",
    "summary": "ChatGPT Enterprise Compliance Logs Platform export, event_type CONVERSATION_MESSAGE, window 2026-11-24T00:00Z to 2026-11-25T00:00Z, 12 log files, held under matter <matter id>",
    "action_sha256": "<sha256 of the concatenated JSONL export>"
  }
}

Rightshold isn't affiliated with OpenAI or Elastic and doesn't connect to ChatGPT Enterprise. Details are from OpenAI's Help Center article on the Compliance Platform for Enterprise and Edu customers, OpenAI's July 18, 2024 announcement (updated December 11, 2025), the ChatGPT Learn page 'Compliance API and audit events' and Elastic's OpenAI ChatGPT Enterprise integration documentation, all read November 25, 2026. OpenAI says its Admin API reference is the source of truth for current event types, schemas and retention; check it before relying on these details. Not legal advice.

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}}'