Start LSP server
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).
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).
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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Language identifier: python, typescript, or javascript.
Path to the project directory inside the sandbox.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.leap0.dev/v1/sandbox/string/lsp/start" \ -H "Content-Type: application/json" \ -d '{ "language_id": "python", "path_to_project": "/home/user/project" }'{ "success": true}{ "message": "string", "errors": [ { "field": "string", "error": "string" } ]}{ "message": "string"}
