Overview / System / Audit log

Audit log

get https://api.flactrum.com/v1/activity

Who changed what, and when. Read-only: an audit log that can be deleted is not an audit log.

Required scope activity.read
Panel screenSystem → Audit log
Success status200
Returns A paginated list of Activity objects

Parameters

NameInTypeDescription
event query string —
branch_id query string —
causer_id query string The user who made the change.
subject_type query string Model name, e.g. Product.
subject_id query string Together with subject_type, the history of one record.
from query string —
to query string —
page query integer Page number.
per_page query integer Page size. Values above the maximum are rejected rather than silently clamped.

Response fields

FieldTypeDescription
id string —
description string —
event string|null —
subject object|null What was changed: type and id.
causer object|null Who changed it.
changes object|null Old and new values for the fields that moved.
created_at string —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X GET 'https://api.flactrum.com/v1/activity' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/json

{
    "data": [
        {
            "id": "2570",
            "description": "created",
            "event": "created",
            "subject": {
                "type": "Branch",
                "id": "01m43mztkg9pfwfq2a3jvej391"
            },
            "causer": null,
            "branch_id": null,
            "changes": {
                "attributes": {
                    "city": null,
                    "code": null,
                    "name": "Bebek",
                    "phone": null,
                    "region": null,
                    "address": null,
                    "brand_id": "01m43mzthhv685gs199awfswyq",
                    "latitude": null,
                    "is_active": true,
                    "longitude": null,
                    "opened_at": null,
                    "monthly_rent": null,
                    "working_hours": null,
                    "table_service_enabled": false
                }
            },
            "created_at": "2026-10-04T14:27:20+00:00"
        },
        {
            "id": "2569",
            "description": "updated",
            "event": "updated",
            "subject": {
                "type": "ApiKey",
                "id": "01m43mzths4tgtytd4bg9zy3nb"
            },
            "causer": null,
            "branch_id": null,
            "changes": {
                "old": {
                    "scopes": []
                },
                "attributes": {
                    "scopes": [
                        "dashboard.read",
                        "branches.read",
                        "branches.write",
                        "shifts.read",
                        "shifts.write",
                        "checklists.read",
                        "checklists.write",
                        "checklists.submit",
                        "audits.read",
                        "audits.write",
                        "devices.read",
                        "devices.write",
                        "products.read",
                        "products.write",
                        "categories.read",
                        "categories.write",
                        "recipes.read",
                        "recipes.write",
                        "addons.read",
                        "addons.write",
                        "campaigns.read",
                        "campaigns.write",
                        "coupons.read",
                        "coupons.write",
                        "languages.read",
                        "languages.write",
                        "orders.read",
                        "orders.write",
                        "orders.payment",
                        "kitchen.write",
                        "orders.refund",
                        "cash.read",
                        "cash.write",
                        "pos.cashiers.read",
                        "tables.read",
                        "tables.write",
                        "reservations.read",
                        "reservations.write",
                        "stock.read",
                        "stock.write",
                        "stock_items.read",
                        "stock_items.write",
                        "stock_counts.read",
                        "stock_counts.write",
                        "assets.read",
                        "assets.write",
                        "assets.count",
                        "warehouses.read",
                        "warehouses.write",
                        "warehouse_requests.read",
                        "warehouse_requests.write",
                        "transfers.read",
                        "transfers.write",
                        "goods_receipts.read",
                        "goods_receipts.write",
                        "purchases.read",
                        "purchases.write",
                        "suppliers.read",
                        "suppliers.write",
                        "employees.read",
                        "employees.write",
                        "leaves.read",
                        "leaves.write",
                        "payroll.read",
                        "payroll.write",
                        "customers.read",
                        "customers.write",
                        "customers.wallet",
                        "loyalty.read",
                        "loyalty.write",
                        "transactions.read",
                        "transactions.write",
                        "payment_methods.read",
                        "payment_methods.write",
                        "reports.read",
                        "reports.write",
                        "kiosk.read",
                        "kiosk.write",
                        "users.read",
                        "users.write",
                        "roles.read",
                        "roles.write",
                        "webhooks.read",
                        "webhooks.write",
                        "settings.read",
                        "settings.write",
                        "billing.read",
                        "billing.write",
                        "activity.read"
                    ]
                }
            },
            "created_at": "2026-10-04T14:27:20+00:00"
        },
        {
            "id": "2568",
            "description": "created",
            "event": "created",
            "subject": {
                "type": "ApiKey",
                "id": "01m43mzths4tgtytd4bg9zy3nb"
            },
            "causer": null,
            "branch_id": null,
            "changes": {
                "attributes": {
                    "key": "flk_ikrejx5hi0k7qxmfflcrnxq4zszo",
                    "name": "Test key",
                    "scopes": [],
                    "brand_id": "01m43mzthhv685gs199awfswyq",
                    "branch_id": null,
                    "device_id": null,
                    "is_active": true,
                    "created_by": null,
                    "expires_at": null,
                    "secret_hash": "$2y$04$4OPXtkT/0hXfNM8wyDsRZeFGQvDnpRJ.AVoXB9e96IKyopXMFAZMS",
                    "secret_last_four": "uKyC"
                }
            },
            "created_at": "2026-10-04T14:27:20+00:00"
        },
        {
            "id": "2567",
            "description": "created",
            "event": "created",
            "subject": {
                "type": "Branch",
                "id": "01m43mzthmhzwszn5bm4gbqeqw"
            },
            "causer": null,
            "branch_id": null,
            "changes": {
                "attributes": {
                    "city": "İstanbul",
                    "code": "NIS",
                    "name": "Nişantaşı",
                    "phone": null,
                    "region": "Bölge 2",
                    "address": null,
                    "brand_id": "01m43mzthhv685gs199awfswyq",
                    "latitude": null,
                    "is_active": true,
                    "longitude": null,
                    "opened_at": null,
                    "monthly_rent": null,
                    "working_hours": null,
                    "table_service_enabled": false
                }
            },
            "created_at": "2026-10-04T14:27:20+00:00"
        }
    ],
    "meta": {
        "total": 4,
        "page": 1,
        "per_page": 25,
        "last_page": 1
    }
}