/health endpoint provides a simple health check to verify that the API is running and responsive.
Endpoint
Request
No request body or parameters required.Response
Health status of the API. Returns “ok” when the service is healthy.
Example Request
Example Response
Use Cases
The health endpoint is useful for:- Monitoring - Integrate with uptime monitoring tools (Pingdom, UptimeRobot, etc.)
- Load balancers - Configure health checks for load balancer routing
- Orchestration - Kubernetes liveness and readiness probes
- CI/CD - Verify deployment success in automated pipelines
- Development - Quick check that the server is running during development
Docker Health Check
The health endpoint is used in the Docker configuration for container health monitoring:Status Codes
- 200 OK - Service is healthy and operational
- 500 Internal Server Error - Service is experiencing issues