List audit entries
/api/v1/audits
operationId: audit.list
Base: https://portal.watcheye.com.au/api/v1/audits
Returns audit log entries for the calling account. Results are paginated.
The audit log records significant activity on your account: who did what, when, from which IP, and against which resource. Use it to feed external SIEM / compliance systems, to reconstruct an entity's history, or to surface activity in your own UI.
Filters
The following filters can be applied via the filter[...] query parameters:
action- exact action key (e.g.created_watcheye_entity)action_type- optional action sub-type (e.g.passwordforlogin)user_uuid- only actions performed by the given userapi_key_uuid- only actions performed by the given API keyentity_uuid- only actions associated with the given entity (covers direct entity actions plus actions on related resources like checks, events, and notes)created_at_from- inclusive lower bound on the audit timestamp (ISO 8601)created_at_to- inclusive upper bound on the audit timestamp (ISO 8601)
UUID-targeted filters return an empty page when the target uuid does not exist on the calling account.
Sorting
The sort query parameter accepts created_at (default: -created_at, newest first).
Prefix with - for descending order.
Properties
The list endpoint does not return the per-audit properties object. Properties for some
actions can be many kilobytes, which would balloon page payloads. Use the
show endpoint to retrieve the full properties for a single
audit entry.
Query parameters
| Field | Description |
|---|---|
page |
integer The page of results to return, starting at 1. |
per_page |
integer The number of audit entries per page (defaults to 30, max 500) |
filter[action] |
string Exact action key |
filter[action_type] |
string Only audit entries of the given action type. |
filter[user_uuid] |
string (uuid) Only audit entries performed by the given portal user. |
filter[api_key_uuid] |
string (uuid) Only audit entries performed by the given API key. |
filter[entity_uuid] |
string (uuid) Only records for the given entity. |
filter[created_at_from] |
string (date-time) Inclusive lower bound on |
filter[created_at_to] |
string (date-time) Inclusive upper bound on |
sort |
string Field to sort by; prefix with |
Responses
Audit list response
application/json
| Field | Description |
|---|---|
data |
array of objects An array of audit entries |
data[]. |
string (uuid) The audit entry's UUID |
data[]. |
string Machine-readable action key. Use this for programmatic logic (filtering, branching).
Example values include |
data[]. |
string Human-readable label for the action, suitable for display in UIs. Derived from the machine action key and is stable per action. |
data[]. |
string or null Optional sub-type qualifying the action. Used for actions that have meaningful
variants (e.g. |
data[]. |
string Human-readable description recorded at the time the audit was created. For most actions this is the action label; for some it includes additional context (e.g. the name of the resource touched). |
data[]. |
string or null The IP address the action originated from, where one was captured. |
data[]. |
object Who performed the action. Always present; |
data[]. |
string
|
data[]. |
string (uuid) or null UUID of the user or API key, or |
data[]. |
string or null Display name of the agent: a user's full name (or username if no name is set),
or the API key's label. |
data[]. |
object or null The resource the action was performed on. |
data[]. |
string Identifies the resource type for this audit's subject. Use it together with
|
data[]. |
string (uuid) or null UUID of the subject resource, or |
data[]. |
string (date-time) ISO 8601 timestamp at which the audited action occurred |
meta |
object |
meta. |
integer |
meta. |
integer |
meta. |
integer |
meta. |
integer |
api_reference |
string (uuid) |