List versions

Returns one flow's versions, newest first.

GET /v1/auto/flows/{id}/versions

Addresshttps://api.hanzo.ai/v1/auto/flows/{id}/versions
MethodGET
Operationget_auto_flows_by_id_versions
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one flow's versions, newest first. The optional limit query bounds the page.

Request

2 fields.

FieldInTypeRequiredDescription
idpathstringyesID is the flow whose versions to list, from the path.
limitqueryinteger—Limit bounds the page (default 200, maximum 1000).

Response

StatusBodyMeaning
200auto.versionPageok
defaultproblem-detailsrefused

200 body — 36 fields.

FieldInTypeAlwaysDescription
databodyauto.FlowVersion[]—Data is the page of versions, newest first.
data[].createdbodyinteger (int64)—
data[].displayNamebodystring—
data[].flowIdbodystring—
data[].idbodystring—
data[].schemaVersionbodystring—
data[].statebodystring—
data[].triggerbodyauto.FlowTrigger—
data[].trigger.displayNamebodystring—
data[].trigger.namebodystring—
data[].trigger.nextActionbodyauto.FlowAction—
data[].trigger.nextAction.displayNamebodystring—
data[].trigger.nextAction.namebodystring—
data[].trigger.nextAction.nextActionbodyauto.FlowAction—
data[].trigger.nextAction.settingsbodyauto.StepSettings—
data[].trigger.nextAction.settings.actionNamebodystring—
data[].trigger.nextAction.settings.inputbodyobject—
data[].trigger.nextAction.settings.input.*bodyany—
data[].trigger.nextAction.settings.pieceNamebodystring—
data[].trigger.nextAction.settings.pieceVersionbodystring—
data[].trigger.nextAction.settings.triggerNamebodystring—
data[].trigger.nextAction.skipbodyboolean—
data[].trigger.nextAction.typebodystring—PIECE | CODE | ROUTER | LOOP_ON_ITEMS
data[].trigger.nextAction.validbodyboolean—
data[].trigger.settingsbodyauto.StepSettings—
data[].trigger.settings.actionNamebodystring—
data[].trigger.settings.inputbodyobject—
data[].trigger.settings.input.*bodyany—
data[].trigger.settings.pieceNamebodystring—
data[].trigger.settings.pieceVersionbodystring—
data[].trigger.settings.triggerNamebodystring—
data[].trigger.strategybodystring—
data[].trigger.typebodystring—PIECE_TRIGGER | EMPTY
data[].trigger.validbodyboolean—
data[].updatedbodyinteger (int64)—
data[].validbodyboolean—

Failure carries the platform error shape — see Errors.

Examples

hanzo auto flows versions get <id>
import { Configuration, AutoApi } from 'hanzoai';

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

resp, _, err := client.AutoAPI.GetAutoFlowsByIdVersions(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::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_flows_by_id_versions(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AutoApi;

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

var result = new AutoApi(client).getAutoFlowsByIdVersions();
curl https://api.hanzo.ai/v1/auto/flows/<id>/versions \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP reaches auto through the auto tool, which names its 14 operations with its own verbs — this one among them, under a name only MCP 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"
         }
       }
     }'

Auto API · All Hanzo APIs · Interactive reference

Was this page useful?