v46

latestOpenAPI 3.0.3raw.githubusercontent.com2025-05-151340367.2 KB
Message Controller

Send Location

Send Location

post/message/sendLocation/{instance}

Path parameters

instancestring required

Name of the instance

Request body

numberstring required

Number to receive the message (with country code)

namestring required

Name the city

addressstring required

Location address

latitudenumber required

Latitude location

longitudenumber required

Longitude location

delayinteger

Presence time in milliseconds before sending message

linkPreviewboolean

Shows a preview of the target website if there's a link within the message

mentionsEveryOneboolean

Mentioned everyone when the message send

mentionedstring[]

Numbers to mention

Response

Created

messageTimestampstring

The timestamp of the message, represented as a string.

statusstring

The status of the message, such as sent, received, or pending.

Example response

{
  "key": {
    "remoteJid": "553198296801@s.whatsapp.net",
    "fromMe": true,
    "id": "BAE51B6FF4470AF9"
  },
  "message": {
    "locationMessage": {
      "degreesLatitude": -19.93359,
      "degreesLongitude": -43.93851,
      "name": "Palácio da Liberdade",
      "address": "Praça da Liberdade, Belo Horizonte, MG 30140-050",
      "contextInfo": {}
    }
  },
  "messageTimestamp": "1717779606",
  "status": "PENDING"
}