> ## 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.

# Pinch

> Pinch/zoom/rotate gestures

Execute a pinch gesture for zooming or rotating.

## Request

```bash theme={null}
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

```json theme={null}
{
  "x": 500,
  "y": 1000,
  "action": "pinch_out",
  "duration_ms": 1000
}
```

| Field         | Type      | Default  | Description                      |
| ------------- | --------- | -------- | -------------------------------- |
| `x`           | `integer` | required | Center X coordinate              |
| `y`           | `integer` | required | Center Y coordinate              |
| `action`      | `string`  | required | Pinch action type                |
| `duration_ms` | `integer` | `1000`   | Gesture duration in milliseconds |

### Action Types

| Action       | Description                 |
| ------------ | --------------------------- |
| `pinch_out`  | Zoom in (fingers apart)     |
| `pinch_in`   | Zoom out (fingers together) |
| `rotate_cw`  | Rotate clockwise            |
| `rotate_ccw` | Rotate counter-clockwise    |

## Related Endpoints

* [Pinch by Description](/api-reference/phones/pinch-select) - Pinch using natural language
* [Double Tap](/api-reference/phones/double-tap) - Alternative zoom method
