audit_logs_logs_list
GET
https://bikanawe.hamwenawe.com/api/v1/audit-logs/logs/Requires authenticationViewSet 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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| action | query | No | * create - Create |
update- Updatedelete- Deletelogin- Loginlogout- Logoutpermission_change- Permission Changerole_change- Role Changegroup_change- Group Changeaccess_denied- Access Deniedexport- 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- Infowarning- Warningcritical- 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"
}