GET /health
Returns server status and uptime. This endpoint is public — no authentication is required for the basic response. When a validx-api-secret header is included, the response is extended with Discord connection details, memory usage, system info, error counts, and restart history.
Authentication: None required for basic response. Provide x-api-secret for extended diagnostics.
Headers
Optional. When provided and valid, the response includes extended diagnostic fields.
Response fields (public)
Always
ok when the server is running.Server process uptime in seconds.
Additional fields (authenticated only)
Discord WebSocket connection info.
Node.js process memory usage (from
process.memoryUsage()).System information.
PostgreSQL connection pool statistics.
Redis connection statistics.
Error counts from the database log.
Recent restart history (up to 20 entries).
Examples
- Public (no auth)
- Extended (with API key)