Hanzo
OpenapiFlow

Run executes one of the caller's workflows synchronously: the graph runs in the…

Run executes one of the caller's workflows synchronously: the graph runs in the flow service and the response carries the run's session and outputs.

POST /v1/flow/runs

Addresshttps://api.hanzo.ai/v1/flow/runs
MethodPOST
Operationpost_flow_runs
AuthAuthorization: Bearer $HANZO_API_KEY

Run executes one of the caller's workflows synchronously: the graph runs in the flow service and the response carries the run's session and outputs. A graph whose components fail reports the product's own error. Runs are bounded by the product's five-minute sync ceiling.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
inputbodystringInput is the run's chat input value, handed to the graph's input node.
sessionbodystringSession groups runs into one conversation; the product mints one when absent and returns it in the response.
tweaksbodyanyTweaks override component fields for this run only (the product's tweaks document), verbatim.
workflowbodystringWorkflow is the UUID of the workflow to run.

Response

StatusBodyMeaning
200ok

200 body — 1 field.

FieldInTypeAlwaysDescription
(body)bodyanyyes

Failure carries the platform error shape — see Errors.

Examples

hanzo flow runs create

Flow API · All Hanzo APIs · Interactive reference

How is this guide?

On this page