Skip to main content
POST
/
api
/
v2
/
message
Mensajes de solicitud 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>",
  "interactive": {
    "type": "<string>",
    "body": {
      "text": "<string>"
    },
    "action": {
      "name": "<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 solicitud de ubicación muestran el texto del cuerpo y un botón de envío de ubicación. Cuando un usuario de WhatsApp toca el botón, se muestra una pantalla que el usuario puede usar para compartir la ubicación.
Una vez que el usuario comparte su ubicación, se activa un webhook de mensajes que contiene los detalles de la ubicación del usuario.
to
string
required
The recipient’s phone number or WhatsApp ID.
type
string
default:"interactive"
required
The overall type of message being sent.
interactive
object
required
The interactive message payload configuration.

Ejemplo

{
  "to": 5219876543210,
  "type": "interactive",
  "interactive": {
    "type": "location_request_message",
    "body": {
      "text": "<BODY_TEXT>"
    },
    "action": {
      "name": "send_location"
    }
  }
}