Skip to main content
POST
/
phones
/
{phone_id}
/
pan
Pan
curl --request POST \
  --url https://api.example.com/phones/{phone_id}/pan
Execute a pan (slow scroll) gesture in a direction.

Request

curl -X POST https://api.tapkit.ai/phones/{phone_id}/pan \
  -H "X-API-Key: TK_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"x": 500, "y": 1000, "direction": "up", "duration_ms": 500}'

Request Body

{
  "x": 500,
  "y": 1000,
  "direction": "up",
  "duration_ms": 500
}
FieldTypeDefaultDescription
xintegerrequiredStarting X coordinate
yintegerrequiredStarting Y coordinate
directionstringrequired"up", "down", "left", or "right"
duration_msinteger500Pan duration in milliseconds

Use Cases

  • Precise scrolling
  • Controlled navigation
  • Reading while scrolling