Skip to main content
POST
/
pty
/
{session_name}
/
control
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

const ptyControlResultView = await client.pty.control('session_name');

console.log(ptyControlResultView.session_name);
{
  "session_name": "<string>",
  "status": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt

Use this file to discover all available pages before exploring further.

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. Must be 1..=256 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