Check the server's liveness
GET
Answers ok while the server process serves HTTP, and checks nothing
behind it.
A liveness probe tells an orchestrator such as Kubernetes whether to
restart the process. Point it at /livez at the root, where the probes
stay, not under /api/v1. It never checks the database, so an outage of
the database does not restart every instance. GET /readyz takes an
instance out of rotation instead.
The server process serves HTTP.
text/plainExample Request
import { createZitadelApi, ZitadelClient } from "@zitadel/api/client";const api = createZitadelApi( new ZitadelClient({ baseUrl: process.env.ZITADEL_URL ?? "http://localhost:8080", }),);const live = await api.getLive();Example Response
"ok"Was this helpful?