/health endpoint provides a simple health check for the Styx server. This endpoint is used by orchestration systems like Docker and Kubernetes for liveness and readiness probes.
Endpoint
Authentication
No authentication required.Response
Returns a JSON object indicating the server status.Health status of the server. Always returns
"ok" when the server is running.Service identifier. Always returns
"styx".Example Request
Example Response
200 OK
Usage in Docker
The health endpoint is used in Docker health checks:Usage in Kubernetes
Liveness Probe
Readiness Probe
CLI Health Check
Use the Styx CLI to check server health:The health endpoint performs a basic availability check. It does not verify the health of dependent services like witness nodes or check the internal state of the Oracle. For production monitoring, use the
/metrics endpoint with Prometheus.