---
title: "Perform keyboard interaction on a Computer."
method: POST
path: "/v1/devboxes/computers/{id}/keyboard_interaction"
tags: ["Computer", "Computer Interaction"]
---

# Perform keyboard interaction on a Computer.

`POST /v1/devboxes/computers/{id}/keyboard_interaction`

Perform the specified keyboard interaction on the Computer identified by the given ID.

## Path parameters

- `id` string, required

## Request body

- KeyboardInteraction
  - `action` 'key' | 'type', required
  - `text` string, nullable — The text to type or the key (with optional modifier) to press.

## Response `200`

OK

- ComputerInteractionResult
  - `output` string
  - `error` string
  - `latest_screenshot_base64_img` string

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/5f33221208c1/schema)
