WAClient
POST

Send Location

Send a static location pin or a live location. Use type location for a pin, or type live_location. Requires the Message templates plan feature.

API endpoint
https://api.waclient.com/send
Example:
curl -X POST \
  'https://api.waclient.com/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "201234567890",
    "type": "location",
    "message": {
        "name": "Cairo Downtown",
        "degreesLatitude": 30.0595,
        "degreesLongitude": 31.223
    },
    "instance_id": "6A4B02A1XXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Example:
curl -X POST \
  'https://api.waclient.com/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "201234567890",
    "type": "live_location",
    "message": {
        "name": "Live",
        "degreesLatitude": 30.0595,
        "degreesLongitude": 31.223,
        "live": true
    },
    "instance_id": "6A4B02A1XXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Response
{
    "status": "success",
    "message": "Success",
    "message_payload": {
        "key": {
            "remoteJid": "[email protected]",
            "fromMe": true,
            "id": "ABC123"
        },
        "status": "PENDING"
    }
}
ParameterDescription
number / chat_idProvide one. number = digits only (201234567890). chat_id = JID with @ — Phone: [email protected]. Group: 120363…@g.us. Channel: 120363…@newsletter.
typelocation or live_location
message / templateJSON: degreesLatitude, degreesLongitude, name — add live: true for live location
instance_idYour instance ID
access_tokenYour access token

Command Palette

Search documentation endpoints.

Esc