List audit entries
Admin only. Returns a page of the trail, newest first, with the user name on each row. Filters are optional and combined; search spans entity, id, action, user name, and payloads.
/api/v1/auditAuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
entitystringExact entity name, for example sales.
actionstringExact action name, for example update.
branch_idstringExact branch the entry was written against.
user_idstringExact user who performed the change.
searchstringFree text matched against the entity, ids, action, user name, and payloads.
from_datestringOldest day to include, as YYYY-MM-DD, read with the store's day boundary.
to_datestringNewest day to include, as YYYY-MM-DD, read with the store's day boundary.
pageintegerOne based page number. Defaults to 1.
page_sizeintegerRows per page, capped at 200. Defaults to 50.
A page of audit entries
totalintegerrequiredpageintegerrequiredpage_sizeintegerrequireditemsobject[]requiredShow propertiesHide properties
objectidstringrequireduser_idstringrequiredbranch_idstringrequireddevice_idstring | nullrequiredentitystringrequiredentity_idstring | nullrequiredactionstringrequiredbefore_jsonstring | nullrequiredafter_jsonstring | nullrequiredipstringrequiredcreated_atstringrequireduser_namestring | nullrequiredNot authenticated
detailstringrequiredCaller is not an admin
detailstringrequired