Skip to main content
POST
/
api
/
v2
/
message
Mensajes con documento
curl --request POST \
  --url https://whatsapp.heybot.cloud/api/v2/message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": 123,
  "type": "<string>",
  "document": {
    "id": 123,
    "link": "<string>",
    "caption": "<string>",
    "filename": "<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.

Tipos de documentos admitidos

Tipo de documentoExtensiónTipo MIMETamaño máximo
Texto.txttext/plain100 MB
Microsoft Excel.xlsapplication/vnd.ms-excel100 MB
Microsoft Excel.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet100 MB
Microsoft Word.docapplication/msword100 MB
Microsoft Word.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document100 MB
Microsoft PowerPoint.pptapplication/vnd.ms-powerpoint100 MB
Microsoft PowerPoint.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation100 MB
PDF.pdfapplication/pdf100 MB
Solo los tipos de documentos mencionados anteriormente son oficialmente compatibles y se garantiza que se muestren correctamente en el cliente de WhatsApp. Se pueden enviar otros tipos de archivos a través de la API, pero no se admiten y es posible que no se manejen como se espera.
to
integer
default:5219876543210
required
Número de WhatsApp del destinatario en formato internacional, sin símbolos ni espacios.
type
string
required
Tipo de mensaje a enviar. Para este endpoint debe ser document.
document
object
default:"document"
required
Objeto con el contenido del mensaje.

Ejemplo

{
  "to": 5219876543210,
  "type": "document",
  "document": {
    "link": "https://www.luckyshrub.com/invoices/FmOzfD9cKf/lucky-shrub-invoice.pdf",
    "caption": "Lucky Shrub Invoice",
    "filename": "lucky-shrub-invoice.pdf"
  }
}