v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-06-11720209.3 KB
Message Controller

Send Location

Send Location

post/message/sendLocation/{instance}

Path parameters

instancestring required

ID of the instance to connect

Request body

numberstring required

Number to receive the message (with country code)

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"
}