Skip to main content
No authentication required. Use these for load balancer health checks and monitoring.

Health Check

GET /health
Basic liveness probe. Returns 200 if the API process is running.

Example request

curl https://mind-be.staging.miva.university/health

Response

{
  "status": "ok"
}

Readiness Check

GET /ready
Readiness probe that checks connectivity to dependent services (currently MongoDB). Returns 200 in all cases — use the status field to determine health state.

Example request

curl https://mind-be.staging.miva.university/ready

Response — Healthy

{
  "status": "ok",
  "checks": {
    "mongodb": "ok"
  }
}

Response — Degraded

{
  "status": "degraded",
  "checks": {
    "mongodb": "error: Connection refused"
  }
}

Status values

StatusDescription
okAll dependency checks passed
degradedOne or more dependencies are unhealthy