Resize PTY session
Change the terminal dimensions of a PTY session.
Change the terminal dimensions of a PTY session.
Authorization
BearerAuth API key passed as a Bearer token in the Authorization header.
Alternatively, use the leap0-authorization header.
In: header
Path Parameters
Unique sandbox identifier.
Unique session identifier.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
New terminal columns.
New terminal rows.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.leap0.dev/v1/sandbox/string/pty/string/resize" \ -H "Content-Type: application/json" \ -d '{ "cols": 200, "rows": 50 }'{ "id": "my-terminal", "cwd": "/home/user", "envs": { "property1": "string", "property2": "string" }, "cols": 120, "rows": 40, "created_at": "2019-08-24T14:15:22Z", "active": true, "lazy_start": true}{ "message": "string", "errors": [ { "field": "string", "error": "string" } ]}{ "message": "string"}{ "message": "string"}Connect to PTY session (WebSocket) GET
Upgrade to a WebSocket connection for interactive terminal I/O. Send terminal input as binary WebSocket messages. Receive terminal output as binary WebSocket messages. The connection stays alive until closed by either side or the sandbox is deleted.
Start LSP server POST
Start a language server for the given language and project. Sends the LSP `initialize` and `initialized` handshake automatically. Supported languages: `python` (pyright), `typescript`/`javascript` (typescript-language-server).

