GET /health
Check the health status of the Codex-LB service.Endpoint
Authentication
No authentication required. This endpoint is publicly accessible.Response
Service health status. Always returns
"ok" when the service is running.Example Request
cURL
JavaScript
Python
Example Response
Use Cases
Docker Health Checks
Use in Docker Compose or Kubernetes health checks:docker-compose.yml
Load Balancer Health Checks
Configure your reverse proxy or load balancer to ping/health for availability checks:
nginx.conf
Monitoring Scripts
Status Codes
| Status Code | Description |
|---|---|
| 200 | Service is healthy and operational |
| 502/503 | Service is not responding (network/infrastructure issue) |
The health endpoint does not check database connectivity or upstream API availability. It only confirms that the FastAPI application is running and able to serve requests.
Related
- Deployment → Docker - Configure health checks in Docker
- Deployment → Production - Set up monitoring and alerts