Answer: Download the Bash script or PowerShell script; both list and download every available log file after a given timestamp, follow pagination, and write JSONL to standard output. Set COMPLIANCE_API_KEY to your Enterprise Compliance API key, then run the script with your workspace or org ID, log type, batch size, and an ISO 8601 timestamp. Status: Confirmed Entry: tool/chatgpt/admin-and-enterprise/download-audit-logs Revision: 1 Digest: sha256:43b88a52b4006424 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:49:36Z Last changed: 2026-11-13T03:49:36Z Last verified: 2026-11-20T13:37:34Z Next check: 2026-11-21T13:37:34Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of Bash script | download_compliance_files.sh | | [1] | 2026-11-20 PowerShell script | download_compliance_files.ps1 | | [1] | 2026-11-20 API key environment variable | COMPLIANCE_API_KEY | | [1] | 2026-11-20 Example log type | AUTH_LOG | | [1] | 2026-11-20 Example batch size | 100 | files | [1] | 2026-11-20 PowerShell version | PowerShell 5.1 or later | | [1] | 2026-11-20 Bash example command | bash ./download_compliance_files.sh "" AUTH_LOG 100 "" > output.jsonl | | [1] | 2026-11-20 Sources: [1] OpenAI. "Compliance API and audit events". https://learn.chatgpt.com/docs/enterprise/compliance-api.md Role: primary. Accessed: 2026-11-20T13:37:34Z Quote: "Download the [Bash script](https://developers.openai.com/downloads/compliance-api/download_compliance_files.sh)" (Supports: Bash script) Quote: "or [PowerShell script](https://developers.openai.com/downloads/compliance-api/download_compliance_files.ps1)." (Supports: PowerShell script) Quote: "Set `COMPLIANCE_API_KEY` to your Enterprise Compliance API key." (Supports: API key environment variable) Quote: "This example retrieves `AUTH_LOG` files, 100 at a time." (Supports: Example log type, Example batch size) Quote: "The Windows script supports PowerShell 5.1 or later." (Supports: PowerShell version) Quote: "bash ./download_compliance_files.sh "" AUTH_LOG 100 "" > output.jsonl" (Supports: Bash example command) Snapshot SHA-256: 8aeb1cc32e45a6ea537cddfd67590134109481a20c364b4a906cb48a896fbd71 (captured 2026-11-13T03:49:35Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:49:36Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:37:34Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:37:34Z Last attempt: 2026-11-20T13:37:34Z Notes and limitations: Extracted automatically from a single official source (section "Download logs"). Related: https://latestn.com/tool/chatgpt/admin-and-enterprise/dynamic-groups-prerequisites What do I need to set up before using dynamic groups in ChatGPT? https://latestn.com/tool/chatgpt/admin-and-enterprise/education-plan-member-access How do members get access to a ChatGPT education plan workspace? https://latestn.com/tool/chatgpt/admin-and-enterprise/empty-allowlist-sharepoint-sites Does an empty allowlist in ChatGPT block all SharePoint sites? https://latestn.com/tool/chatgpt/admin-and-enterprise/district-workspace-setup How do I set up a school or district workspace in ChatGPT for Teachers? https://latestn.com/tool/chatgpt/admin-and-enterprise/domain-verification-sso-access Does verifying a domain for OpenAI identity enable SSO or grant product access? https://latestn.com/tool/chatgpt/admin-and-enterprise/dot-audit-exports How do I collect audit evidence and protect dot exports in ChatGPT? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:49:36Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/chatgpt/admin-and-enterprise/download-audit-logs/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/chatgpt/admin-and-enterprise/download-audit-logs POST: https://latestn.com/dispute/tool/chatgpt/admin-and-enterprise/download-audit-logs with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/chatgpt/admin-and-enterprise/download-audit-logs?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I download audit logs from the ChatGPT Compliance API? Revision 1, last verified 2026-11-20T13:37:34Z. https://latestn.com/tool/chatgpt/admin-and-enterprise/download-audit-logs (accessed 2026-11-21T10:04:35Z). @misc{LatestN_tool_chatgpt_admin_and_enterprise_download_audit_logs_r1, title = {How do I download audit logs from the ChatGPT Compliance API?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/chatgpt/admin-and-enterprise/download-audit-logs}}, note = {Revision 1; digest sha256:43b88a52b4006424; last verified 2026-11-20T13:37:34Z; accessed 2026-11-21T10:04:35Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/chatgpt/admin-and-enterprise/download-audit-logs