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
Property | Type | Required | Description |
---|---|---|---|
sessionId | string | ✅ Yes | Authenticated session ID that will send the message |
jid | string | ✅ Yes | Recipient identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us for groups |
text | string | ✅ Yes | Message text accompanying the link |
preview | object | ✅ Yes | Object containing the custom preview information |
preview.url | string | ✅ Yes | Link URL |
preview.title | string | ✅ Yes | Title that will appear in the preview |
preview.description | string | ✅ Yes | Description that will appear in the preview |
preview.image | string | ❌ No | Preview image encoded in base64 |
Status Codes
200
- Link with custom preview sent successfully400
- Invalid parameters401
- Unauthorized session404
- Session not found
Usage Example
Authorizations
Your Wappfy API key (get it at dash.wappfy.com.br)
Body
application/json
Response
201 - application/json
The response is of type object
.