Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Connect to PTY session

Establish a WebSocket connection streaming PTY output and accepting terminal input.

GET/api/pty/{ptyID}/connect
Path parameters
ptyIDobjectrequired
Query parameters
location[directory]string
location[workspace]string
cursorstring
ticketstring
Responses
200Success
boolean
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
403ForbiddenError
_tagstringrequired
Allowed:ForbiddenError
messagestringrequired
404PtyNotFoundError
_tagstringrequired
Allowed:PtyNotFoundError
ptyIDstringrequired
messagestringrequired
Request
curl -X GET "/api/pty/%5Bobject%20Object%5D/connect"
Response
true