Skip to main content
POST
Send location

Overview

Sends a location message to a contact. The content.type field must be LOCATION and the coordinates are provided in the attachments array using latitude and longitude. The name and address fields are optional and allow displaying the place name and address directly in the message.
The API does not validate the latitude and longitude fields. Requests without these values will be accepted, but the message will not display the location correctly on WhatsApp. Always provide both fields.
This endpoint only works when the conversation window is open (24 hours).

Authorizations

Authorization
string
header
required

Secret Key generated in the Hub Message Security panel

Path Parameters

channelId
string
required

Channel ID

Example:

"YOUR_CHANNEL_ID"

Body

application/json
recipient
object
required

Recipient data

content
object
required
sender
object

Sender data (optional)

Response

Message sent successfully

messageId
string

Sent message ID