LoyaltyPlus
  1. System-Logs
LoyaltyPlus
  • Auth (No Auth Required)
    • Login - Get Token
      POST
    • Refresh Token
      POST
  • Accounts (Auth Required)
    • Roles
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • Admin Users
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • 2FA Settings
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • API Keys
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • Webhooks
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • Webhook Events
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • Webhook Attempts
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • Audit Logs
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • Stores
      • List
      • Create
      • Retrieve
      • Update
      • Delete
    • Profile
      • me
    • Permissions
      • permissions
    • System-Logs
      • System logs
        GET
  1. System-Logs

System logs

GET
/system-logs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/system-logs'
Response Response Example
{
    "success": true,
    "data": {
        "count": 16,
        "next": null,
        "previous": null,
        "results": [
            {
                "id": "cbb1b13f-62e3-485d-a3ff-845b207a839a",
                "updated_at": "2025-04-07T15:56:18.951984-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "979c070c-0415-4c27-921d-1dda864e0f84",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/adminuser/826de5b6-5339-4c5b-8cea-285664e6db87/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-07T15:56:18.952062-05:00"
            },
            {
                "id": "68549e81-d81c-4049-a972-494b61b13ca3",
                "updated_at": "2025-04-07T15:55:59.176625-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "d8b76e2a-795d-4a4f-a064-c26a24abbc3f",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/role/46af36a3-bd88-430a-95f2-f0f75fec0633/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-07T15:55:59.176715-05:00"
            },
            {
                "id": "5e9bfbc0-2dd6-4181-b545-23209859e24a",
                "updated_at": "2025-04-07T15:54:08.512901-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "af371c1e-1c53-4eae-998a-8ce2881db636",
                "action": "created",
                "data": {
                    "path": "/api/auth/admin-users/",
                    "method": "POST",
                    "payload": {
                        "email": "manager@loyalty.local",
                        "role_id": "ae55a700-e7a0-43c0-8c15-ed489032fb7a",
                        "is_staff": true,
                        "password": "****",
                        "full_name": "Branch Manager",
                        "is_active": true,
                        "is_2fa_enabled": true,
                        "two_fa_preference": "phone"
                    }
                },
                "ip_address": "127.0.0.1",
                "user_agent": "PostmanRuntime/7.43.3",
                "created_at": "2025-04-07T15:54:08.512935-05:00"
            },
            {
                "id": "1ea092b7-e71c-45d5-bc42-5f165f00c39c",
                "updated_at": "2025-04-07T15:53:59.370811-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "8e520357-143a-4f10-981f-2666b60efe7b",
                "action": "created",
                "data": {
                    "path": "/api/auth/admin-users/",
                    "method": "POST",
                    "payload": {
                        "email": "manager@loyalty.local",
                        "role_id": "ae55a700-e7a0-43c0-8c15-ed489032fb7a",
                        "is_staff": true,
                        "password": "****",
                        "full_name": "Branch Manager",
                        "is_active": true,
                        "is_2fa_enabled": true,
                        "two_fa_preference": "phone"
                    }
                },
                "ip_address": "127.0.0.1",
                "user_agent": "PostmanRuntime/7.43.3",
                "created_at": "2025-04-07T15:53:59.370894-05:00"
            },
            {
                "id": "29443e25-ab28-47d6-bc34-954da71ddc2e",
                "updated_at": "2025-04-07T15:52:12.588667-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "50f31e85-75c4-46f8-85d7-7266921686a0",
                "action": "created",
                "data": {
                    "path": "/api/auth/roles/",
                    "method": "POST",
                    "payload": {
                        "name": "RewardOperator",
                        "description": "Manages rewards and issuing",
                        "permissions": [
                            149,
                            150,
                            151,
                            152,
                            153,
                            154,
                            155,
                            156
                        ]
                    }
                },
                "ip_address": "127.0.0.1",
                "user_agent": "PostmanRuntime/7.43.3",
                "created_at": "2025-04-07T15:52:12.588926-05:00"
            },
            {
                "id": "506133d6-4ed3-49a6-85a2-2ef99715c69b",
                "updated_at": "2025-04-06T11:35:10.883146-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "bc95cab0-7821-4108-8c52-c0510faddb6f",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/fcefd976-5ff8-4977-a82f-7b54c88ce525/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T11:35:10.883190-05:00"
            },
            {
                "id": "7d2cfb87-7199-4233-9537-f998d1381f01",
                "updated_at": "2025-04-06T11:26:05.967265-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "7271e1e2-ef64-4259-aef0-138fdf55df87",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/e4a1f2b2-3f5c-4305-9d2d-957c19e434f2/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T11:26:05.967361-05:00"
            },
            {
                "id": "72db4c28-6343-4b94-8def-7f78bbb09069",
                "updated_at": "2025-04-06T11:23:13.382726-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "4cb71aec-5235-49bb-870c-3a6fd9625a86",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/e4a1f2b2-3f5c-4305-9d2d-957c19e434f2/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T11:23:13.382766-05:00"
            },
            {
                "id": "29b074f8-9dc2-4f34-a5cf-1883ede24bf0",
                "updated_at": "2025-04-06T11:16:32.083409-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "aefced0d-f1ab-4a8f-9cd7-8b610fbaee49",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/e4a1f2b2-3f5c-4305-9d2d-957c19e434f2/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T11:16:32.083511-05:00"
            },
            {
                "id": "5e743888-dabf-441d-90f1-41451ebf77f5",
                "updated_at": "2025-04-06T10:10:04.490636-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "f9b55bd5-69ab-4363-af8f-5e1f126cd86d",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/e4a1f2b2-3f5c-4305-9d2d-957c19e434f2/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T10:10:04.490711-05:00"
            },
            {
                "id": "8f80b9ce-8317-4296-81da-910aa11f7e43",
                "updated_at": "2025-04-06T10:06:30.631104-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "bfa9b8ab-68a4-4879-8ad3-738a2aad1386",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/e4a1f2b2-3f5c-4305-9d2d-957c19e434f2/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T10:06:30.631159-05:00"
            },
            {
                "id": "31a24af4-f8cc-443e-9042-72e8958e2c66",
                "updated_at": "2025-04-06T10:04:04.288257-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "40604cec-8e97-4133-89cf-26443988f16d",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/e4a1f2b2-3f5c-4305-9d2d-957c19e434f2/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T10:04:04.288295-05:00"
            },
            {
                "id": "f8362285-aac1-4673-b741-c8cf8792eb05",
                "updated_at": "2025-04-06T09:59:02.455730-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "09c14782-7b8c-4ab5-a879-80a36b8cd8b3",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/e4a1f2b2-3f5c-4305-9d2d-957c19e434f2/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T09:59:02.455801-05:00"
            },
            {
                "id": "ee9696f7-9fb3-4b24-9aa2-6334ee453ce4",
                "updated_at": "2025-04-06T09:52:52.764498-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "a425a5b0-1951-4bbb-a3b2-61d7d3d722c5",
                "action": "created",
                "data": {
                    "path": "/admin/accounts/apikey/e4a1f2b2-3f5c-4305-9d2d-957c19e434f2/change/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T09:52:52.764579-05:00"
            },
            {
                "id": "628317d8-7f3d-4f78-957b-8ffeafd93693",
                "updated_at": "2025-04-06T09:41:41.482351-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "f33dd7b8-dac7-4b8e-ba55-b051202130d6",
                "action": "created",
                "data": {
                    "path": "/admin/core/systemlog/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T09:41:41.482407-05:00"
            },
            {
                "id": "5e39aa67-b8f2-4303-b3fb-1b1a4e8aab74",
                "updated_at": "2025-04-06T09:41:40.653459-05:00",
                "actor_type": "admin",
                "actor_id": "826de5b6-5339-4c5b-8cea-285664e6db87",
                "entity_type": "unknown",
                "entity_id": "6a9cc308-07e0-47bb-b936-b509a195d5d7",
                "action": "created",
                "data": {
                    "path": "/admin/core/systemlog/",
                    "method": "POST",
                    "payload": {}
                },
                "ip_address": "127.0.0.1",
                "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
                "created_at": "2025-04-06T09:41:40.653503-05:00"
            }
        ]
    },
    "message": "Request successful"
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

Responses

🟢200System logs
application/json
Body
success
boolean 
required
data
object 
required
count
integer 
required
next
null 
required
previous
null 
required
results
array [object {11}] 
required
message
string 
required
Previous
permissions
Built with