Codevisor Server
Api reference

POST Terminals

POST/v1/terminals

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

sessionId*string
cwd*string
cols*number|||
rows*number|||
shell?string|null
args?array<string>|null
attachOnly?boolean|null

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/terminals" \  -H "Content-Type: application/json" \  -d '{    "sessionId": "string",    "cwd": "string",    "cols": 0,    "rows": 0  }'
{  "terminalId": "string",  "websocketPath": "string",  "nextOutputSeq": 0}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}