Health API
Health check endpoint for PraisonAI servers
Health API
The health endpoint provides server health status and basic information about available providers.
Overview
Every PraisonAI server exposes /health which returns the current health status along with provider information.
When to Use
- Health checks: Kubernetes/Docker health probes
- Load balancer: Backend health verification
- Monitoring: Uptime and availability monitoring
Base URL + Playground
# Start server
praisonai serve unified --host 127.0.0.1 --port 8765Base URL: http://127.0.0.1:8765
Request
none
noneNo parameters required.
Example Request
curl http://127.0.0.1:8765/healthimport requests
response = requests.get("http://127.0.0.1:8765/health")
health = response.json()
print(f"Status: {health['status']}")const response = await fetch("http://127.0.0.1:8765/health");
const health = await response.json();
console.log(`Status: ${health.status}`);Response
ResponseField
stringHealth status: healthy or unhealthy
ResponseField
stringDiscovery schema version
ResponseField
stringServer name
ResponseField
stringServer version
ResponseField
arrayList of provider types available
ResponseField
integerNumber of registered endpoints
ResponseField
objectGateway saturation snapshot — present only when the back-pressure machinery is wired. Classifies load as nominal, elevated, or saturated. See Pressure Telemetry.
Example Response
{
"status": "healthy",
"schema_version": "1.0.0",
"server_name": "praisonai-unified",
"server_version": "1.0.0",
"providers": ["agents-api", "a2a", "a2u"],
"endpoint_count": 3
}Errors
| Status | Description |
|---|---|
| 200 | Server is healthy |
| 500 | Server error |
CLI Equivalent
# Health check via endpoints CLI
praisonai endpoints health --url http://127.0.0.1:8765Configuration
Health endpoint is automatically added to all servers. No configuration required.
Notes
- Returns 200 for healthy, 500 for unhealthy
- Use for Kubernetes liveness/readiness probes
- No authentication required
Related
- Discovery API – Full discovery document
- Gateway Health – Gateway-specific health endpoint with different response format