Send Location API

Api Docs Sending Location Messages

Method : POST | GET

Endpoint: {{ url('/') }}/send-location

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
latitude string Yes Latitude ex 24.121231
longitude string Yes Longitude ex 55.1121221
full number No Show full response from WhatsApp

Example Without full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "latitude": "24.121231",
    "longitude": "55.1121221"
}

URL Request

{{ url('/') }}/send-location?api_key=1234567890&sender=62888xxxx&number=62888xxxx&latitude=24.121231&longitude=55.1121221

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "latitude": "24.121231",
    "longitude": "55.1121221",
    "full": 1
}

URL Request

{{ url('/') }}/send-location?api_key=1234567890&sender=62888xxxx&number=62888xxxx&latitude=24.121231&longitude=55.1121221&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "62888xxxx@c.us",
      "fromMe": true,
      "id": "3EB03AC0A048XXXXXXXXX"
    },
    "message": {
      "locationMessage": {
        "degreesLatitude": 24.121231,
        "degreesLongitude": 55.1121221
      }
    },
    "messageTimestamp": "1755630180"
  }
}