POST
/
api
/
send
/
link-custom-preview
Enviar uma mensagem de texto com prévia de link PERSONALIZADA
curl --request POST \
  --url https://api.wappfy.com.br/api/send/link-custom-preview \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "chatId": "11111111111@c.us",
  "text": "Check this out! https://github.com/",
  "reply_to": null,
  "linkPreviewHighQuality": true,
  "preview": {
    "image": {
      "url": "https://github.com/devlikeapro/waha/raw/core/examples/waha.jpg"
    },
    "url": "https://github.com/",
    "title": "Your Title",
    "description": "Check this out, amazing!"
  },
  "session": "session"
}'
{}

Authorizations

apikey
string
header
required

Apikey

Body

application/json
chatId
string
required
Example:

"11111111111@c.us"

text
string
default:Check this out! https://github.com/
required

The text to send. MUST include the URL provided in preview.url

preview
object
required
session
string
required

O nome da sessão (instanceName)

Example:

"session"

reply_to
string

The ID of the message to reply to - false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA

Example:

null

Response

201 - application/json

The response is of type object.