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
}

Documentation Index

Fetch the complete documentation index at: https://docs.orgo.ai/llms.txt

Use this file to discover all available pages before exploring further.

Performs a mouse drag from start to end coordinates.

Path parameters

id
string
required
Computer ID (UUID).

Body parameters

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.

Response

success
boolean
true if the drag was performed.
action
string
Always drag.

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
  }'

Response

{
  "success": true,
  "action": "drag",
  "details": { "start_x": 100, "start_y": 100, "end_x": 300, "end_y": 200 }
}

Errors

StatusMeaning
400Missing required coordinate, or computer instance not available.
401Missing or invalid API key.
403You do not have access to this computer.
404Computer not found.
500Upstream desktop agent failure.

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