ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Informações → Enviar Mídia no Canal

AI-generated

Summary

Send media content to a specified WhatsApp channel using the ZapGate API instance.

Inputs

  • jid (required) — The JID (WhatsApp ID) of the channel to which media will be sent.
  • type — Type of the media to send; options are 'image' or 'video', default is 'image'.
  • caption — Optional caption text to accompany the media.
  • mediaSource (required) — Source of the media content, which can be a URL, Base64/text, or binary field from a previous node.
  • url — URL of the media to send, required if mediaSource is 'url'.
  • base64 — Base64 or data URL string of the media, required if mediaSource is 'base64'.
  • binaryPropertyName — The name of the binary property in the input item holding the media data, required if mediaSource is 'binary'.
  • mimetype — MIME type of the media when using base64 or binary input, optional but recommended.
  • filename — Filename for the media when using base64 or binary input, optional.

Output shape

a single JSON object representing the API response for the media send request

The operation requires the ZapGate API credentials and the instance ID configured. It uses HTTP POST with authentication tokens scoped to the instance. The media data is included in the request body according to the selected media source. The response is the JSON result from the API call indicating success or failure.

Examples

Example 1: Sending an image URL with an optional caption to a WhatsApp channel

Set 'jid' with the target channel ID, 'type' as 'image', set 'mediaSource' to 'url', provide the media 'url', and optionally add a 'caption'. Execute the operation to send the image.

Example 2: Sending a base64 encoded video file to a WhatsApp channel

Set 'jid' with the target channel ID, 'type' as 'video', 'mediaSource' to 'base64', provide the base64 data in 'base64', optionally specify 'mimetype' and 'filename'. Execute the operation to send the video media.

Links

Discussion