Hanzo
OpenapiGuide

Have the Business AI actually do the step for you

Executes one step of the caller org's journey through that principal's OWN tool plane and answers the action log — `{step, events, state}` — so the caller…

POST /v1/guide/steps/{id}/do

Addresshttps://api.hanzo.ai/v1/guide/steps/{id}/do
MethodPOST
Operationpost_guide_steps_by_id_do
AuthAuthorization: Bearer $HANZO_API_KEY

Executes one step of the caller org's journey through that principal's OWN tool plane and answers the action log — {step, events, state} — so the caller sees every tool call the agent made and where the step ended up. This is the ONE executing path in guide: suggest and chat advise, this acts, and the work is charged to the calling principal's ledger.

Ask for it live and the same actions arrive as Server-Sent Events instead, on either of two triggers — Accept: text/event-stream or ?stream=1. The stream opens with a comment, emits one frame per action as it happens, and closes with an end frame carrying ok and the final state. The streamed run is detached and bounded at 120 seconds, so it finishes on its own clock once the response has begun.

An agent that FAILS is not a failed request: the JSON answer still comes back 200 with error beside the events it did manage, and the stream still ends with ok:false. The refusals are the ones before the agent runs — 409 with {error, step, blockedBy} for a step whose dependencies are unfinished, 404 for an id the journey does not contain, 403 without a validated org.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo guide steps do <id>

Guide API · All Hanzo APIs · Interactive reference

How is this guide?

On this page