OpenapiFunctions
Is the NAMES of the secrets the caller org's functions mount.
Is the NAMES of the secrets the caller org's functions mount.
GET /v1/functions/secrets
| Address | https://api.hanzo.ai/v1/functions/secrets |
| Method | GET |
| Operation | get_functions_secrets |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Is the NAMES of the secrets the caller org's functions mount.
Values are NEVER read or returned — this surface knows which names a function asks for and nothing about what is behind them, which is what makes it safe to list at all. One row per distinct (namespace, name).
Request
GET /v1/functions/secrets takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | secretList | ok |
200 body — 4 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
secrets | body | secretView[] | — | Secrets is one row per distinct (namespace, name) a function mounts. |
secrets[].mountedBy | body | string | — | MountedBy is a function that mounts it. |
secrets[].name | body | string | — | Name is the environment variable the function mounts. |
secrets[].namespace | body | string | — | Namespace is the group the mounting function belongs to. |
Failure carries the platform error shape — see Errors.
Examples
hanzo functions secretsimport { Configuration, FunctionsApi } from 'hanzoai';
const api = new FunctionsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getFunctionsSecrets();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import FunctionsApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = FunctionsApi(client).get_functions_secrets()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.FunctionsAPI.GetFunctionsSecrets(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, functions_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = functions_api::get_functions_secrets(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.FunctionsApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new FunctionsApi(client).getFunctionsSecrets();curl https://api.hanzo.ai/v1/functions/secrets \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches functions through the functions tool, which names its 10 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "list_functions"
}
}
}'How is this guide?