GET /api/health
Verifies the health status of the server and its connected services. This endpoint provides real-time information about the database connection, system resources, and overall server health.Endpoint
Response Fields
Indicates if the health check completed successfully
Overall health status of the server
healthy: All services are operationaldegraded: One or more services are not functioning properly
ISO 8601 timestamp of when the health check was performed
Server uptime in seconds (e.g., “3600s”)
Status of connected services
System resource information
Response Examples
Status Codes
| Code | Description |
|---|---|
200 | Server is healthy and all services are operational |
503 | Server is degraded (typically due to database disconnection) |
Example Request
Use Cases
- Monitoring: Use in health check monitoring systems to verify server availability
- Load Balancers: Configure load balancers to route traffic only to healthy instances
- CI/CD: Verify deployment success by checking health status
- Debugging: Quickly identify service connectivity issues