Skip to main content
POST
/
phones
/
{phone_id}
/
pinch
Pinch
curl --request POST \
  --url https://api.example.com/phones/{phone_id}/pinch
Execute a pinch gesture for zooming or rotating.

Request

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

Request Body

{
  "x": 500,
  "y": 1000,
  "action": "pinch_out"
}
FieldTypeDescription
xintegerCenter X coordinate
yintegerCenter Y coordinate
actionstringPinch action type

Action Types

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