Readyz

GET /readyz

Readiness probe: the database answers a cheap query and, when NATS_URL is set, NATS is connected.

Authentication

None. This operation is public.

Responses

  • 200 application/json Readiness

    Ready to serve traffic

  • 503 application/json Readiness

    A dependency is unreachable

Examples

curl
curl "$IVY_API_URL/readyz"
JavaScript SDK
import { client, readyz } from "@spacivapp/ivy-sdk";

client.setConfig({
  baseUrl: process.env.IVY_API_URL,
});

const { data, error, response } = await readyz();
Example response (200)
{
  "events": "ok",
  "status": "ok",
  "store": "ok"
}