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.
Request
Responses
- 200
- 400
- 403
- 500
Matching log rows with only the requested columns.
Invalid JSON, failed validation, or no valid fields selected.
Caller is not a system administrator.
Export failed.