The WhatsApp API supports sending location messages:
PARAMETER | FORMAT | REQUIRED | DESCRIPTION | DEFAULT |
latitude | double | Yes | Latitude | |
longitude | double | Yes | Longitude | |
locationName | String | Optional | Location Name | |
address | String | Optional | Address |
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",
}' \