Audit Logs
Core PlatformLearn more in the guide: Audit Logs
audit_logs_readAudit LogsSearch a facility's API audit trail, inspect a specific audit entry, or summarise recent request counts and error patterns.
Actions:
- search: Search audit logs. Search recent facility audit entries with optional user, HTTP method, status code, and path filters.
- statistics: Get audit statistics. Return aggregate request volume, error counts, and method/status breakdowns for a time window.
- log_detail: Inspect audit log entry. Fetch detailed metadata for a single audit log entry by ID. Needs logId.
- error_summary: Summarise recent API errors. Count 4xx/5xx audit entries and list the top failing endpoints in the selected window.
Parameters
| Name | Type | Description |
|---|---|---|
action* | "search" | "statistics" | "log_detail" | "error_summary" | What to do; each action is described in the tool description. |
facilityId | string | Facility ID. Optional when the connected facility is the one you mean. |
hoursBack | integer | How many hours back to search (default 24, max 168). (search, statistics, error_summary) |
startTime | string | Optional ISO-8601 start timestamp. (search, statistics, error_summary) |
endTime | string | Optional ISO-8601 end timestamp. (search, statistics, error_summary) |
userEmail | string | Filter by actor email address. (search) |
method | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | Filter by HTTP method. (search) |
statusCode | integer | Filter by HTTP status code. (search) |
endpoint | string | Filter by request path substring. (search) |
limit | integer | Max entries to return (default 25). (search) |
logId | string | The audit log entry ID. (log_detail) |