Skip to main content
POST
Hold Key

Description

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

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

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