Hanzo
OpenapiSandbox

Open a terminal

Mints a SINGLE-USE ticket for one interactive terminal in this sandbox and returns `{ticket, expiresIn, url}`, where url is the terminal PAGE with the…

POST /v1/sandbox/{id}/terminal/ticket

Addresshttps://api.hanzo.ai/v1/sandbox/{id}/terminal/ticket
MethodPOST
Operationpost_sandbox_by_id_terminal_ticket
AuthAuthorization: Bearer $HANZO_API_KEY

Mints a SINGLE-USE ticket for one interactive terminal in this sandbox and returns {ticket, expiresIn, url}, where url is the terminal PAGE with the ticket already on it.

It exists because a browser carries no Authorization header into a WebSocket or an iframe, so a terminal cannot be authenticated the way every other route here is. The ticket is a credential MINTED for that one terminal: bound to this org and this sandbox, valid for thirty seconds, and gone the first time it is presented. A long-lived bearer in a query string would instead be written into every access log on the path.

Mint one per terminal, and mint a fresh one to reconnect.

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 ticket <id>

Sandbox API · All Hanzo APIs · Interactive reference

How is this guide?

On this page