Messages
Send Location
Send geographic coordinates with name and address
POST
Send Location
Auth:
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
string
required
Instance name (e.g.,
$Instance_Name).Headers
string
required
TokenAccount or TokenInstance.string
required
application/jsonRequest body
string
required
Destination: phone (
5511999999999) or JID (@s.whatsapp.net, @lid, @g.us, @newsletter).float64
required
Geographic latitude in decimal degrees (e.g.,
-23.5614). Recommended precision is 4 to 6 decimal places.float64
required
Geographic longitude in decimal degrees (e.g.,
-46.6558).string
required
Main label displayed on the location card (highlighted line). Usually the place/establishment name.
string
required
Address/secondary description displayed below
name on the card.int
default:"0"
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.
string
ID of the message to be quoted (reply). The original message must belong to the same instance and have been saved in the database.
boolean
default:"false"
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.string
default:"api"
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
Error envelope: