Hanzo
OpenapiVisor

Message a bot, or stop it, by naming the action in the path

Dispatches one verb against a bot the caller's org owns.

POST /v1/visor/compute/bots/{id}/{action}

Addresshttps://api.hanzo.ai/v1/visor/compute/bots/{id}/{action}
MethodPOST
Operationpost_visor_compute_bots_by_id_by_action
AuthAuthorization: Bearer $HANZO_API_KEY

Dispatches one verb against a bot the caller's org owns. message runs the bot's bound agent with the request body as the message and streams the agent's answer back VERBATIM — the upstream body, its content type and its status — so a message is a real agent run, recorded, billed and traced exactly like any other, under the caller's own identity rather than a fabricated one. stop and pause are the same single honest capability: they halt the runtime by unbinding the agent while LEAVING THE MACHINE UP, so the bot stops answering but keeps costing — rebind to resume, or delete the bot to tear it down. Stopping is idempotent; a bot with no binding still reports stopped.

Org-scoped and fails closed: a validated principal is required (403 without one) and the bot is addressed under the caller's OWN org, so another tenant's id is not reachable. An unknown action is a clean 400 naming the three it accepts, never a silent no-op, and messaging a bot with no bound agent is a 400.

Request

2 fields.

FieldInTypeRequiredDescription
idpathstringyes
actionpathstringyes

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 has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Visor API · All Hanzo APIs · Interactive reference

How is this guide?

On this page