Release held key
POST/computers/{id}/key-up
Release a keyboard key that was previously pressed with key_down. The key name should match the corresponding key_down call.
Key names are case-insensitive: "shift", "Shift", and "SHIFT" all work.
Important: Always release modifier keys after use to prevent them from affecting subsequent actions.
Path Parameters
id: string
Body ParametersJSON
key: optional string
Key name to release. Case-insensitive. Examples: "shift", "ctrl", "a", "Enter"
tab_id: optional string
Optional tab ID for browser sessions (ignored for desktop sessions)
Returns
Release held key
curl https://api.tzafon.ai/computers/$ID/key-up \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TZAFON_API_KEY" \
-d '{
"key": "shift"
}'{
"error_message": "error_message",
"executed_tab_id": "executed_tab_id",
"page_context": {
"device_scale_factor": 0,
"is_main_tab": true,
"page_height": 0,
"page_width": 0,
"scroll_x": 0,
"scroll_y": 0,
"tab_id": "tab_id",
"title": "title",
"url": "url",
"viewport_height": 0,
"viewport_width": 0
},
"request_id": "request_id",
"result": {
"foo": "bar"
},
"status": "status",
"timestamp": "timestamp"
}Returns Examples
{
"error_message": "error_message",
"executed_tab_id": "executed_tab_id",
"page_context": {
"device_scale_factor": 0,
"is_main_tab": true,
"page_height": 0,
"page_width": 0,
"scroll_x": 0,
"scroll_y": 0,
"tab_id": "tab_id",
"title": "title",
"url": "url",
"viewport_height": 0,
"viewport_width": 0
},
"request_id": "request_id",
"result": {
"foo": "bar"
},
"status": "status",
"timestamp": "timestamp"
}