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 URL | https://api.hanzo.ai |
| Version | 1.0.0 |
| Operations | 5 |
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.aiEndpoints
Exec
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/exec | Execute code in a sandboxed session |
POST | /v1/exec/programmatic | Programmatic code execution (sibling of /v1/exec, same executor contract) |
Files
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/upload | Upload 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 |
How is this guide?