ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Sessão → Enviar Documento

AI-generated

Summary

Send a document to a WhatsApp recipient through the configured ZapGate instance. Choose a media source and provide the document URL, base64 data, or an incoming binary field; an optional caption is included with the message.

Inputs

  • Número (required) — Recipient phone number with country code (DDI), digits only; for groups, use the group JID.
  • Legenda — Optional caption for the document.
  • Origem da Mídia (required) — Select URL (default), 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, either raw or as a data URL, when the media source is Base64 / Texto.
  • Campo Binário (required) — Name of the incoming 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, then defaults to application/octet-stream.
  • Nome do Arquivo — Optional filename for base64 input; defaults to file. For binary input, the incoming binary filename is used when available, then this value, then file.

Output shape

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

Sends a POST request to the instance's /send-document endpoint using instance authentication. The operation requires ZapGate credentials, including a configured instance ID and an admin API key or instance token. Errors stop execution unless Continue On Fail is enabled, in which case that input item produces json.error.

Examples

Example 1: Send an incoming PDF binary field with an optional caption.

Choose media source Binário, set Campo Binário to the incoming binary property name, enter the recipient number, and optionally set Legenda.

Links

Discussion