Manage Audit Logs
Deprecation notice
The /audit endpoint has been deprecated and replaced by Immuta Detect.
Download audit logs using the API
- 
Generate your API key on the API Keys tab on your profile page and save the API key somewhere secure.
 - 
You will pass this API key in the authorization header when you make a request, as illustrated in the example below:
curl \ --request GET \ --header "Content-Type: application/json" \ --header "Authorization: dea464c07bd07300095caa8" \ https://your-immuta-url.immuta.com/audit - 
Download your audit logs using the GET
/auditendpoint. To filter or sort the audit logs, use the query parameters on the/auditendpoint API reference page. For example, the request below saves 50 audit logs forhttps://your-immuta-url.immuta.comin the fileaudit-logs-file.json, with the audit records sorted by time in descending order. 
curl \
    --request GET \
    --header "Content-Type: application/json" \
    --header "Authorization: dea464c07bd07300095caa8" \
    --output audit-logs-file.json \
    https://your-immuta-url.immuta.com/audit?sortField=dateTime&sortOrder=desc