Skip to main content
POST
Send a text message with CUSTOM link preview

Description

This endpoint allows you to send messages with links that include custom previews. You can define the title, description and image that will appear in the link preview, instead of using WhatsApp’s automatic preview.

Body

Body Parameters

Status Codes

  • 200 - Link with custom preview sent successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized session
  • 404 - Session not found

Usage Example

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Body

application/json
chatId
string
required
Example:

"5511999999999@c.us"

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

Message text. MUST include the URL provided in preview.url

preview
object
required
session
string
required

Session name (instanceName)

Example:

"my-session"

reply_to
string

Message ID you want to reply to

Example:

null

Response

201 - application/json

The response is of type object.