Skip to main content
The HealthResource provides a lightweight liveness probe for any Figranium instance. Call check() to confirm the server is up, read its version, and verify that your SDK install and network path are working. No API key or session is required.

Client setup

Methods

Performs a GET /api/health request and returns the server’s health status. This is the fastest way to verify connectivity and SDK configuration.

Returns

HealthStatus extends UnknownRecord for forward compatibility, so newer servers can add fields without breaking existing consumers. Common fields include:
  • status: a human-readable status string such as "ok"
  • version: the running Figranium server version

Example: verify connectivity

Example: browser usage

Because check() requires no authentication, you can call it from a browser before the user has signed in or provided an API key:

Example: handle transport failures

Wrap check() in a try/catch to detect network or DNS issues. Transport failures surface as FigraniumError with code: "NETWORK_ERROR":
The check() method accepts the standard RequestOptions object as its final argument, so you can pass a custom signal, timeoutMs, or extra headers when needed.