Skip to main content
POST
/
io.pocketenv.sandbox.exposeVscode
Expose an instance of VS Code for a sandbox. This allows users to access a web-based version of VS Code that is connected to their sandbox environment, enabling them to edit code, manage files, and perform other development tasks directly from their browser.
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.exposeVscode \
  --header 'Authorization: Bearer <token>'
{
  "previewUrl": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

OK

previewUrl
string

The preview URL for the exposed port.