Skip to main content
GET
Export the audit log as CSV or JSON Lines
Your organization’s audit events in a range, oldest first, as a file download. Requires the owner or admin role. The response never holds another organization’s events, whatever you ask for, and every export is itself recorded in the log as audit_log.export. See Audit log for the fields. The body is streamed. One export holds at most 100,000 events; export a busier period in shorter ranges.
string
default:"csv"
csv, with a header row, or jsonl, one JSON object per line. Anything else returns 400.
string
Start, inclusive: an ISO 8601 date or date-time, UTC when no offset is given. Defaults to 30 days before to.
string
End, exclusive: an ISO 8601 date or date-time. A bare date includes that whole day. Defaults to now. The range covers at most 366 days.
string
One actor: an account id, or a subject such as an API key id.
string
One exact action, such as assistant.update.
string
Every action on one kind of resource, such as assistant for assistant.*.

Response

200 with Content-Type: text/csv or application/x-ndjson and Content-Disposition: attachment. In CSV, metadata is one JSON-encoded cell, and a cell that would start a spreadsheet formula begins with '.
Last modified on November 12, 2026