OpenapiFunctions
Is what calls the caller org's functions — one row per function.
Is what calls the caller org's functions — one row per function.
GET /v1/functions/triggers
| Address | https://api.hanzo.ai/v1/functions/triggers |
| Method | GET |
| Operation | get_functions_triggers |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Is what calls the caller org's functions — one row per function.
Every function has exactly one trigger today, its HTTP invoke endpoint, so this is the function list read as "how is each of these reached".
Request
GET /v1/functions/triggers takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | triggerList | ok |
200 body — 7 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
triggers | body | triggerView[] | — | Triggers is one row per function, describing how it is reached. |
triggers[].enabled | body | boolean | — | whether it currently fires |
triggers[].functionName | body | string | — | the function it calls |
triggers[].id | body | string | — | the trigger's handle |
triggers[].name | body | string | — | a human label for it |
triggers[].target | body | string | — | the path it calls |
triggers[].type | body | string | — | what kind of trigger it is; HTTP is the only one today |
Failure carries the platform error shape — see Errors.
Examples
hanzo functions triggersimport { Configuration, FunctionsApi } from 'hanzoai';
const api = new FunctionsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getFunctionsTriggers();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_triggers()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.FunctionsAPI.GetFunctionsTriggers(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_triggers(&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).getFunctionsTriggers();curl https://api.hanzo.ai/v1/functions/triggers \
-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?