WaConnect|API Documentation Dashboard Swagger UI

Location Messages

Send geographic coordinates with an optional name and address. The recipient will see an interactive map pin in their WhatsApp chat.

Endpoint

POST /api/messages/location

Request Body

FieldTypeRequiredDescription
tostringYesRecipient phone number with country code
latitudenumberYesLatitude of the location (-90 to 90)
longitudenumberYesLongitude of the location (-180 to 180)
namestringNoName of the location (e.g., business name)
addressstringNoStreet address of the location
phoneNumberIdstringNoSend from a specific number

Example Request

{
  "to": "15551234567",
  "latitude": 37.4220936,
  "longitude": -122.083922,
  "name": "Meta Headquarters",
  "address": "1 Hacker Way, Menlo Park, CA 94025"
}JSON

C# Example

var payload = new
{
    to = "15551234567",
    latitude = 37.4220936,
    longitude = -122.083922,
    name = "Meta Headquarters",
    address = "1 Hacker Way, Menlo Park, CA 94025"
};

var json = JsonSerializer.Serialize(payload);
var content = new StringContent(json, Encoding.UTF8, "application/json");

var response = await client.PostAsync(
    "https://app.waconnect.me/api/messages/location", content);C#