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.
Authentication
The audit log endpoint requires:- A valid
sessioncookie (obtained viaPOST /auth/login) - SUPER_ADMIN role (ADMIN-level access is insufficient)
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.
Error Responses
Usage Patterns
Investigate a specific admin's actions
Investigate a specific admin's actions
To audit everything an admin did during a time window, combine the
actor filter with date_from and date_to:Trace all changes to a resource
Trace all changes to a resource
Pass
entity_public_id to see the complete modification history of a specific order, product, user, or any other entity:Filter by action type
Filter by action type
Use the
action prefix filter to find all suspension events, for example:Export a compliance report
Export a compliance report
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.