cURL
curl --request GET \ --url https://api.example.com/api/audit/ \ --header 'Authorization: <authorization>'
{ "data": [ {} ], "total": 123, "page": 123, "pageSize": 123, "totalPages": 123 }
List audit logs with pagination (admin only)
Bearer <admin_token>
curl "https://api.sari-platform.com/api/audit/?page=1&pageSize=20" \ -H "Authorization: Bearer <admin_token>"
{ "data": [ { "id": "log-uuid", "message": { "action": "api_call", "client_id": "client_abc", "collection_id": "collection-uuid", "method": "GET", "endpoint": "/users", "status_code": 200, "duration_ms": 150 }, "timestamp": "2024-01-15T10:00:00Z" } ], "total": 150, "page": 1, "pageSize": 20, "totalPages": 8 }