Hanzo
OpenapiSandbox

The terminal, as a page

A complete, self-contained terminal — xterm inline, no other origin — that opens its own socket and runs a shell in this sandbox.

GET /v1/sandbox/{id}/terminal

Addresshttps://api.hanzo.ai/v1/sandbox/{id}/terminal
MethodGET
Operationget_sandbox_by_id_terminal
AuthAuthorization: Bearer $HANZO_API_KEY

A complete, self-contained terminal — xterm inline, no other origin — that opens its own socket and runs a shell in this sandbox. Embed it in an iframe and there is nothing else to build.

ticket is the credential from the POST above and arg names the session (see the socket below); both are simply carried through to the socket. The page is NOT gated — it is inert markup and does not redeem the ticket, because a ticket is spent once and a page that spent it would hold a credential that no longer opens anything.

When the terminal is up it posts {source:"hanzo-term", ready:true} to its parent frame, so a host can tell a live terminal from a page that failed into something else. frame-ancestors admits our own brands' hosts and nothing further.

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 sandboxes terminal get <id>

Sandbox API · All Hanzo APIs · Interactive reference

How is this guide?

On this page