Skip to main content
POST
/
computers
/
{id}
/
drag
Drag mouse
curl --request POST \
  --url https://www.orgo.ai/api/computers/{id}/drag \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "start_x": 100,
  "start_y": 100,
  "end_x": 300,
  "end_y": 200,
  "duration": 0.5
}
'
{
  "success": true
}
Performs a mouse drag from start to end coordinates.

Path parameters

id
string
required
Computer ID.

Request

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
string
default:"left"
Mouse button: left or right.
duration
number
default:"0.5"
Drag duration in seconds.

Response

success
boolean
true if drag was performed.

Example

curl -X POST https://www.orgo.ai/api/computers/a3bb189e-8bf9-3888-9912-ace4e6543002/drag \
  -H "Authorization: Bearer $ORGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "start_x": 100,
    "start_y": 100,
    "end_x": 300,
    "end_y": 200,
    "duration": 0.5
  }'

Response

{
  "success": true
}

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Path Parameters

id
string
required

Computer ID

Body

application/json
start_x
integer
required

Start X coordinate

start_y
integer
required

Start Y coordinate

end_x
integer
required

End X coordinate

end_y
integer
required

End Y coordinate

button
enum<string>
default:left

Mouse button

Available options:
left,
right
duration
number
default:0.5

Drag duration in seconds

Response

Drag performed

success
boolean
Example:

true