Skip to main content
POST
/
v1
/
browsers
/
{id}
/
send-keys
Send Keys
curl --request POST \
  --url https://api.example.com/v1/browsers/{id}/send-keys/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "keys": "<string>"
}
'
{
  "success": true,
  "message": "Keys sent successfully"
}

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.

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

Authorization: Bearer YOUR_API_KEY
Self-hosted open source deployments do not require authentication.

Path Parameters

id
string
required
The browser ID returned from Create Session.

Request Body

keys
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.

Response

success
boolean
Whether the keys were sent successfully.
message
string
Confirmation message.

Example

curl -X POST https://api.rustybrowser.com/v1/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/send-keys/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "keys": "Backspace" }'
{
  "success": true,
  "message": "Keys sent successfully"
}