Activity Log
This section covers the API endpoints for managing activity logs in the admin panel.
List Activities
GET /v1/admin/activity-logs
Returns a paginated list of all activity logs.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
search_text | string | Search activities by subject_id, causer_id, or causer details (username, first/last name, email) |
filter[causer_id] | uuid | Filter by the ID of the user who caused the activity |
filter[event] | string | Filter by event type |
filter[subject_id] | string | Filter by the subject ID of the activity |
filter[causer_type] | string | Filter by the type of causer |
filter[created_at] | string | Filter by creation date |
order_id | uuid | Filter activities by a specific order's notes |
sort | string | Sort by event (prefix with - for descending order) |
per_page | integer | Number of items per page. Defaults to 10 |
Response
{
"success": true,
"message": "تم جلب البيانات بنجاح.",
"data": {
"current_page": 1,
"first_page_url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=1",
"from": 1,
"last_page": 46,
"last_page_url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=46",
"links": [
{
"url": null,
"label": "« السابق",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=1",
"label": "1",
"active": true
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=2",
"label": "2",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=3",
"label": "3",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=4",
"label": "4",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=5",
"label": "5",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=6",
"label": "6",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=7",
"label": "7",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=8",
"label": "8",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=9",
"label": "9",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=10",
"label": "10",
"active": false
},
{
"url": null,
"label": "...",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=45",
"label": "45",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=46",
"label": "46",
"active": false
},
{
"url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=2",
"label": "التالي »",
"active": false
}
],
"next_page_url": "http://192.168.0.139:8080/v1/admin/activity-logs?per_page=10&page=2",
"path": "http://192.168.0.139:8080/v1/admin/activity-logs",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 452,
"activities": [
{
"id": "883c7630-0591-11f0-aebc-d57e49964810",
"subject_name": "صفحة : الدكتور4",
"color": "#b59327",
"event": "updated",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 3 دقائق",
"full_time": "2025-03-20 16:45:06",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "603fb3b0-e811-11ec-9161-cf393da4fbb8",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
},
{
"id": "76a8f250-0591-11f0-afcf-fd604f372826",
"subject_name": "تم حدفة مسبقآ",
"color": "#fd8989",
"event": "deleted",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 3 دقائق",
"full_time": "2025-03-20 16:44:36",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "2f480800-0591-11f0-b80f-f1005a85de27",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
},
{
"id": "40e76890-0591-11f0-bdd9-bf10519842a0",
"subject_name": "تم حدفة مسبقآ",
"color": "#b59327",
"event": "updated",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 5 دقائق",
"full_time": "2025-03-20 16:43:06",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "2f480800-0591-11f0-b80f-f1005a85de27",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
},
{
"id": "2f49d9d0-0591-11f0-8fb2-37e7ed08f299",
"subject_name": "تم حدفة مسبقآ",
"color": "#11A62B",
"event": "created",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 5 دقائق",
"full_time": "2025-03-20 16:42:37",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "2f480800-0591-11f0-b80f-f1005a85de27",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
},
{
"id": "c3e94a30-0590-11f0-a710-19f3a2a3420a",
"subject_name": "تم حدفة مسبقآ",
"color": "#fd8989",
"event": "deleted",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 8 دقائق",
"full_time": "2025-03-20 16:39:36",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "94569670-0590-11f0-a2b3-77dd82828c05",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
},
{
"id": "ba321250-0590-11f0-8c05-afaaa5a87b3b",
"subject_name": "تم حدفة مسبقآ",
"color": "#b59327",
"event": "updated",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 8 دقائق",
"full_time": "2025-03-20 16:39:20",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "94569670-0590-11f0-a2b3-77dd82828c05",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
},
{
"id": "a2bf30a0-0590-11f0-a1fe-d37836168a41",
"subject_name": "تم حدفة مسبقآ",
"color": "#b59327",
"event": "updated",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 9 دقائق",
"full_time": "2025-03-20 16:38:41",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "94569670-0590-11f0-a2b3-77dd82828c05",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
},
{
"id": "9457c9f0-0590-11f0-aea1-8b70191f325a",
"subject_name": "تم حدفة مسبقآ",
"color": "#11A62B",
"event": "created",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 9 دقائق",
"full_time": "2025-03-20 16:38:17",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "94569670-0590-11f0-a2b3-77dd82828c05",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
},
{
"id": "18800db0-0590-11f0-9ee3-218390dda6ca",
"subject_name": "تم حدفة مسبقآ",
"color": "#fd8989",
"event": "deleted",
"causer_name": "الادمن:omar Alakbri",
"ip": "",
"created_at": "قبل 13 دقيقة",
"full_time": "2025-03-20 16:34:49",
"fullname": "omar Alakbri",
"email": "mazenahmed@bootfi.com",
"subject_status": null,
"subject_id": "f3c8da10-058f-11f0-a266-311b1e45f727",
"causer_id": "3a0a4810-dab4-11ec-8e1b-cb15cec27c77"
}
]
},
"status_code": 200
}
Get Activity
GET /v1/admin/activity-logs/{id}
Retrieve details of a specific activity log.
Response
{
"success": true,
"message": "تم جلب البيانات بنجاح.",
"data": {
"id": "883c7630-0591-11f0-aebc-d57e49964810",
"subject_name": "صفحة : الدكتور4",
"causer_name": "الادمن:omar Alakbri",
"old_data": {
"title": "الثراء",
"description": "أنوي الثراء بأيسر الطرق وأفضل الاحتمالات"
},
"new_data": {
"title": "الدكتور4",
"description": "ذلك ونحن نجد أن ما كان قد تعلمها من الحيوانات، ويجر يده على رأسه، ويمسح أعطافه. ويتملق إليه، ويظهر البشر والفرح به. حتى سكن جأش أسال وعلم أنه لا."
},
"ip": "",
"path": "v1/admin/pages/custom/monthly-events"
},
"status_code": 200
}
Authorization
All activity log endpoints require admin authorization. The user must have the appropriate permissions to perform these operations.
Notes
- Activity logs are automatically generated for various system events
- The
propertiesfield may contain additional context about the activity - When filtering by
order_id, only activities related to the order's notes will be returned - Default sorting is by creation date in descending order
- The response includes pagination information for easy navigation through the results