Advanced
Audit Logs
Retrieve user audit logs
GET
Get Audit Logs
Endpoint
Overview
Retrieves audit logs for the authenticated user. IP addresses in log data are automatically decrypted for display.IP Address Encryption: IP addresses stored in audit logs are encrypted using AES-256-GCM with user-specific keys. They are automatically decrypted when retrieved via this API endpoint. See IP Encryption for implementation details.
Request
Requires authentication via Bearer token.Query Parameters
Maximum number of logs to return (max 100)
Number of logs to skip (for pagination)
Filter by audit action type (e.g., “USER_LOGIN”, “PASSWORD_CHANGE”)
Response
Array of audit log entries
Total number of logs matching the filter
Limit used in the query
Offset used in the query
Implementation Details
Code Reference
Status Codes
Success
Missing or invalid authentication token
Example Requests
Get All Logs
Get Logs with Pagination
Filter by Action
Example Response
Security Notes
- Users can only view their own audit logs
- IP addresses are automatically decrypted from storage format
- Maximum limit is 100 logs per request
- Logs are ordered by creation date (newest first)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Maximum number of logs to return (max 100)
Required range:
x <= 100Number of logs to skip (for pagination)
Filter by audit action type (e.g., "USER_LOGIN", "PASSWORD_CHANGE")
Get Audit Logs