Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Message → Preview Send

AI-generated

Summary

Preview a text or media message by sending its details to the backend for policy and normalization validation, without sending the message.

Inputs

  • To (required) — Recipient phone number, PN JID, or LID JID. The backend may resolve PN/LID if recipient lookup is enabled.
  • Content Mode (required) — For text previews, choose a single text (default) or an ordered sequence of up to 20 texts. In sequence mode, blank entries are omitted.
  • Text / Texts (required) — The text content to preview, according to Content Mode.
  • Preview Type (required) — Choose Text (default) or Media.
  • Media URL (required) — For media previews, the media URL to validate.
  • Additional Options — For media previews, optional audio duration in milliseconds, caption, and MIME type. Empty values are omitted.

Output shape

A single item containing the backend's JSON preview response.

The operation POSTs to the backend preview endpoint and does not send a WhatsApp message. The exact response fields depend on the backend. Errors fail the node unless Continue On Fail is enabled, in which case an error object is returned.

Links

Discussion