API reference · 3 endpoints
Audit logs
Query the audit trail of search and MCP activity in a namespace.
/v1/default/namespaces/{namespace_id}/audit-logsList audit logs
List audit log entries for a namespace, ordered by most recent first. Request and response bodies are omitted unless include_payloads is set.
Parameters
namespace_idstringpathrequiredactionstring | nullqueryFilter by action type
transportstring | nullqueryFilter by transport (http, mcp, system)
statusstring | nullqueryFilter by outcome: ok or error
actor_idstring | nullqueryFilter by the id of the API key or user that made the request
start_datestring | nullqueryFilter from this ISO datetime (inclusive)
end_datestring | nullqueryFilter until this ISO datetime (exclusive)
limitintegerqueryMax items to return
offsetintegerqueryOffset for pagination
include_payloadsbooleanqueryInclude the full request and response bodies on every item. Off by default: audit payloads can be large, so the list ships summaries and GET .../audit-logs/{audit_id} returns one entry in full.
/v1/default/namespaces/{namespace_id}/audit-logs/statsAudit log statistics
Get audit log counts grouped by time bucket for charting.
Parameters
namespace_idstringpathrequiredactionstring | nullqueryFilter by action type
periodstringqueryTime period: 1d, 7d, 30d, or 90d. Anything else is read as 7d.
/v1/default/namespaces/{namespace_id}/audit-logs/{audit_id}Get an audit log entry
Return one audit log entry with its full request and response bodies.
Parameters
namespace_idstringpathrequiredaudit_idstringpathrequired