POST
/
v1
/
sessions
/
{sessionId}
/
keyboard
/
shortcut
curl --request POST \
  --url https://api.anchorbrowser.io/v1/sessions/{sessionId}/keyboard/shortcut \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "keys": [
    "Ctrl",
    "a"
  ],
  "holdTime": 100
}'
{
  "status": "success"
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

sessionId
string
required

The ID of the browser session

Body

application/json
keys
string[]
required

Array of keys to press simultaneously

Example:
["Ctrl", "a"]
holdTime
integer
default:0

Time to hold the keys down in milliseconds

Example:

100

Response

200
application/json
Shortcut performed successfully
status
string
Example:

"success"