Tools/Navigation

Swipes from a start coordinate to an end coordinate over the given duration in milliseconds. An optional humanize flag applies human-like jitter and curved paths on devices that support it. With holdMs > 0 the request returns 422 when combined with humanize, when duration + holdMs exceeds 9000 ms, or on devices that do not support it.

post/devices/{deviceId}/swipe

Request

  • Base URL
    https://api.mobilerun.ai
  • URL
    https://api.mobilerun.ai/devices/{deviceId}/swipe
  • Auth
    HTTP bearer

Path parameters

deviceIdstring required

Headers

X-Device-Display-IDinteger

Request body

$schemastring uri

A URL to the JSON Schema for this object.

durationinteger required

Swipe duration in milliseconds

endXinteger required
endYinteger required
holdMsinteger

Keep the finger at the end point for holdMs and suppress fling before lifting, so content moves by about the finger travel. Supported on Android cloud phones.

humanizeboolean

Request human-like input where supported by the device. Defaults to false.

startXinteger required
startYinteger required
stealthboolean

Deprecated: use humanize. Both names must agree when supplied together.

Example request

{
  "$schema": "https://example.com/schemas/SwipeArgs.json"
}

Response

No Content

Changes

    • info

      the endpoint scheme security bearerAuth was removed from the API

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property default value false was removed

    • info

      request property deprecated

    • info

      endpoint added