Export audit log entries
GET/auditLogs/export
Streams audit log entries as a UTF-8 CSV file with a byte-order mark and CRLF line endings, which opens correctly in Excel and Google Sheets. Accepts the same filters as the list endpoint, except paging. createdFrom and createdTo are mandatory, the range must not exceed 366 days, and no more than 100,000 rows may match; all of these are refused before any CSV content is sent. Actions by OutThink support staff are excluded unless includeOutThinkSupport is true, in which case they are masked as support@outthink.io. Columns are Email, Organization, Action type, Resource, Name, ID, Date (UTC), Status and Event key, plus Details only when includeDetails is true. Dates use the format yyyy-MM-dd'T'HH:mm:ss'Z'. Missing values appear as -, (No name available) or (No ID available). Requires a tenant-level key, or a key covering the top-level organization, with the auditlogs scope. See the audit logs guide.
Request
Responses
- 200
- 400
- 403
- 500
Success
Bad Request. Checked after the 403 checks. Code unsupported_sort (field names the sort field) when sorting on actionType or resource; invalid_parameter with the field name for an invalid value (a non-UUID id, an unsupported status, a filter value over 256 characters or containing a comma, or a single-valued parameter sent more than once). For export, missing_parameter when createdFrom or createdTo is missing, and invalid_parameter when the end is before the start, the range exceeds 366 days, or more than 100,000 rows match (field createdTo for range and row-limit failures).
Forbidden. Checked in this order: invalid_apiKey_level (the key is neither tenant-level nor covers the top-level organization), missing_required_scope (the key lacks the auditlogs scope; wildcard keys pass), organization_access_exception (an organizationId outside the key's coverage).
Server Error