Messages
Send Location
Send geographic coordinates with name and address
POST
Send Location
Auth:
Error envelope:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: no
Description
Sends a geographic location as a rich message (LocationMessage), with latitude, longitude, name (main label) and address (secondary line). The recipient sees a card with a map preview and “Open in maps” buttons. Supports replyTo, replyPrivate, delay (in seconds) and source. Does not support mentions.
Examples
Simple location
Sends a location card with the coordinates of Avenida Paulista (-23.5614, -46.6558), the name of the place and the full address. The recipient sees a map preview and can open it in their navigation app.
As a reply to a message
Sends the location card quoting a previous message viareplyTo. Useful for replying to a “where do we meet?” question while keeping the original message quoted.
Success response
Thecontent returns a textual representation of the location (📍 name\naddress\nLat: ..., Long: ...) saved to history, and messageType is fixed at location.
200 OK
Path parameters
Instance name (e.g.,
$Instance_Name).Headers
TokenAccount or TokenInstance.application/jsonRequest body
Destination: phone (
5511999999999) or JID (@s.whatsapp.net, @lid, @g.us, @newsletter).Geographic latitude in decimal degrees (e.g.,
-23.5614). Recommended precision is 4 to 6 decimal places.Geographic longitude in decimal degrees (e.g.,
-46.6558).Main label displayed on the location card (highlighted line). Usually the place/establishment name.
Address/secondary description displayed below
name on the card.Time in seconds to wait before sending. During the interval, the server sends the “typing…” indicator to the recipient and fires “paused” before the actual send.
ID of the message to be quoted (reply). The original message must belong to the same instance and have been saved in the database.
When
true and replyTo points to a message originating from a group, the reply is redirected to the original author’s private chat (keeping the quote). Ignored if the original message is not from a group.Origin identifier for traceability (e.g.,
crm, bot-suporte, n8n). Saved on the message record in the database and propagated to webhooks. When omitted, defaults to "api".Notes
delayis in seconds, not milliseconds.- The current validation rejects sends when both
latitudeandlongitudeare exactly0, the point(0, 0)in the Atlantic is rarely a legitimate intent and usually indicates a payload with a missing field. - Location messages do not support
mentionormentionAll. - “Live” location is not supported by this endpoint, only static locations.
- For BR numbers (starting with
55), the service automatically tries variations with and without the 9th digit.
Errors
| HTTP | Internal status | Message |
|---|---|---|
| 400 | , | Instance name is required |
| 400 | , | Invalid request body: <detail> |
| 400 | , | Number is required |
| 400 | , | Latitude and longitude are required |
| 400 | , | Name is required |
| 400 | , | Address is required |
| 400 | invalid_number | Invalid phone number format: <detail> |
| 500 | send_failed | Failed to send message: <reason> |
| 404 | , | Instance not found |
| 503 | disconnected | Instance is not connected to WhatsApp |