WhatsApp (WABA)
Send WhatsApp Location
Send a location pin to a contact via WhatsApp Business API
POST
Sends a location message (map pin) to a contact through a WABA channel. The contact will receive an interactive map pin in WhatsApp.
Headers
Your API key for authentication.
Body
UUID of the WABA channel to send from. Use List Channels to get available channel IDs.
UUID of the contact to message.
Latitude coordinate of the location (e.g.
19.4326).Longitude coordinate of the location (e.g.
-99.1332).Name of the location (e.g.
ContactShip HQ). Displayed as the pin title.Address of the location (e.g.
Paseo de la Reforma 505, CDMX). Displayed below the pin title.UUID of an existing thread. If provided,
channel_id and contact_id are inferred automatically.Whether to save the message in the conversation thread.
Response
true if the location was sent successfully.Error Codes
400 Bad Request— Missing fields, invalid coordinates, or non-WABA channel401 Unauthorized— Invalid or missing API key403 Forbidden— Channel does not belong to your organization404 Not Found— Contact not found500 Internal Server Error— Meta API error
