Skip to main content

Health Check Endpoints

Health checks do not require authentication. They verify system status and dependency connectivity.

Endpoints

Simple Health Check

curl https://api-production-56df.up.railway.app/health
{"status": "ok"}

Detailed Health Check

curl https://api-production-56df.up.railway.app/health/detailed
{
  "status": "ok",
  "dependencies": {
    "postgres": {
      "status": "ok",
      "latency_ms": 2
    },
    "redis": {
      "status": "ok",
      "latency_ms": 1
    },
    "memgraph": {
      "status": "disabled",
      "enabled": false
    },
    "gemini": {
      "status": "ok",
      "model": "gemini-2.5-flash"
    }
  },
  "graph_reasoner": {
    "enabled": true,
    "rules_loaded": 90,
    "ontology_nodes": 1948
  }
}
The detailed endpoint checks:
  • PostgreSQL — Async connection pool, migration status
  • Redis — Cache connectivity and response time
  • Memgraph — Bolt protocol connectivity (when enabled)
  • Gemini — API key validity and model availability
  • GraphReasoner — Rule count and ontology loaded status