WhatsApp Link Previews: preview_url vs Explicit Card Fields
A WhatsApp link preview is not the same request on every API. Meta’s official text-message API uses text.preview_url: true to ask the client to attempt a preview of a URL in text.body. UnifyPort instead documents message.type: "link_preview" with text and a structured card. Do not copy the flag into the other API or treat a missing thumbnail as proof that sending failed.
Two contracts for a similar-looking message
The Meta text-message reference describes an attempted preview, not guaranteed rendering. If the body contains multiple URLs, the client renders only the first. If preview_url is omitted or a preview cannot be retrieved, the client renders a clickable link instead.
UnifyPort’s shared message-send fields define an explicit link_preview object. The page also documents text sending, but its shared fields cover more than ordinary text.
| Decision | Meta official text message | UnifyPort WhatsApp link preview |
|---|---|---|
| Message type | type: "text" | message.type: "link_preview" |
| Visible body | text.body | message.text |
| Preview input | text.preview_url: true | message.link_preview object |
| Target URL | URL in the body | link_preview.url, also included exactly in the body |
| Card metadata | Preview retrieval described by Meta | Explicit title and image URL required for WhatsApp; description optional |
| Safe conclusion | Requesting a preview does not guarantee it appears | Valid fields and acceptance do not prove recipient-side appearance |
Key decision: keep the API contract attached to the sending account. Use the official path when you need the official business sender and its capabilities. UnifyPort is a separate unofficial interface, not a different host for the same Meta request.
What an explicit WhatsApp card needs
For UnifyPort, the shared structure requires a URL and non-blank message.text. WhatsApp adds requirements documented in that same send reference:
message.textmust contain the exactmessage.link_preview.urlstring.titleandimage_urlmust be non-empty.titleis limited to 255 Unicode characters;descriptionto 1024. These are this API’s WhatsApp send rules, not universal limits for every platform.- Optional
descriptioncan be an empty string, but notnull. - Target and image URLs must be absolute HTTP(S) URIs with a hostname and no whitespace. Bracketed addresses must be IPv6 literals. Values are preserved verbatim; syntactic validity does not establish accessibility.
- Keep the card and its required text together, without mixing in other message payloads.
An editor should therefore maintain one approved target URL and reuse that exact string in both places. If the operator changes tracking parameters or encoding, update and review both fields before dispatch. Do not silently normalize one value while leaving the other unchanged.
The destination page and preview image are different resources. A page URL belongs in link_preview.url; the image source belongs in link_preview.image_url. Neither turns this into an image-message request. If the actual goal is to send an image or document, use the separate media-send workflow rather than attaching leftover message.url or caption fields to a card.
Diagnose a missing preview at the right layer
Meta’s link-preview guidance says WhatsApp attempts to generate previews and relies on properties supplied by link owners. It explicitly warns that fallback behavior is not guaranteed. For a native preview problem, investigate the page and the documented preview requirements rather than assuming an API authentication failure.
For an explicit UnifyPort card, begin with the actual serialized request:
| Observation | First investigation |
|---|---|
| A Meta flag appears inside a UnifyPort draft | Correct the request contract; do not guess a passthrough field |
| Body and card URL differ | Compare the original strings, including query parameters and encoding |
| Title or image URL is missing | Apply WhatsApp-specific requirements, not only the shared optional-field labels |
| The image works only in a signed-in browser | Check access from the retrieval context; browser success is insufficient |
| The send was accepted but no thumbnail is visible | Separate message delivery evidence from card appearance |
| The request timed out | Preserve the uncertain outcome before considering another send |
These are investigation steps, not a promise that one metadata change forces every client to redraw a card. Do not automatically resend a message solely to repair presentation.
Record the HTTP status and request_id when returned, without logging credentials or sensitive signed URLs. The request-tracing guide explains why request identifiers help diagnosis but do not provide duplicate-send protection.
Choose and test without promising identical rendering
Before enabling a card editor, confirm the chosen account and deployment support the intended message type. A shared schema does not establish equal support for WhatsApp Protocol, Telegram, LINE, or other channels.
For UnifyPort, sending uses POST /v1/messages with server-side X-Api-Key authentication, plus account_id, to, and message. data.status: accepted means queued for delivery to the provider, not a confirmed thumbnail, delivery, or read.
Suggested checks include mismatched URLs, a missing title, an inaccessible image, a null description, and a lost HTTP response. Follow with one authorized test conversation and observe the recipient’s actual display. These are proposed checks; no live test outcome is claimed here.
FAQ
Can I set preview_url on a UnifyPort text message?
The documented explicit-card path uses message.type: "link_preview" and message.link_preview. Meta’s text.preview_url is a different contract; do not assume it works as a UnifyPort option.
Does a clickable URL without a card mean Meta rejected the message?
No. Meta documents clickable-link rendering when the flag is omitted or preview retrieval fails. Presentation alone is not a send-result diagnosis.
Does supplying an image URL guarantee a preview?
No. A valid image URL does not prove successful retrieval or recipient-side rendering. Keep request validation, acceptance, delivery, and visual inspection separate.
Next step and sources
Compare your editor’s output with the UnifyPort message-send reference before enabling explicit cards. Keep native Meta templates separate from UnifyPort templates.
Sources checked on 2026-11-30:
Turn messaging integration into a stable product pipeline.
Start by sending through one API, then bring every inbound message back into your business system with standard events.