Create a new audit entry in your account (tenant) audit trail. This endpoint allows you to log custom audit events with specified severity levels for security monitoring and compliance tracking.
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
- US Regionhttps://api.us.frontegg.com/audits
- CA Regionhttps://api.ca.frontegg.com/audits
- AU Regionhttps://api.au.frontegg.com/audits
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/audits
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X POST \
https://api.frontegg.com/audits/ \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'frontegg-tenant-id: string' \
-d '{
"severity": "Info"
}'- EU Regionhttps://api.frontegg.com/audits/stats
- US Regionhttps://api.us.frontegg.com/audits/stats
- CA Regionhttps://api.ca.frontegg.com/audits/stats
- AU Regionhttps://api.au.frontegg.com/audits/stats
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/audits/stats
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X GET \
https://api.frontegg.com/audits/stats \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'frontegg-tenant-id: string'- 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"
}
]
}'