List a server's audit log
Overview
Lists server activity, newest first. per_page defaults to 25 and accepts 1 to 100. Sort by created_at or updated_at, with - for descending order. Filter by filter[action], filter[user_id] or filter[user.email]. By default, user contains only an email address. Add ?include=user for full account details. The included user is null when you cannot view that account.
Permissions
Requires the server.read (View servers) permission for the selected team. Resources outside that team return 404.
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Path parameters
The server uuid short
Query parameters
The maximum number of records to return on one page.
1 to 100
Related records to include, with multiple values separated by commas.
Filter records by user.email.
Filter records by action.
The field to sort by, prefixed with - for descending order.
Response 200
application/jsonOne page of results, with the rows under data and the paging figures beside them.
Which page this is, counting from 1.
The rows on this page.
Show child attributesHide child attributes
The id ID.
The server id ID.
The user id ID.
The value of action.
An optional description shown to customers.
The value of metadata.
The value of ip_address.
The date and time for created at, in UTC.
The date and time for updated at, in UTC.
The account the entry is filed under.
A link to the first page.
The position of the first row on this page in the whole result, or null when the page is empty.
How many pages there are.
A link to the last page.
Pagination links in display order.
Show child attributesHide child attributes
A link to the next page, or null on the last one.
The base URL used for pagination.
How many rows a page holds.
A link to the previous page, or null on the first one.
The position of the last row on this page, or null when the page is empty.
How many rows there are altogether.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 404
- The resource was not found in the selected team. Resources in another account or team also return 404.
- 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown