> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rustybrowser.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Keys

> Send keyboard input to the browser

## Description

Sends one or more key presses to the browser. Supports special keys like `Backspace`, `Enter`, `Tab`, and `ArrowUp`. Multiple keys can be sent as a comma-separated string.

## Authentication

Open-source deployments do not require authentication by default. If your server config enables `X-API-Key`, include that header with the request.

## Path Parameters

<ParamField path="id" type="string" required>
  The browser ID returned from Create Session.
</ParamField>

## Request Body

<ParamField body="keys" type="string" required>
  Key or comma-separated list of keys to send. Repeat a key by appending a count, e.g. `Backspace10` to press Backspace 10 times.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the keys were sent successfully.
</ResponseField>

<ResponseField name="message" type="string">
  Confirmation message.
</ResponseField>

## Example

```bash theme={null}
curl -X POST http://localhost:8080/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/send-keys/ \
  -H "Content-Type: application/json" \
  -d '{ "keys": "Backspace" }'
```

<ResponseExample>
  ```json 200 Single Key theme={null}
  {
    "success": true,
    "message": "Keys sent successfully"
  }
  ```

  ```json 200 Multiple Keys theme={null}
  {
    "success": true,
    "message": "Keys sent successfully"
  }
  ```
</ResponseExample>
