Mensajes

Send text

POST
/messages/text

Autorización

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

Parámetros de header

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

Cuerpo de la petición

application/json
  1. body
to*string

Recipient: phone number with country code and area code, digits only (5581999999999; +, spaces and dashes are ignored), or the chatId (5581999999999@c.us, ...@lid, or a group ...@g.us). Brazilian phone numbers are checked on WhatsApp before sending.

text*string

The text. Supports WhatsApp formatting (*bold*, _italic_, ~strikethrough~).

Longitud1 <= length <= 65536
reply_to?string

Optional: the message_id of a message to reply to, quoting it.

replyTo?stringObsoleto

Old name for reply_to, still accepted. Use reply_to.

link_preview?boolean

Optional: true for WhatsApp to show a preview of the first link in the text. Without the field, the WhatsApp server default applies.

Cuerpo de la respuesta

Sent. Keep the message_id: it is what appears in the message.sent and message.status events.

application/json
  1. response
data*
curl -X POST 'https://app.wappfy.io/api/v1/messages/text' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "to": "5581999999999",  "text": "Olá! Seu pedido saiu para entrega."}'
{  "data": {    "message_id": "string",    "chat_id": "string"  }}