Send input to the Android device

Send input to the Android device

Sends one action from the Mobile view's device bar to the running device, only while that view (viewToken) holds control (control route; 409 CONTROL_REQUIRED otherwise, checked in the same box command as the input): a hardware key (back, home, recents, volume-up, volume-down, power), rotate (portrait ↔ landscape), or screenshot, which captures the screen and saves it to vault storage under android-screenshots/, returned as saved. 409 when the device is not running or the device refused the action.

POST/api/sandbox/android-device/input
Body
vaultIdstringrequired
workflowIdstring
agentSessionIdstring
actionenumrequired

One of: back, home, recents, rotate, volume-up, volume-down, power, screenshot

viewTokenstring

Request

curl
curl -X POST https://trickest.io/api/sandbox/android-device/input \
  -H "Authorization: Token $TRICKEST_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ }'

Responses

200Done
successboolean
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.