1. Home
  2. Docs
  3. WhatsApp
  4. Send WhatsApp Message
  5. Location Message

Location Message

The WhatsApp API supports sending location messages:

PARAMETERFORMATREQUIREDDESCRIPTIONDEFAULT
latitudedoubleYesLatitude
longitudedoubleYesLongitude
locationNameStringOptionalLocation Name
addressStringOptionalAddress

Sample request using CURL:

$ curl -X POST https://api.geniq.io/rest/v1/whatsapp/messages \
-H 'Authorization: Bearer [TOKEN]' \
-H 'Content-Type: application/json' \
-d '{
    "recipient":"6591234567",                
    "type":"location",
    "latitude": 55.7047,
    "longitude": 13.191,
    "locationName": "Test Location",
    "address": "Scheelevägen 17",
    "reference": "12345",
}' \