List config

Returns the runtime configuration for the KMS console.

GET /v1/kms/config

Addresshttps://api.hanzo.ai/v1/kms/config
MethodGET
Operationget_kms_config
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the runtime configuration for the KMS console.

What the console needs before anyone has signed in: the brand, the OIDC issuer it authenticates against, the API base for this subsystem and the path of the login exchange.

Public on purpose, and it holds nothing sensitive — it is deliberately kept under this subsystem's own namespace rather than under an admin prefix, so a gateway that admin-gates the admin routes cannot break the console's legitimate pre-login fetch.

Request

GET /v1/kms/config takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200kms.kmsConfigok
defaultproblem-detailsrefused

200 body — 4 fields.

FieldInTypeAlwaysDescription
apiBasebodystring—APIBase is this subsystem's own prefix, /v1/kms.
brandbodystring—Brand is the deployment's brand, so the console renders as the right product.
issuerbodystring—Issuer is the OIDC issuer the console authenticates against.
loginPathbodystring—LoginPath is the credential exchange's address.

Failure carries the platform error shape — see Errors.

Examples

hanzo kms config
import { Configuration, KmsApi } from 'hanzoai';

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

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

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

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

let result = kms_api::get_kms_config(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.KmsApi;

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

var result = new KmsApi(client).getKmsConfig();
curl https://api.hanzo.ai/v1/kms/config \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool kms, op get_kms_config — 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": "kms",
         "arguments": {
           "op": "get_kms_config",
           "input": {}
         }
       }
     }'

KMS API · All Hanzo APIs · Interactive reference

Was this page useful?