Skip to main content
POST
/
v1
/
phones
/
{phone_id}
/
pinch
Pinch
curl --request POST \
  --url https://api.example.com/v1/phones/{phone_id}/pinch

Documentation Index

Fetch the complete documentation index at: https://docs.tapkit.ai/llms.txt

Use this file to discover all available pages before exploring further.

Execute a pinch gesture for zooming or rotating.

Request

curl -X POST https://api.tapkit.ai/v1/phones/{phone_id}/pinch \
  -H "X-API-Key: joot_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"x": 500, "y": 1000, "action": "pinch_out", "duration_ms": 1000}'

Request Body

{
  "x": 500,
  "y": 1000,
  "action": "pinch_out",
  "duration_ms": 1000
}
FieldTypeDefaultDescription
xintegerrequiredCenter X coordinate
yintegerrequiredCenter Y coordinate
actionstringrequiredPinch action type
duration_msinteger1000Gesture duration in milliseconds

Action Types

ActionDescription
pinch_outZoom in (fingers apart)
pinch_inZoom out (fingers together)
rotate_cwRotate clockwise
rotate_ccwRotate counter-clockwise