List openapi.json

Serves the OpenAPI document for the routes this process actually answers — generated from the live router at request time, not from a checked-in file that can disagree with it.

GET /v1/openapi.json

Addresshttps://api.hanzo.ai/v1/openapi.json
MethodGET
Operationget_openapi.json
AuthAuthorization: Bearer $HANZO_API_KEY

Serves the OpenAPI document for the routes this process actually answers — generated from the live router at request time, not from a checked-in file that can disagree with it.

On an app it is that app's own surface; on the fleet's public endpoint it is the composed document for every mounted app. Unauthenticated by design: a client has to be able to read the contract before it holds a credential, and the document grants nothing.

Rendered once and served as bytes thereafter, so the route table's immutability is what makes a repeat request a memcpy rather than a re-encode of a megabyte document.

The whole document is megabytes, so ask for less. ?capability=<name> returns only that capability's operations and the schemas they reach (?tag=<name> is the same filter); ?operation=<operationId> returns one operation; ?path=<prefix> returns the operations whose address starts with that prefix. They combine. A slice is a valid document on its own. GET /v1 lists the capabilities and GET /v1/<name> lists one capability's operations, so a reader can walk from the index down to a single schema without fetching the rest. A query nothing matches is 404.

Request

GET /v1/openapi.json takes no parameters and no body — the credential is the whole request.

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo openapi.json get
import { Configuration, OpenapiApi } from 'hanzoai';

const api = new OpenapiApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getOpenapiJson();
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_openapi_json()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.OpenapiAPI.GetOpenapiJson(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_openapi_json(&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).getOpenapiJson();
curl https://api.hanzo.ai/v1/openapi.json \
  -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.