/audit
0.1.0Unchanged since publicationList audit log entries
securityreadallReturns one page of audit entries, newest first. Each entry records who acted, the action and its parameters, the origin and IP address, the result and the timestamp. Results for unsuccessful operations start with "refused:" or "failed:" and include the reason. For actors with an existing UrbeStack user account, the entry includes their current role and, when applicable, their reseller's name.
Administrators can see all entries. Resellers can see entries for actions they or their customers took. The response includes filter counts, the size of the full log and the timestamp of its oldest entry. An empty result has one page.
UrbeStack keeps entries for the number of days set by security.audit_retention_days. The response reports that setting in retention_days.
Parameters
actorquery ·string, matching ^[\w.@-]{1,254}$actionquery ·string, matching ^[a-z][a-z0-9-]{0,63}$aboutquery ·string, matching ^[a-z][a-z0-9_]{1,31}$idquery ·integer, 1 or moreoriginquery ·string, one of panel, api, shell, mailbox, pluginfailedquery ·integer, one of 0, 1qquery ·string, up to 200 characterssincequery ·string, matching ^\d{4}-\d\d-\d\d(?:[T ]\d\d:\d\d(?::\d\d)?)?Z?$untilquery ·string, matching ^\d{4}-\d\d-\d\d(?:[T ]\d\d:\d\d(?::\d\d)?)?Z?$pagequery ·integer, 1 or moreper_pagequery ·integer, 1 to 1000Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/audit?actor=text&action=text&about=text&id=1&origin=panel&failed=0&q=text&since=text&until=text&page=1&per_page=1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"actions": [
"text"
],
"counts": {
"all": 1,
"api": 1,
"failed": 1,
"mailbox": 1,
"panel": 1,
"shell": 1
},
"entries": [
{
"action": "text",
"actor": "text",
"actor_id": 1,
"actor_owner": "text",
"actor_role": "admin",
"address": "info@example.com",
"at": "text",
"id": 1,
"origin": "panel",
"params": {},
"result": "text",
"token": "ub_9f3c2a7e1b5d4082a6c1e7f0"
}
],
"oldest": "text",
"page": 1,
"pages": 1,
"people": [
{
"name": "alice",
"role": "admin"
}
],
"per_page": 1,
"retention_days": 1,
"rows_total": 1,
"total": 1
}Errors
1 error, each a status and a sentence401Authentication requiredurbestack.com/docs/api/get-audit/