Check the server's readiness
GET
Answers ok when the server can serve requests, which takes its database
answering within a second, and fail with 503 otherwise.
A readiness probe tells an orchestrator such as Kubernetes whether to send
the instance requests. Point it at /readyz at the root, where the probes
stay, not under /api/v1, so that a server whose database does not answer
gets no requests until it does. The check is one round trip to the
database.
The server and its database answer.
text/plainExample Request
import { createZitadelApi, ZitadelClient } from "@zitadel/api/client";const api = createZitadelApi( new ZitadelClient({ baseUrl: process.env.ZITADEL_URL ?? "http://localhost:8080", }),);const ready = await api.getReady();Example Response
"ok"Was this helpful?