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}
| Address | https://api.hanzo.ai/v1/{name} |
| Method | GET |
| Operation | get_capability |
| Auth | Authorization: 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.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | yes |
Response
| Status | Body | Meaning |
|---|---|---|
2XX | Index | Success |
2XX body — 11 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
_links | body | object | — | |
_links.* | body | Link | — | |
_links.*.href | body | string | — | |
description | body | string | — | |
name | body | string | — | |
operations | body | Op[] | — | |
operations[].href | body | string | — | |
operations[].method | body | string | — | |
operations[].operationId | body | string | — | |
operations[].summary | body | string | — | |
stage | body | string | — |
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.