Skip to main content
POST
/
message
/
sendLocation
/
{instance}
Send Location
curl --request POST \
  --url https://api.botifiy.com/message/sendLocation/{instance} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "number": "<string>",
  "name": "<string>",
  "address": "<string>",
  "latitude": 123,
  "longitude": 123,
  "delay": 123,
  "linkPreview": true,
  "mentionsEveryOne": true,
  "mentioned": [
    "<string>"
  ],
  "quoted": {
    "key": {
      "id": "<string>"
    },
    "message": {
      "conversation": "<string>"
    }
  }
}
'
{
  "key": {
    "remoteJid": "<string>",
    "fromMe": true,
    "id": "<string>"
  },
  "message": {
    "locationMessage": {
      "degreesLatitude": 123,
      "degreesLongitude": 123,
      "name": "<string>",
      "address": "<string>",
      "contextInfo": {}
    }
  },
  "messageTimestamp": "<string>",
  "status": "<string>"
}

Authorizations

apikey
string
header
required

Path Parameters

instance
string
required

Name of the instance

Body

application/json
number
string
required

Number to receive the message (with country code)

name
string
required

Name the city

address
string
required

Location address

latitude
number
required

Latitude location

longitude
number
required

Longitude location

delay
integer

Presence time in milliseconds before sending message

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

mentionsEveryOne
boolean

Mentioned everyone when the message send

mentioned
string[]

Numbers to mention

quoted
object

Response

201 - application/json

Created

key
object
message
object
messageTimestamp
string
status
string