Hanzo
OpenapiExec

Upload a file into an execution session

Takes a multipart upload and writes the file into the session's sandbox, so a later run can read it.

POST /v1/exec/upload

Addresshttps://api.hanzo.ai/v1/exec/upload
MethodPOST
Operationpost_exec_upload
AuthAuthorization: Bearer $HANZO_API_KEY

Takes a multipart upload and writes the file into the session's sandbox, so a later run can read it. Answers the session id and the identifier the file is addressed by; session_id in the form joins an existing session instead of opening one.

The body is multipart/form-data, which is why this is not a typed operation: every non-empty typed body is decoded as JSON.

Request

The document declares no body for POST /v1/exec/upload. The handler is typed in cloud but its shape is not yet emitted, so the fields are not listed here — ask the MCP door's describe for post_exec_upload, which answers from the running route.

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.


Exec API · All Hanzo APIs · Interactive reference

How is this guide?

On this page