curl https://searchcompany-main.up.railway.app/health
{
"status": "healthy"
}
π’ GET - Health Check
Health Check
Check if the API is running
GET
/
health
curl https://searchcompany-main.up.railway.app/health
{
"status": "healthy"
}
Simple health check endpoint for monitoring and load balancer health probes.
Response
string
"healthy" if the API is runningcurl https://searchcompany-main.up.railway.app/health
{
"status": "healthy"
}
Usage
Railway Health Checks
Configure inrailway.toml:
[healthcheck]
path = "/health"
interval = 30
timeout = 10
Docker Health Checks
HEALTHCHECK --interval=30s --timeout=10s \
CMD curl -f http://localhost:8000/health || exit 1
Uptime Monitoring
Use this endpoint with services like:- UptimeRobot
- Pingdom
- Better Uptime
- Railwayβs built-in monitoring
Root Endpoint
Thereβs also a root endpoint at/ that returns:
{
"message": "Hello from Backend!"
}