OpenapiAuto
Returns the caller org's run history, newest first.
Returns the caller org's run history, newest first.
GET /v1/auto/runs
| Address | https://api.hanzo.ai/v1/auto/runs |
| Method | GET |
| Operation | get_auto_runs |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the caller org's run history, newest first. The optional
flowId query narrows it to one flow and limit bounds the page.
Request
2 fields.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
flowId | query | string | — | FlowID narrows the history to one flow. |
limit | query | integer | — | Limit bounds the page (default 200, maximum 1000). |
Response
| Status | Body | Meaning |
|---|---|---|
200 | runPage | ok |
200 body — 9 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
data | body | FlowRun[] | — | Data is the page of runs, newest first. |
data[].created | body | integer | — | |
data[].finishTime | body | integer | — | |
data[].flowId | body | string | — | |
data[].flowVersionId | body | string | — | |
data[].id | body | string | — | |
data[].startTime | body | integer | — | |
data[].status | body | string | — | |
data[].updated | body | integer | — |
Failure carries the platform error shape — see Errors.
Examples
hanzo auto runs listimport { Configuration, AutoApi } from 'hanzoai';
const api = new AutoApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getAutoRuns();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AutoApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AutoApi(client).get_auto_runs()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.AutoAPI.GetAutoRuns(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, auto_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = auto_api::get_auto_runs(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AutoApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new AutoApi(client).getAutoRuns();curl https://api.hanzo.ai/v1/auto/runs \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches auto through the auto tool, which names its 11 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_auto_flows"
}
}
}'How is this guide?