> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hookmyapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Request user location

> Ask the user to share their current location.

```bash theme={null}
curl -X POST "https://gateway.hookmyapp.com/meta/v22.0/${WHATSAPP_PHONE_NUMBER_ID}/messages" \
  -H "Authorization: Bearer ${WHATSAPP_ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
  "messaging_product": "whatsapp",
  "to": "15551234567",
  "type": "interactive",
  "interactive": {
    "type": "location_request_message",
    "body": {
      "text": "Please share your location so we can estimate delivery."
    },
    "action": {
      "name": "send_location"
    }
  }
}'
```

## Response handling

When the user shares their location, your webhook receives:

```json theme={null}
{
  "type": "location",
  "location": {
    "latitude": 37.7749,
    "longitude": -122.4194,
    "name": "Optional name",
    "address": "Optional address"
  }
}
```

## Use cases

* Delivery services requesting drop-off locations
* Store locators finding the nearest branch
* Field-service appointments and event check-ins
