Skip to main content
POST
https://api.telepie.com/v1/
/
whatsapp
Location Request Messages
curl --request POST \
  --url https://api.telepie.com/v1/whatsapp \
  --header 'apikey: <api-key>'
Location request messages contain body text and a Send location button that users can tap. Tapping the button displays a location sharing screen which the user can then use to share their location. To send a location request message, first assemble an interactive object with text you wish to display in the message:

Required Body Parameters

body
object
required
Your message’s body. Maximum of 1024 characters.
action
object
required
Inside action, you must nest:
  1. a name field with button name like (send_location).

Optional Attributes

Maximum of 60 characters.
curl -P - /v1/whatsapp\
-H 'apikey':'string'
-H "Content-Type: application/json" \
-d '{
    "recipient_type": "individual",
    "from": "+91XXXXXXXXXX",
    "to": "+91XXXXXXXXXX",
    "type": "interactive",
    "interactive": {
    "type": "location_request_message",
    "body": {
        "text": "Can you please send your location"
    },
    "footer": {
        "text": " Tapping the button you can share your location."
    },
    "action": {
        "name": "send_location"
    }
    }
}