SelfAudit Logs

listSelfAuditLogs

GET
/api/v1/self/logs

Get List of change logs across all Orgs for current admin Audit logs records all administrative activities done by current admin across all orgs

Authorization

Authorization<token>

Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.

Format: Authorization: Token {apitoken}

Notes:

  • An API token generated for a specific admin has the same privileges as that admin
  • An API token is automatically removed if it is not used for more than 90 days
  • SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.

In: header

Query Parameters

message?string

Filter results by message text

sort?string

Field used to sort results; a leading - indicates descending order. enum: -timestamp, admin_id, site_id, timestamp

Value in

  • "-timestamp"
  • "admin_id"
  • "site_id"
  • "timestamp"
start?string

Lower bound of the time range, as an epoch timestamp in seconds or a relative value such as -1d or -1w

end?string

Upper bound of the time range, as an epoch timestamp in seconds or a relative value such as -1d, -2h, or now

duration?string

Time range duration for the query, using relative units such as 10m, 7d, or 2w

Default"1d"
limit?integer

Maximum number of results to return per page

Range0 <= value
Default100
page?integer

Select the page number to return when using page-based pagination; starts at 1

Range1 <= value
Default1

Response Body

curl -X GET "https://example.com/api/v1/self/logs"
{  "end": 1428954000,  "limit": 100,  "page": 1,  "results": [    {      "admin_id": "72bfa2bd-e58a-4670-9d20-a1468f7a6f58",      "admin_name": "test@mistsys.com",      "after": {        "auth": {          "type": "open"        }      },      "before": {        "auth": {          "type": "psk"        }      },      "id": "c6f9347b-b0a4-4a23-b927-fa9249f2ffb2",      "message": "Update WLAN \"Corporate\"",      "org_id": "423f6eca-6276-4994-bfeb-53cbbbba6f04",      "site_id": "4ac1dcf4-9d8b-7211-65c4-057819f0862b",      "timestamp": 1431382121    }  ],  "start": 1428939600,  "total": 135}