Testing:bikanawe.hamwenawe.com

audit_logs_logs_list

GEThttps://bikanawe.hamwenawe.com/api/v1/audit-logs/logs/Requires authentication

ViewSet for viewing audit logs.

  • Admin can view all audit logs
  • Owner can view audit logs for users in their organization only
  • Regular users cannot access audit logs

Parameters

NameLocationTypeRequiredDescription
actionqueryNo* create - Create
  • update - Update
  • delete - Delete
  • login - Login
  • logout - Logout
  • permission_change - Permission Change
  • role_change - Role Change
  • group_change - Group Change
  • access_denied - Access Denied
  • export - Export | | model_name | query | | No | | | ordering | query | | No | Which field to use when ordering the results. | | page | query | | No | A page number within the paginated result set. | | page_size | query | | No | Number of results to return per page. | | search | query | | No | A search term. | | severity | query | | No | * info - Info
  • warning - Warning
  • critical - Critical | | username | query | | No | |

Sample Responses

{
  "next": "http://api.example.org/accounts/?page=4",
  "count": 123,
  "results": [
    {
      "id": 0,
      "user": 0,
      "action": "create",
      "changes": "string",
      "severity": "info",
      "username": "string",
      "timestamp": "2026-01-01T00:00:00Z",
      "ip_address": "string",
      "model_name": "string",
      "user_agent": "string",
      "description": "string",
      "object_repr": "string",
      "request_path": "string",
      "user_display": "string",
      "request_method": "string"
    }
  ],
  "previous": "http://api.example.org/accounts/?page=2"
}