Skip to content

Start LSP server

POST
/v1/sandbox/{sandboxID}/lsp/start

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).

sandboxID
required
string

Unique sandbox identifier.

object
language_id
required

Language identifier: python, typescript, or javascript.

string
Example
python
path_to_project
required

Path to the project directory inside the sandbox.

string
Example
/home/user/project

LSP server started.

object
success
required
boolean
Example
true

Bad request – validation error.

object
message
required

Summary message, e.g. “Invalid request”.

string
errors
required
Array<object>
object
field
required

JSON field name that failed validation (e.g. “path”, “command”).

string
error
required

Human-readable description of the validation failure.

string

Unauthorized – invalid or missing API key.

object
message
required

Human-readable error message.

string