GET
/health
Service health
No authentication required. Returns service status and the deployment timestamp from the DEPLOYED_AT environment variable.
Example response
{
"service": "sample",
"status": "ok",
"deployed_at": "unknown"
}
GET
/db/health
Database health
No authentication required. Runs SELECT 1 against the configured database. Returns 503 if the connection fails.
Success response
{
"service": "sample",
"status": "ok",
"deployed_at": null,
"message": "Database connection successful",
"database": "your_db"
}
Failure response (503)
{
"service": "sample",
"status": "error",
"message": "Database connection failed",
"error": "reason"
}