Skip to main content
POST
/
v1
/
devboxes
/
computers
/
{id}
/
keyboard_interaction
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 response = await client.devboxes.computers.keyboardInteraction('id', { action: 'key' });

console.log(response.error);
{
  "output": "<string>",
  "error": "<string>",
  "latest_screenshot_base64_img": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The Computer ID.

Body

application/json
action
enum<string>
required

The keyboard action to perform.

Available options:
key,
type
text
string | null

The text to type or the key (with optional modifier) to press.

Response

200 - application/json

OK

output
string
error
string
latest_screenshot_base64_img
string