API Reference
All REST API endpoints served on port 8090.
/api/logsPaginated log list with all filters (prefix any filter with ! to negate)
/api/logs/aggregateAggregate logs by dimension with CIDR grouping and HAVING thresholds
/api/logs/{id}Single log detail with threat data
/api/statsDashboard aggregations (pass ?time_range=24h)
/api/exportCSV export with current filters (up to 100K rows)
/api/healthHealth check with total count and latest timestamp
/api/servicesDistinct service names for filter dropdown
/api/protocolsDistinct protocols seen in logs
/api/interfacesDistinct interfaces seen in logs
/api/configCurrent system configuration (WAN, labels, setup status)
/api/setup/completeSave wizard configuration
/api/setup/wan-candidatesAuto-detected WAN interface candidates
/api/setup/network-segmentsDiscovered network segments with suggested labels
/api/enrich/{ip}Force fresh AbuseIPDB lookup for an IP
/api/settings/unifiCurrent UniFi API settings
/api/settings/unifiUpdate UniFi API settings
/api/settings/unifi/testTest UniFi connection and save on success
/api/settings/uiCurrent UI display preferences
/api/settings/uiUpdate UI display preferences
/api/firewall/policiesAll firewall policies with zone data
/api/firewall/policies/{id}Toggle syslog on a firewall policy
/api/firewall/policies/bulk-loggingBulk-toggle syslog on multiple policies
/api/unifi/clientsCached UniFi client list
/api/unifi/devicesCached UniFi infrastructure devices
/api/unifi/statusUniFi polling status
/api/config/exportExport all settings as JSON
/api/config/importImport settings from JSON backup
/api/config/vpn-networksSave VPN network configuration
/api/config/retentionCurrent retention configuration
/api/config/retentionUpdate retention settings
/api/config/retention/cleanupRun retention cleanup immediately
/api/threatsThreat intelligence cache with IP/date filters
/api/threats/geoGeo-aggregated threat data for Threat Map (GeoJSON)
/api/logs/batchFetch multiple logs by ID (max 50)
/api/mcpMCP JSON-RPC endpoint (bearer token required)
/api/mcpMCP SSE streaming endpoint (bearer token required)
/api/settings/mcpMCP server settings
/api/settings/mcpUpdate MCP settings
/api/settings/mcp/tokensList MCP access tokens
/api/settings/mcp/tokensCreate a new MCP token
/api/settings/mcp/tokens/{id}Revoke an MCP token
/api/settings/mcp/scopesList available permission scopes
/api/settings/mcp/auditMCP audit trail with pagination