Send a location
POST /v1/messages/location — a pin on the map.
Notes
latitudemust be between −90 and 90,longitudebetween −180 and 180. A JSON number or a numeric string both work —21.1702and"21.1702"are equivalent.nameandaddressare optional to you. Under the hood both are always sent, as empty strings if you omit them, because WhatsApp requires both fields to be present.nameis capped at 255 characters,addressat 512.- This is a static pin, not live location sharing. There is no way to send a moving location that updates.
Example
Authorizations
Your API key, sent in an apikey request header. Never in the URL, never as a Bearer token.
Body
Which of your connected numbers to send FROM. Copy it from your numbers screen in the portal, or from GET /v1/instances. It must belong to your account.
"3f9c1a2b-7d4e-4c81-9f0a-2b6d5e8c1a34"
The recipient, with country code and no leading zero — for example 919876543210. Spaces, dashes, brackets and a leading + are accepted and stripped; 6 to 15 digits must remain.
"919876543210"
Between -90 and 90. A numeric string such as "21.1702" is accepted too.
-90 <= x <= 9021.1702
Between -180 and 180. A numeric string is accepted too.
-180 <= x <= 18072.8311
Place name shown on the pin, for example your shop. Sent as an empty string when omitted.
255"Our showroom"
Street address shown under the name. Sent as an empty string when omitted.
512"Ring Road, Surat"
Send this message as a reply, quoting an earlier one. Use the data.message_id returned by a previous send.
128"3EB0C1D2F4A5B6C7D8E9"
Set true when the quoted message is one you sent from this number. Only valid together with quoted_message_id.

