Location

This page describes location messages

Location messages allow sending a location’s latitude and longitude coordinates to a WhatsApp user.

Location Messages Request

POST https://waba-v2.360dialog.io/messages

Use the messages endpoint to send a location message to a WhatsApp user.

Headers

Name
Value

Content-Type

application/json

Authorization

D360-API-KEY

Body Example

{
  "messaging_product": "whatsapp",
  "to": "PHONE_NUMBER",
  "type": "location",
  "location": {
    "longitude": LONG_NUMBER,
    "latitude": LAT_NUMBER,
    "name": LOCATION_NAME,
    "address": LOCATION_ADDRESS
  }
}

Response

Location Object

Name
Description

longitude

Required.

Longitude of the location.

latitude

Required.

Latitude of the location.

name

Required.

Name of the location.

address

Required.

Address of the location.

Last updated

Was this helpful?