Skip to main content
POST
/
v1
/
sandboxes
/
{id}
/
desktop
/
press
Press a key with optional modifiers
import requests

url = "https://api.13-215-85-171.sslip.io/v1/sandboxes/{id}/desktop/press"

payload = { "key": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Sandbox ID (e.g. sb_a1b2c3d4)

Body

application/json
key
string
required
modifiers
string[]

Modifier keys (e.g. ["ctrl", "shift"])

Response

204

Key pressed