ChatGPT Compliance Logs
The ChatGPT Compliance Logs Platform provides immutable, append-only compliance log files for ChatGPT Enterprise and Edu workspaces and OpenAI organizations. RunReveal polls the Compliance Logs Platform API to ingest conversation messages, user and app authentication activity, administrative audit actions, plugin usage, Codex activity and security findings, custom agents, and agent traces.
Setup
ChatGPT Compliance supports API polling scoped to either a single Workspace (/v1/compliance/workspaces/{workspace_id}/logs) or an entire Organization (/v1/compliance/organizations/{org_id}/logs).
- Go to Sources → Add Source in RunReveal and select ChatGPT Compliance.
- Enter a Source Name and choose Workspace or Organization under Log Scope.
- Enter the Workspace ID or Organization ID and the matching API Key.
- Select the Event Types to collect (at least one event type is required; all 12 are selected by default).
- Click Verify Settings to test access, then click Connect Source.
Credentials and Permissions
To collect compliance logs for a single ChatGPT Enterprise or Edu workspace:
- Sign in to the ChatGPT Admin Console as a Workspace Owner or Admin.
- Copy your Workspace ID (UUID format, e.g.
11111111-2222-3333-4444-555555555555). - Navigate to Credentials → Admin keys and create a workspace-scoped Admin key.
- Grant read permissions for every compliance log category you select in RunReveal. Only a Workspace Owner can grant broad compliance export access or permission to read
CONVERSATION_MESSAGElogs. - Copy the Admin key immediately — it is shown only once.
ChatGPT Compliance Key Required: Standard project API keys from platform.openai.com cannot access the ChatGPT Compliance Logs Platform (api.chatgpt.com). Use a workspace-scoped Admin key from the ChatGPT Admin Console or an organization-scoped Compliance API key, and ensure the key has read permissions for every event type enabled on the source.
Supported Event Types
You can collect all event types or choose a subset (at least one is required):
| Event Type | Description |
|---|---|
CONVERSATION_MESSAGE | User and assistant messages exchanged in ChatGPT conversations, including model, client surface, tools, and conversation metadata |
APP_LOG | In-app connector and application requests and responses, including acting user and conversation context |
APP_AUTH_LOG | Application authentication activity such as linking and unlinking apps and connectors |
AUDIT_LOG | Administrative and workspace audit actions including role changes, invitations, feature toggles, and policy updates |
AUTH_LOG | User authentication lifecycle events including logins, token issuance, logouts, client IP, geolocation, and TLS fingerprints |
CODEX_LOG | Codex usage activity including prompts, responses, tool calls, plugins, environments, and access tokens |
CHATGPT_PLUGIN_SPREADSHEET | ChatGPT spreadsheet plugin activity |
CHATGPT_PLUGIN_PRESENTATION | ChatGPT presentation plugin activity |
CHATGPT_PLUGIN_DOCUMENT | ChatGPT document plugin activity |
CODEX_SECURITY_LOG | Codex Security scan configurations, finding status updates, triage changes, and proposed patch pull requests |
CUSTOM_AGENTS_LOG | Custom workspace agent lifecycle changes, runs, messages, memory access, connector calls, skills, and triggers |
AGENT_TRACES | Execution trace events for agent runs and tool invocations |
Data Collection
- Collection Method: API polling every 5 minutes via the two-step Compliance Logs Platform flow (list JSONL log files per event type, then download and parse individual events)
- Provider Retention: OpenAI retains compliance log files in the Compliance Logs Platform for up to 30 days
Verify Ingestion
Once connected, logs begin flowing within a few minutes. Validate ingestion with the following SQL query:
Polling failures appear under Polling errors.
Schema
The chatgpt_compliance_logs view exposes RunReveal's normalized columns alongside the full JSON event payload in rawLog:
Table: chatgpt_compliance_logs (37 columns)
chatgpt_compliance_logs (37 columns)| Column | Type |
|---|---|
workspaceID | String |
sourceID | String |
sourceType | String |
sourceTTL | UInt32 |
receivedAt | DateTime |
id | String |
eventTime | DateTime |
eventName | String |
eventID | String |
srcIP | String |
srcASCountryCode | String |
srcASNumber | UInt32 |
srcASOrganization | String |
srcCity | String |
srcConnectionType | String |
srcISP | String |
srcLatitude | Float64 |
srcLongitude | Float64 |
srcUserType | String |
| Column | Type |
|---|---|
dstIP | String |
dstASCountryCode | String |
dstASNumber | UInt32 |
dstASOrganization | String |
dstCity | String |
dstConnectionType | String |
dstISP | String |
dstLatitude | Float64 |
dstLongitude | Float64 |
dstUserType | String |
actor | Map(String, String) |
tags | Map(String, String) |
resources | Array(String) |
serviceName | String |
enrichments | Array(Tuple(data Map(String, String), name String, provider String, type String, value String)) |
readOnly | Bool |
rawLog | String |
Helpful Links
- ChatGPT Compliance Logs Platform API Reference - Official API reference for listing and downloading workspace and organization compliance log files
- OpenAI Compliance Platform Overview - Setup, Admin key permissions, and 30-day retention details for Enterprise and Edu workspaces