Audit Logs

Core Platform

Learn more in the guide: Audit Logs

audit_logs_readAudit Logs

Search 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

NameTypeDescription
action*"search" | "statistics" | "log_detail" | "error_summary"What to do; each action is described in the tool description.
facilityIdstringFacility ID. Optional when the connected facility is the one you mean.
hoursBackintegerHow many hours back to search (default 24, max 168). (search, statistics, error_summary)
startTimestringOptional ISO-8601 start timestamp. (search, statistics, error_summary)
endTimestringOptional ISO-8601 end timestamp. (search, statistics, error_summary)
userEmailstringFilter by actor email address. (search)
method"GET" | "POST" | "PUT" | "PATCH" | "DELETE"Filter by HTTP method. (search)
statusCodeintegerFilter by HTTP status code. (search)
endpointstringFilter by request path substring. (search)
limitintegerMax entries to return (default 25). (search)
logIdstringThe audit log entry ID. (log_detail)