Skip to main content
POST
/
api
/
v2
/
message
Mensaje de ubicación
curl --request POST \
  --url https://whatsapp.heybot.cloud/api/v2/message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "<string>",
  "type": "<string>",
  "location": {
    "latitude": "<string>",
    "longitude": "<string>",
    "name": "<string>",
    "address": "<string>"
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.heybot.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Los mensajes de ubicación te permiten enviar las coordenadas de latitud y longitud de una ubicación a un usuario de WhatsApp.
to
string
required
The recipient’s phone number or WhatsApp ID.
type
string
default:"location"
required
The overall type of message being sent.
location
object
required
The location payload configuration.

Ejemplo

{
  "to": 5219876543210,
  "type": "location",
  "location": {
    "latitude": "<LOCATION_LATITUDE>",
    "longitude": "<LOCATION_LONGITUDE>",
    "name": "<LOCATION_NAME>",
    "address": "<LOCATION_ADDRESS>"
  }
}