Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Message → Send Media

AI-generated

Summary

Send a media message to a WhatsApp recipient through the wa-instance API. Optionally include media metadata, set a client reference, configure an idempotency key, or check instance readiness before sending.

Inputs

  • To (required) — Phone number, PN JID, or LID JID. The backend can resolve PN/LID when RECIPIENT_LOOKUP is enabled.
  • Media URL (required) — URL of the media to send.
  • Additional Options — Optional media metadata: MIME Type, Caption, File Name, Audio Duration (Ms), and Client Ref. Idempotency Key sets the request's X-Idempotency-Key; if blank, Generate Automatically creates one per n8n item by default. Preflight Readiness Check optionally checks readiness first, using Dependencies Health by default or the looser Status mode.

Output shape

A single n8n item containing the backend's JSON response for the send request.

Sends one media message per input item via POST /send/media. Empty optional values are omitted from the request. Errors fail the node unless Continue On Fail is enabled, in which case the item contains an error object.

Links

Discussion