Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

Body

application/json
keys
string[]
required

List of key symbols to press. Each item should be a key symbol supported by xdotool (see X11 keysym definitions). Examples include "Return", "Shift", "Ctrl", "Alt", "F5". Items in this list could also be combinations, e.g. "Ctrl+t" or "Ctrl+Shift+Tab".

duration
integer
default:0

Duration to hold the keys down in milliseconds. If omitted or 0, keys are tapped.

Required range: x >= 0
hold_keys
string[]

Optional modifier keys to hold during the key press sequence.

Response

Keys pressed successfully