cURL
curl --request POST \ --url http://localhost:3001/api/v1/terminal/{taskId}/create \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "startupCommand": "<string>" } '
{ "sessionId": "<string>", "taskId": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Create a new terminal session for a task
Session cookie authentication
Task ID to associate the terminal session with
Optional command to run on session start
Terminal session created