ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Mensagens → Enviar Mídia no Canal

AI-generated

Summary

Sends media messages to a ZapGate WhatsApp channel using a channel JID.

Inputs

  • jid (required) — The JID (Jabber ID) of the channel to send the media to.
  • type — The type of media. Defaults to 'image' if not specified.
  • caption — Optional caption text to accompany the media.
  • mediaSource — Source of the media file: 'url' (external URL), 'base64' (raw or data URL), or 'binary' (field from a previous item).
  • url — The external URL of the media file. Required when mediaSource is 'url'.
  • base64 — Base64 encoded media data or a data URL. Required when mediaSource is 'base64'.
  • binaryPropertyName — The name of the binary field in the input item. Required when mediaSource is 'binary'.
  • mimetype — The MIME type of the media. Required when mediaSource is 'base64' or 'binary'.
  • filename — The name of the file. Required when mediaSource is 'base64' or 'binary'.

Output shape

One item per input item, containing the API response data.

The node returns the response from the ZapGate API. If the input contains multiple items, one output item is generated for each input item.

Examples

Example 1: Send an image to a channel

Set Resource to 'Canais', Operation to 'Enviar Mídia no Canal'. Provide the channel JID, select mediaSource as 'base64', and paste the base64 data of the image.

Example 2: Send a video to a channel

Set 'type' to 'video'. Use a URL for the media (mediaSource='url') and provide the video's URL in the 'url' field.

Links

Discussion