ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Inbox (painel) → Enviar Documento

AI-generated

Summary

Sends a document to a WhatsApp chat through the ZapGate instance. Choose the recipient and provide the media as a URL, Base64 content, or an incoming binary field; you can also add a caption.

Inputs

  • Número (to) (required) — Recipient phone number with country code, digits only, or a group JID.
  • Legenda (caption) — Optional document caption.
  • Origem da Mídia (mediaSource) — Select URL, Base64 / Texto, or Binário (campo do item). Defaults to URL.
  • URL da Mídia (url) — Document URL; used when the media source is URL.
  • Base64 (base64) — Base64 content or a Base64 data URL; used when the media source is Base64 / Texto.
  • Campo Binário (binaryPropertyName) — Name of the incoming item's binary field; defaults to data.
  • MIME Type (mimetype) — Optional MIME type for Base64 or binary input. Binary input uses its existing MIME type when available.
  • Nome do Arquivo (filename) — Optional filename for Base64 or binary input; defaults to file if omitted.

Output shape

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

Uses the ZapGate API credentials, including the instance ID and an admin API key or instance token. Sends a POST request to the instance's /send-document endpoint; failures stop execution unless Continue On Fail is enabled, in which case the item's json contains an error.

Links

Discussion