API reference · System
GET/api/healthz

Liveness probe

Kubernetes liveness endpoint. It returns a fixed healthy status with timestamp, uptime, version, and environment when the process can serve HTTP. It does not check database, Redis, or downstream dependencies; use /api/readyz for dependency-aware readiness.

Response body

Success response 200 · schema HealthzResponse

statusstringRequired
Always healthy when the process can serve HTTP.
Enum: healthy
timestampstring <date-time>Required
ISO timestamp generated when the liveness check is handled.
uptimenumberRequired
Process uptime in seconds from process.uptime().
≥ 0
versionstringRequired
Application version from the environment/package metadata, with a fallback in the handler.
environmentstring
NODE_ENV value returned by the Next.js /api/healthz handler.

Response codes

200
Process is alive and serving HTTP.