Skip to main content
POST
/
phones
/
{phone_id}
/
tap-and-hold
Tap and Hold
curl --request POST \
  --url https://api.example.com/phones/{phone_id}/tap-and-hold
Execute a long press (tap and hold) at the specified coordinates.

Request

curl -X POST https://api.tapkit.ai/phones/{phone_id}/tap-and-hold \
  -H "X-API-Key: TK_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"x": 100, "y": 200, "duration_ms": 1000}'

Request Body

{
  "x": 100,
  "y": 200,
  "duration_ms": 1000
}
FieldTypeDefaultDescription
xintegerrequiredX coordinate in pixels
yintegerrequiredY coordinate in pixels
duration_msinteger1000Hold duration in milliseconds

Use Cases

  • Open context menus
  • Initiate drag operations
  • Rearrange items
  • Show previews (3D Touch/Haptic Touch)