#57 API: Export Audit Logs
Description
EditImplement endpoint to export audit logs as CSV/JSON.
Endpoint: GET /api/v1/audit/logs/export
Query Parameters:
- format: csv or json (default: csv)
- user_id: Filter by user (optional)
- action_type: Filter by action (optional)
- from_date: Start date (required)
- to_date: End date (required)
Response: Downloadable file stream
Required Permissions: tenant_admin or system_admin
Implementation Requirements:
- Stream large exports (don't load all in memory)
- Include all relevant columns
- Proper CSV escaping
- Date range limited to 90 days max
- Background job for large exports
With ultra attention to details and correctness.
Before closing: write comment summarizing implementation with screenshot.
Comments
Loading comments...
Context
Loading context...
Audit History
View AllLoading audit history...