List health

A pure liveness probe: the service is up; datastore reflects whether the datastore store is connected.

GET /v1/sbom/health

Addresshttps://api.hanzo.ai/v1/sbom/health
MethodGET
Operationget_sbom_health
AuthAuthorization: Bearer $HANZO_API_KEY

A pure liveness probe: the service is up; datastore reflects whether the datastore store is connected. Not JWT-gated, always 200 (a disconnected datastore is degraded-but-alive; the data endpoints report that as 503).

Request

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

Response

StatusBodyMeaning
200sbom.SbomHealthok
defaultproblem-detailsrefused

200 body — 4 fields.

FieldInTypeAlwaysDescription
datastorebodyboolean—Datastore reports whether the shared datastore connection this subsystem reads and writes through is established.
servicebodystring—Service names the subsystem answering: always "sbom".
statusbodystring—Status is the liveness verdict: always "ok" here, because the process answering at all IS the liveness fact.
tablebodystring—Table is the fully-qualified datastore table the components live in.

Failure carries the platform error shape — see Errors.

Examples

hanzo sbom health
import { Configuration, SbomApi } from 'hanzoai';

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

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

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

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

let result = sbom_api::get_sbom_health(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.SbomApi;

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

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

Tool sbom, op get_sbom_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": "sbom",
         "arguments": {
           "op": "get_sbom_health",
           "input": {}
         }
       }
     }'

SBOM API · All Hanzo APIs · Interactive reference

Was this page useful?