WAClient
POST

Send Location

Send a geographic location pin. 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": "META68B6ED90CXXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Response
{
    "status": "success",
    "message": "Success",
    "message_payload": {
        "messaging_product": "whatsapp",
        "messages": [
            {
                "id": "wamid.xxx",
                "message_status": "accepted"
            }
        ]
    }
}
ParameterDescription
numberPhone with country code (e.g. 201234567890)
typeMust be location
messageJSON: name, degreesLatitude, degreesLongitude
instance_idMeta Cloud instance ID
access_tokenYour access token

Command Palette

Search documentation endpoints.

Esc