📤 Chatting

Send a text message with a CUSTOM link preview.

You can use regular /api/sendText if you wanna send auto-generated link preview.

post/api/send/link-custom-preview

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/send/link-custom-preview
  • Auth: API key in header X-Api-Key

Request body

chatIdstring required
textstring required

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

reply_tostring

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

linkPreviewHighQualityboolean
sessionstring required

Example request

{
  "chatId": "11111111111@c.us",
  "preview": {
    "image": {
      "url": "https://picsum.photos/1024"
    }
  }
}

Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.