POST
/
computers
/
{id}
/
drag
Mouse Drag
curl --request POST \
  --url https://www.orgo.ai/api/computers/{id}/drag \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "start_x": 123,
  "start_y": 123,
  "end_x": 123,
  "end_y": 123,
  "button": "left",
  "duration": 0.5
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer token

Path Parameters

id
string
required

Computer/Project name (e.g., computer-abc123)

Body

application/json
start_x
integer
required

Starting X coordinate

start_y
integer
required

Starting Y coordinate

end_x
integer
required

Ending X coordinate

end_y
integer
required

Ending Y coordinate

button
enum<string>
default:left

Mouse button to use for dragging

Available options:
left,
right
duration
number
default:0.5

Duration of the drag operation in seconds

Required range: 0.1 <= x <= 5

Response

Action completed successfully

success
boolean
Example:

true