cURL
curl --request POST \ --url http://localhost:3000/api/v1/terminal/create \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "cols": 80, "rows": 24, "cwd": "<string>" } '
{ "success": true, "data": { "session": { "id": "<string>", "pid": 123, "cols": 123, "rows": 123, "cwd": "<string>", "createdAt": "2023-11-07T05:31:56Z" } } }
Create a new terminal session
Session cookie authentication
Terminal columns
Terminal rows
Working directory
Terminal session created
Show child attributes
Session ID
Process ID
Current working directory