Skip to main content

Export activity logs

POST 

/api/admin/logs/export

Returns the selected activity-log columns within a time range, for CSV export. System administrators only. Column names are validated against the exportable allow-list before reaching the Prisma select (guards field injection), and the result is capped at MAX_EXPORT_ROWS so one export can't page the whole table into memory.

View source

Request

Responses

Matching log rows with only the requested columns.