List health

Reports that the base subsystem is serving.

GET /v1/base/health

Addresshttps://api.hanzo.ai/v1/base/health
MethodGET
Operationget_base_health
AuthAuthorization: Bearer $HANZO_API_KEY

Reports that the base subsystem is serving.

It is deliberately INDEPENDENT of whether this deployment actually embeds the Base engine: the route answers before the CLOUD_BASE_EMBED gate and before the /v1/base/* wildcard, so a liveness probe measures the process rather than an optional feature, and the wildcard can never shadow it. It reads no tenant, so a prober that sends no principal is answered rather than refused.

Request

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

Response

StatusBodyMeaning
200base.baseHealthok
defaultproblem-detailsrefused

200 body — 2 fields.

FieldInTypeAlwaysDescription
servicebodystring—Service is "base" — which subsystem answered.
statusbodystring—Status is "ok" when the subsystem is serving.

Failure carries the platform error shape — see Errors.

Examples

hanzo base health
import { Configuration, BaseApi } from 'hanzoai';

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

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

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

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

let result = base_api::get_base_health(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.BaseApi;

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

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

Tool base, op get_base_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": "base",
         "arguments": {
           "op": "get_base_health",
           "input": {}
         }
       }
     }'

Base API · All Hanzo APIs · Interactive reference

Was this page useful?