Skip to main content
POST
/
pty
/
{session_name}
/
control
Send a control command to a PTY session.
curl --request POST \
  --url https://api.runloop.ai/pty/{session_name}/control \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "resize",
  "cols": 123,
  "rows": 123,
  "signal": "<string>"
}
'
{
  "session_name": "<string>",
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_name
string
required

The client-chosen PTY session name. It must be non-empty and use only ASCII letters, digits, '-' and '_'.

Body

application/json
action
enum<string>
Available options:
resize,
signal,
close
cols
integer<int32>
rows
integer<int32>
signal
string

Response

OK

session_name
string
status
string