Performs a mouse drag from start to end coordinates.
cURL
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 }
left
right
true
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 }'
API key authentication. Get your key at orgo.ai/workspaces
Computer ID
Start X coordinate
Start Y coordinate
End X coordinate
End Y coordinate
Mouse button
Drag duration in seconds
Drag performed