Skip to main content

GET /health

Check the health status of the Codex-LB service.

Endpoint

Authentication

No authentication required. This endpoint is publicly accessible.

Response

string
required
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

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.