Skip to main content
GET
/
v1
/
admin
/
health
curl https://hapi.7331.org/v1/admin/health \
  -b cookies.txt
{
  "status": "healthy",
  "database": true,
  "cache": true,
  "started_at": "2026-03-01T00:00:00Z",
  "db_statistics": {
    "size": 20,
    "checked_in": 18,
    "checked_out": 2,
    "overflow": 0,
    "total": 20,
    "latency_ms": 1.2
  },
  "cache_statistics": {
    "memory_usage_bytes": 1814192,
    "total_keys": 200,
    "connected_clients": 5,
    "uptime_seconds": 86400,
    "evicted_keys": 0,
    "hit_rate": 96.2,
    "total_commands_processed": 75000,
    "latency_ms": 0.3
  },
  "source_hash": "a1b2c3d4e5f6...",
  "source_hashes": {
    "api": "f1e2d3c4b5a6...",
    "core": "1a2b3c4d5e6f...",
    "config": "6f5e4d3c2b1a...",
    "utilities": "b1c2d3e4f5a6..."
  },
  "errors": []
}
Requires an active session cookie with Admin or higher permissions. Returns the same health information as the public health endpoint, plus source_hash and source_hashes for integrity verification.

Response

status
string
required
Overall system status. One of: healthy, degraded, unhealthy.
database
boolean
required
Database connectivity status.
cache
boolean
required
Cache (Redis) connectivity status.
started_at
string
required
Service start time in ISO 8601 format.
db_statistics
object
required
Database connection pool statistics.
cache_statistics
object
required
Cache server statistics.
source_hash
string
required
SHA-256 hash of all backend source files for integrity verification.
source_hashes
object
required
Per-directory SHA-256 hashes (api, core, config, utilities).
errors
string[]
required
List of error messages, if any.
curl https://hapi.7331.org/v1/admin/health \
  -b cookies.txt
{
  "status": "healthy",
  "database": true,
  "cache": true,
  "started_at": "2026-03-01T00:00:00Z",
  "db_statistics": {
    "size": 20,
    "checked_in": 18,
    "checked_out": 2,
    "overflow": 0,
    "total": 20,
    "latency_ms": 1.2
  },
  "cache_statistics": {
    "memory_usage_bytes": 1814192,
    "total_keys": 200,
    "connected_clients": 5,
    "uptime_seconds": 86400,
    "evicted_keys": 0,
    "hit_rate": 96.2,
    "total_commands_processed": 75000,
    "latency_ms": 0.3
  },
  "source_hash": "a1b2c3d4e5f6...",
  "source_hashes": {
    "api": "f1e2d3c4b5a6...",
    "core": "1a2b3c4d5e6f...",
    "config": "6f5e4d3c2b1a...",
    "utilities": "b1c2d3e4f5a6..."
  },
  "errors": []
}