Device API / Operation directory
ADB and debugging
Explore Android debugging capabilities and check their availability for your Appcloud account.
Send an Android key
Send the adbKey action with back, home, recents, volumeUp or volumeDown.
Terminal
curl -X POST "$APPCLOUD_BASE/api/v1/devices/$DEVICE_ID/actions" -H "Authorization: Bearer $APPCLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"adbKey","value":"home"}'5 of 5 operations
Android controls
Type into the focused fieldPOST /api/v1/devices/{id}/actions
Terminal
curl -X POST "$APPCLOUD_BASE/api/v1/devices/$DEVICE_ID/actions" \
-H "Authorization: Bearer $APPCLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"inputText","value":"Hello from Appcloud"}'Tap at screen coordinatesPOST /api/v1/devices/{id}/actions
Terminal
curl -X POST "$APPCLOUD_BASE/api/v1/devices/$DEVICE_ID/actions" \
-H "Authorization: Bearer $APPCLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"tap","value":"120 240"}'Swipe between two points over a duration in millisecondsPOST /api/v1/devices/{id}/actions
Terminal
curl -X POST "$APPCLOUD_BASE/api/v1/devices/$DEVICE_ID/actions" \
-H "Authorization: Bearer $APPCLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"swipe","value":"100 500 100 100 350"}'Hold a point for a duration in millisecondsPOST /api/v1/devices/{id}/actions
Terminal
curl -X POST "$APPCLOUD_BASE/api/v1/devices/$DEVICE_ID/actions" \
-H "Authorization: Bearer $APPCLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"longPress","value":"120 240 800"}'Press an Android navigation or volume keyPOST /api/v1/devices/{id}/actions
Terminal
curl -X POST "$APPCLOUD_BASE/api/v1/devices/$DEVICE_ID/actions" \
-H "Authorization: Bearer $APPCLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"adbKey","value":"home"}'