DOC
/docs
Health endpoints
GET
/health
Service health
Returns deployment, process, CPU, memory, and uptime details.
Response
{
"service": "sample",
"status": "ok",
"deployed_at": "unknown",
"time_now": "2026-09-01T10:00:00.000Z",
"uptime_seconds": 120
}
GET
/health/services
Configured service checks
Checks each environment variable beginning with MAGICSTACK_ by calling its /health endpoint.
Response
{
"time_now": "2026-09-01T10:00:00.000Z",
"services": [
{
"service": "auth",
"status": "ok",
"http_status": 200,
"response_ms": 42
}
]
}
GET
/health/db
Database health
Returns database timing, size, connection, and performance counters.
Response
{
"service": "sample",
"status": "ok",
"database": "your_db",
"database_response_ms": 12
}
GET
/db/health
Database health alias
Backward-compatible database health route mounted under /db.
Response
{
"service": "sample",
"status": "ok",
"message": "Database connection successful",
"database": "your_db"
}