Skip to main content
POST
/
v1
/
browsers
/
{id}
/
hold-key
Hold Key
curl --request POST \
  --url https://api.example.com/v1/browsers/{id}/hold-key/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>"
}
'
{
  "success": true,
  "message": "Key held 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

Holds a key down for a specified duration in milliseconds. Useful for long-press interactions or triggering hold-based browser shortcuts.

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

key
string
required
The key to hold. Append the duration in milliseconds directly to the key name, e.g. Backspace3000 holds Backspace for 3 seconds.

Response

success
boolean
Whether the key was held successfully.
message
string
Confirmation message.

Example

curl -X POST https://api.rustybrowser.com/v1/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/hold-key/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "key": "Backspace3000" }'
{
  "success": true,
  "message": "Key held successfully"
}