Skip to main content

Export API

GET /v1/audit/export

Export audit events as CSV or JSON. Supports the same filters as the list endpoint.

Auth: JWT Bearer token required.

Limit: 100 000 events per export.


CSV export

GET http://localhost:8082/v1/audit/export?format=csv&service_name=payments-service&start_date=2024-01-01T00:00:00Z
Authorization: Bearer <jwt>

Returns a text/csv file with one row per event.


JSON export

GET http://localhost:8082/v1/audit/export?format=json&environment=production
Authorization: Bearer <jwt>

Returns a application/json array of event objects.


Query parameters

ParamTypeDescription
formatstringcsv or json (default: csv)
project_idstringFilter by project
service_namestringFilter by service
methodstringFilter by HTTP method
status_codeintFilter by status code
environmentstringFilter by environment
identifierstringFilter by user/client ID
start_dateISO 8601Events from this date
end_dateISO 8601Events until this date
event_typestringhttp or system.alert

Dashboard export

The Events page in the dashboard includes a Download button that triggers a CSV export with all active filters applied.