ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Histórico → Enviar Documento

AI-generated

Summary

Sends a document to a WhatsApp number or group through the ZapGate instance. Choose a media source and provide the document; optionally add a caption.

Inputs

  • Número (required) — Recipient phone number with country code, digits only, or a group JID.
  • Legenda — Optional document caption.
  • Origem da Mídia (required) — Select URL (default), Base64 / text, or a binary field from the incoming n8n item.
  • URL da Mídia (required) — Document URL when the media source is URL.
  • Base64 (required) — Base64 content or a data URL when the media source is Base64 / text.
  • Campo Binário (required) — Name of the incoming item's binary property when the media source is binary; defaults to data.
  • MIME Type — Optional MIME type for Base64 or binary input; inferred from a data URL or binary metadata when available.
  • Nome do Arquivo — Optional filename for Base64 input; binary input uses the binary filename when available.

Output shape

One output item per input item, containing the ZapGate API response as JSON.

Uses the configured ZapGate credentials and instance ID. Sends a POST request to the instance's send-document endpoint with the document and optional caption. Errors stop execution unless Continue On Fail is enabled, in which case the affected item's output contains an error field.

Links

Discussion