List activity log (admin)
GET
/api/activity
const url = 'http://localhost:3000/api/activity?action=created&page=1&pageSize=100';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/activity?action=created&page=1&pageSize=100' \ --cookie session=<session>Sorted by createdAt descending. Legacy limit/offset params are still accepted and converted to page/pageSize.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” action
string
Filter by action type
table
string
Filter by a single table name (e.g. sites, devices)
tables
string
Comma-separated table names — takes precedence over table
page
integer
pageSize
integer
Responses
Section titled “ Responses ”Activity log entries
Media type application/json
object
data
required
Array<object>
object
id
required
string format: uuid
action
required
string
tableName
required
string
recordId
string format: uuid
userName
string
createdAt
required
string format: date-time
total
required
integer
page
required
integer
pageSize
required
integer
hasMore
required
boolean
Example
{ "data": [ { "action": "created" } ]}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Admin access required
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}