List health

Reports whether this deployment can serve spaces, drives and files.

GET /v1/space/health

Addresshttps://api.hanzo.ai/v1/space/health
MethodGET
Operationget_space_health
AuthAuthorization: Bearer $HANZO_API_KEY

Reports whether this deployment can serve spaces, drives and files.

It is a REAL probe rather than a constant: 200 when object-store credentials are present, so the store is reachable in principle, and 503 with the reason when they are not. It is deliberately NOT gated — liveness has to be probe-able without a token — so it is the one operation here that names no space and bills nothing.

Request

GET /v1/space/health takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200space.spaceHealthok
503space.spaceHealthservice unavailable
defaultproblem-detailsrefused

200 body — 5 fields.

FieldInTypeAlwaysDescription
errorbodystring—Error is why the probe is degraded, in plain words.
presignbodyboolean—Presign is whether upload and download URLs can be minted, which needs a PUBLIC endpoint on top of the credentials.
readybodyboolean—Ready is whether this deployment can serve drive and file operations at all: true only when object-store credentials are configured.
servicebodystring—Service names the subsystem this probe is for.
statusbodystring—Status is "ok" when the store is reachable in principle, "degraded" when it is not.

Failure carries the platform error shape — see Errors.

Examples

hanzo space health
import { Configuration, SpaceApi } from 'hanzoai';

const api = new SpaceApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getSpaceHealth();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import SpaceApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = SpaceApi(client).get_space_health()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.SpaceAPI.GetSpaceHealth(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, space_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = space_api::get_space_health(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.SpaceApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new SpaceApi(client).getSpaceHealth();
curl https://api.hanzo.ai/v1/space/health \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool space, op get_space_health — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "space",
         "arguments": {
           "op": "get_space_health",
           "input": {}
         }
       }
     }'

Space API · All Hanzo APIs · Interactive reference

Was this page useful?