Export audit data as a CSV file stream with customizable columns and filtering options. This endpoint allows you to generate downloadable CSV reports of your audit trail data for compliance, analysis, or backup purposes.
Audits Overview
Frontegg provides automatic audit logging from the moment it’s integrated into your application, capturing key events as your customers interact with the product. User-management activities, such as logins and settings updates, are automatically logged without any additional setup required on your part.
Alongside Frontegg’s out-of-the-box logged events, you can add custom audit logs via the POST API or our backend SDKs, preserving the standard audit event structure. Custom logs will appear to your customers in their dedicated audit section within the self-service menu.
This section lists all relevant API endpoints, organized into Management and Self-Service categories:
Management Endpoints: Require environment-level authorization and offer comprehensive control over audits resources.
Self-Service Endpoints: Accessible with a user token (JWT), allowing users with the required permissions to create, update, and delete aduits connections on their account.
- EU Regionhttps://api.frontegg.com/audits/export/csv/v2
- US Regionhttps://api.us.frontegg.com/audits/export/csv/v2
- CA Regionhttps://api.ca.frontegg.com/audits/export/csv/v2
- AU Regionhttps://api.au.frontegg.com/audits/export/csv/v2
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/audits/export/csv/v2
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X POST \
'https://api.frontegg.com/audits/export/csv/v2?vendorId=string&tenantId=string&offset=0&count=0' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'frontegg-tenant-id: string' \
-d '{
"properties": [
{
"displayName": "string",
"name": "string"
}
]
}'Request
Retrieve audit logs for a specific account (tenant). Use optional query parameters to filter results by creation date, users, email addresses, or account (tenant) IDs. You can also sort the results and paginate through them using count and offset. The maximum number of audit logs per request is 200. For example: ?count=200&offset=0&sortBy=createdAt&sortDirection=desc returns audits 1-200, ?count=200&offset=200&sortBy=createdAt&sortDirection=desc returns audits 201-400
- EU Regionhttps://api.frontegg.com/audits/resources/audits/v2
- US Regionhttps://api.us.frontegg.com/audits/resources/audits/v2
- CA Regionhttps://api.ca.frontegg.com/audits/resources/audits/v2
- AU Regionhttps://api.au.frontegg.com/audits/resources/audits/v2
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/audits/resources/audits/v2
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X GET \
'https://api.frontegg.com/audits/resources/audits/v2?count=1&offset=0' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Request
Export filtered audit logs as a downloadable CSV stream with customizable columns and comprehensive filtering options. This endpoint generates CSV reports of your account (tenant) audit data for compliance reporting, data analysis, backup purposes, and integration with external systems. Features include customizable column selection through the properties array, advanced filtering by date ranges, users, emails, severity levels, and custom JSON criteria, pagination support for large datasets (1-200 records per request), sorting capabilities by any field, and streaming CSV output for efficient large file handling. The response includes proper CSV formatting with headers, comma-separated values, and UTF-8 encoding.
- EU Regionhttps://api.frontegg.com/audits/resources/audits/v2/export/csv
- US Regionhttps://api.us.frontegg.com/audits/resources/audits/v2/export/csv
- CA Regionhttps://api.ca.frontegg.com/audits/resources/audits/v2/export/csv
- AU Regionhttps://api.au.frontegg.com/audits/resources/audits/v2/export/csv
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/audits/resources/audits/v2/export/csv
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X POST \
'https://api.frontegg.com/audits/resources/audits/v2/export/csv?count=1&offset=0' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'frontegg-tenant-id: string' \
-d '{
"properties": [
{
"displayName": "string",
"name": "string"
}
]
}'