GET /v1/{name}

What the capability named in the path answers: every published operation, its operationId, its method and its address, and the sentence lifted from the handler that serves it — plus the way back to /v1.

GET /v1/{name}

Addresshttps://api.hanzo.ai/v1/{name}
MethodGET
Operationget_capability
AuthAuthorization: Bearer $HANZO_API_KEY

What the capability named in the path answers: every published operation, its operationId, its method and its address, and the sentence lifted from the handler that serves it — plus the way back to /v1.

It answers where the capability serves nothing at its own root. Where it does, that operation is the answer and is described at its own address; a client following the root index reaches the capability either way.

Unauthenticated, and scoped to the same customer surface the root is. A name that is not a published capability is answered exactly as any other unrouted address, so this cannot be asked whether something exists that it would not have listed.

Request

1 field.

FieldInTypeRequiredDescription
namepathstringyes

Response

StatusBodyMeaning
2XXIndexSuccess

2XX body — 11 fields.

FieldInTypeAlwaysDescription
_linksbodyobject—
_links.*bodyLink—
_links.*.hrefbodystring—
descriptionbodystring—
namebodystring—
operationsbodyOp[]—
operations[].hrefbodystring—
operations[].methodbodystring—
operations[].operationIdbodystring—
operations[].summarybodystring—
stagebodystring—

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.

import { Configuration, OpenapiApi } from 'hanzoai';

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

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

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

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

let result = openapi_api::get_capability(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.OpenapiApi;

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

var result = new OpenapiApi(client).getCapability();
curl https://api.hanzo.ai/v1/<name> \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP declares no tool for openapi — tools/list on https://api.hanzo.ai/v1/mcp names the products it does reach. Use HTTP or an SDK.


OpenAPI API · All Hanzo APIs · Interactive reference

Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.