Hanzo
API Reference

Hanzo Exec API

Code Interpreter (\"Run Code\") surface on the unified cloud-api /v1 plane

Code Interpreter ("Run Code") surface on the unified cloud-api /v1 plane

Hanzo Exec API · All API references →

Base URLhttps://api.hanzo.ai
Version1.0.0
Operations5

Authentication

  • serviceKey — API key in header (X-API-Key)
  • bearerAuth — HTTP bearer

All Hanzo APIs share one bearer credential and common error and pagination conventions. See API conventions.

curl -H "Authorization: Bearer $HANZO_API_KEY" https://api.hanzo.ai

Endpoints

Exec

MethodEndpointDescription
POST/v1/execExecute code in a sandboxed session
POST/v1/exec/programmaticProgrammatic code execution (sibling of /v1/exec, same executor contract)

Files

MethodEndpointDescription
POST/v1/uploadUpload a file into a session
GET/v1/download/{id}Download a produced file by id
GET/v1/files/{session_id}List the files produced in a session

All Hanzo APIs · OpenAPI spec

How is this guide?

On this page