Skip to content

API Reference

Base URLs:

  • Via UI proxy (recommended): http://localhost:8011/api
  • Direct backend access (localhost only): http://localhost:5001/api

All endpoints require HTTP Basic Authentication unless noted otherwise.

Endpoint summary

Authentication

MethodPathDescription
POST/api/auth/loginValidate credentials, returns JWT token
POST/api/logoutInvalidate current session
POST/api/change-passwordChange the admin password
GET/api/ws-tokenGet a single-use WebSocket auth token
GET/healthHealth check (no auth required)
GET/api/healthHealth check via API prefix (no auth required)

Blacklist & Whitelist

MethodPathDescription
GET/api/ip-blacklistList IP blacklist entries
POST/api/ip-blacklistAdd an IP blacklist entry
DELETE/api/ip-blacklist/{id}Delete an IP blacklist entry
POST/api/ip-blacklist/bulk-deleteDelete multiple IP blacklist entries
DELETE/api/ip-blacklist/clear-allRemove all IP blacklist entries
GET/api/domain-blacklistList domain blacklist entries
POST/api/domain-blacklistAdd a domain blacklist entry
DELETE/api/domain-blacklist/{id}Delete a domain blacklist entry
POST/api/domain-blacklist/bulk-deleteDelete multiple domain blacklist entries
DELETE/api/domain-blacklist/clear-allRemove all domain blacklist entries
POST/api/blacklists/importImport from URL or inline content
POST/api/blacklists/import-geoImport geo-based IP block by country code
GET/api/ip-whitelistList IP whitelist entries
POST/api/ip-whitelistAdd an IP whitelist entry
DELETE/api/ip-whitelist/{id}Delete an IP whitelist entry
GET/api/domain-whitelistList domain whitelist entries (DNS bypass)
POST/api/domain-whitelistAdd a domain to the DNS whitelist
DELETE/api/domain-whitelist/{id}Delete a domain whitelist entry

Logs & Analytics

MethodPathDescription
GET/api/logsGet log entries (?limit=N)
GET/api/logs/statsGet log statistics
GET/api/logs/timeline24h traffic timeline
POST/api/logs/clearClear all logs
POST/api/logs/clear-oldDelete logs older than the retention period
GET/api/statusGet proxy service status
GET/api/traffic/statisticsTraffic statistics
GET/api/clients/statisticsClient statistics
GET/api/domains/statisticsTop accessed domains statistics
GET/api/security/scoreGet security score
GET/api/analytics/shadow-itShadow IT detection (35+ SaaS services)
GET/api/analytics/user-agentsService type breakdown
GET/api/analytics/file-extensionsFile extension distribution
GET/api/analytics/top-domainsTop accessed domains for cloud visualization
GET/api/dashboard/summaryAggregated dashboard data in a single call
GET/api/analytics/report/pdfDownload PDF analytics report
GET/api/waf/statsWAF engine statistics (rules, blocks, entropy)
POST/api/counters/resetReset all counters

Settings & Maintenance

MethodPathDescription
GET/api/settingsGet all settings
PUT/api/settings/{name}Update a setting
POST/api/settingsBulk update settings
GET/api/database/sizeGet database file size
GET/api/database/exportExport database (sensitive fields redacted)
GET/api/database/statsDatabase size and record counts
POST/api/database/optimizeRun VACUUM + ANALYZE
POST/api/database/resetReset the database
GET/api/cache/statisticsSquid cache metrics
POST/api/maintenance/reload-configSignal Squid to reload config
POST/api/maintenance/reload-dnsReload dnsmasq DNS configuration
POST/api/maintenance/clear-cacheClear the Squid proxy cache
GET/api/maintenance/backup-configDownload a configuration backup
POST/api/maintenance/restore-configRestore configuration from backup
GET/api/maintenance/check-cert-securityCheck SSL certificate security
GET/api/security/download-caDownload the proxy CA certificate
GET/api/security/rate-limitsList current rate-limited IPs
DELETE/api/security/rate-limits/{ip}Remove rate limit for specific IP

WebSocket

PathProtocolDescription
/api/ws/logs?token=TOKENws://Real-time log stream

Released under the MIT License.