/v1/phones/{phone}/swipePOSTPOST /v1/leases/{lease}/swipe
it is a human-like flick, lifted while still moving. No lease, and AssistiveTouch like
POST /v1/phones/{phone}/tap. Only on the unix socket.ghosthand tunnel url --new-token. The unix socket needs no tokenapplication/jsonrequired0.5Min: 0Max: 10.25Min: 0Max: 10.5Min: 0Max: 10.25Min: 0Max: 1180Min: 16Max: 10000title and detail are for people.curl -X POST "https://ghosthand.dev/macs/studio/v1/phones/<phone>/swipe" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "from": { "x": 0.5, "y": 0.25 }, "to": { "x": 0.5, "y": 0.25 }, "durationMs": 180 }'
{ "code": "device-leased", "title": "iPhone leased by another client", "status": 409, "detail": "Tommy's iPhone is in use by another lease:\n ses_456 (book a table on OpenTable), acquired 2 min ago, last used 10 s ago (tap)\nDecide first: if that task is still active, give up or tell the user the iPhone is busy." }