---
title: "Open Persistent Environment Remote Session"
method: POST
path: "/api/v1/environments/{environment_id}/remote-session"
tags: ["environments"]
---

# Open Persistent Environment Remote Session

`POST /api/v1/environments/{environment_id}/remote-session`

## Request

- Base URL: `https://api.komos.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.komos.ai/api/v1/environments/{environment_id}/remote-session`
- Auth: none declared

## Path parameters

- `environment_id` string, uuid, required

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- EnvironmentRemoteSessionRequest
  - `viewport_width` integer, nullable
  - `viewport_height` integer, nullable

## Response `200`

Successful Response

- EnvironmentRemoteSessionResponse
  - `environment_id` string, uuid, required
  - `sandbox_id` string, required
  - `vnc_ws` string, required
  - `state` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/komos/apis/komos-backend.md) · [All operations](https://skmtc.dev/komos/apis/komos-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/komos/apis/komos-backend/revisions/f10e153fab38?raw)
