ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Grupos → Enviar Documento

AI-generated

Summary

Sends a document to a WhatsApp group through the ZapGate instance. Choose a media source, provide the document and the group JID as the recipient, and optionally add a caption; the operation requires the ZapGate API credentials.

Inputs

  • Número (required) — Group JID (for example, 120363123456789012@g.us).
  • Legenda — Optional caption for the document.
  • Origem da Mídia (required) — Choose URL, Base64 / Texto, or Binário (campo do item).
  • URL da Mídia (required) — Document URL when the media source is URL.
  • Base64 (required) — Base64 data, optionally as a data URL, when the media source is Base64 / Texto.
  • Campo Binário (required) — Name of the input item's binary property when the media source is Binário; defaults to data.
  • MIME Type — Optional MIME type for Base64 or binary input; otherwise inferred from a data URL or binary metadata, with application/octet-stream as fallback.
  • Nome do Arquivo — Optional filename for Base64 or binary input; defaults to file if not supplied.

Output shape

A list of items, one per input item, each containing the ZapGate API response as JSON.

Uses the instance ID and an admin API key or instance token from ZapGate credentials. Sends a POST request to the instance's send-document endpoint with document media and optional caption. On failure, stops with an error unless Continue On Fail is enabled, in which case that item's output contains an error field.

Links

Discussion