Skip to main content

GET /health

Returns server status and uptime. This endpoint is public — no authentication is required for the basic response. When a valid x-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

x-api-secret
string
Optional. When provided and valid, the response includes extended diagnostic fields.

Response fields (public)

status
string
Always ok when the server is running.
uptime
number
Server process uptime in seconds.

Additional fields (authenticated only)

discord
object
Discord WebSocket connection info.
memory
object
Node.js process memory usage (from process.memoryUsage()).
system
object
System information.
pool
object | null
PostgreSQL connection pool statistics.
redis
object
Redis connection statistics.
errors
object
Error counts from the database log.
restarts
array
Recent restart history (up to 20 entries).

Examples

curl https://volvox.bot/api/v1/health
{
  "status": "ok",
  "uptime": 432000
}

Build docs developers (and LLMs) love