Skip to main content
The Audit Log provides a tamper-proof, chronological record of every significant action taken by admin and super_admin accounts on the platform. Each entry captures who performed an action, what was done, which resource was affected, and when it happened. Use the audit log to investigate incidents, satisfy compliance requirements, and monitor admin behaviour over time.
Audit log entries are append-only. They cannot be modified, soft-deleted, or hard-deleted through any API endpoint. The log is a permanent and authoritative record of admin activity.
This endpoint requires SUPER_ADMIN role. Requests from ADMIN-level sessions will receive a 403 Forbidden response.

Authentication

The audit log endpoint requires:
  • A valid session cookie (obtained via POST /auth/login)
  • SUPER_ADMIN role (ADMIN-level access is insufficient)
No write operations are available on this endpoint — it is read-only.

Query the Audit Log

Retrieve a paginated, filterable view of the audit trail. Filter by the admin who performed the action, the action type, the resource type, a specific resource, or a date range to narrow down the log to the entries you need. GET /admin/audit
integer
default:"1"
Page number (1-based).
integer
default:"20"
Items per page. Minimum 1, maximum 100.
string
Filter by the public ID of the admin who performed the action (e.g. usr_01H). Max 50 characters.
string
Filter by action name prefix. For example, passing user. returns all entries whose action starts with user.. Max 100 characters.
string
Filter by the type of resource that was affected (e.g. user, order, product, review). Max 50 characters.
string
Filter by the public ID of a specific resource to see all audit history for that record (e.g. usr_01H, ord_01H). Max 50 characters.
string
ISO 8601 datetime with UTC offset. Return entries created at or after this time.
string
ISO 8601 datetime with UTC offset. Return entries created at or before this time.
string
default:"-created_at"
Sort by creation time. Use created_at for oldest-first or -created_at for newest-first.

Response Structure

200 OK
boolean
Always true on a successful response.
array
Array of audit log entries.
object
Standard pagination metadata.
Example response:

Error Responses


Usage Patterns

To audit everything an admin did during a time window, combine the actor filter with date_from and date_to:
Pass entity_public_id to see the complete modification history of a specific order, product, user, or any other entity:
Use the action prefix filter to find all suspension events, for example:
Page through the entire log for a fiscal period using date bounds and multiple pages:
Increment page until meta.hasNext is false to retrieve all entries.