WA Client
POST

Send Location

Send a geographic location pin. Requires the Message templates plan feature.

API endpoint
https://waclient.com/api/send
Example:
curl -X POST \
  'https://waclient.com/api/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "number": "20100981XXXX",
    "type": "location",
    "message": {
        "name": "Cairo Downtown",
        "degreesLatitude": 30.0594999999999998863131622783839702606201171875,
        "degreesLongitude": 31.2229999999999989768184605054557323455810546875
    },
    "instance_id": "META68B6ED90CXXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Response
{
    "status": "success",
    "message": "Success",
    "message_payload": {
        "messaging_product": "whatsapp",
        "messages": [
            {
                "id": "wamid.xxx",
                "message_status": "accepted"
            }
        ]
    }
}
ParameterDescription
numberRecipient phone number with country code
typeMust be location
messageJSON: name, degreesLatitude, degreesLongitude
instance_idMeta Cloud instance ID
access_tokenYour access token
Only delivers if the customer messaged you within the last 24 hours. Outside that window, use Meta Templates.

Command Palette

Search documentation endpoints.

Esc