ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Canais → Enviar Documento

AI-generated

Summary

Send a document to a WhatsApp number or group through the configured ZapGate instance. Choose a media source (URL, Base64, or an incoming binary field); the operation posts the document and optional caption to the instance's send-document endpoint.

Inputs

  • Número (required) — Recipient phone number with country code and digits only, or a group JID.
  • Legenda — Optional caption accompanying the document.
  • Origem da Mídia (required) — Select URL, Base64 / text, or a binary field from the incoming item.
  • URL da Mídia (required) — Required when the media source is URL.
  • Base64 (required) — Required for Base64 / text; accepts raw Base64 or a Base64 data URL.
  • Campo Binário (required) — For binary media, the incoming item's binary property name; defaults to data.
  • MIME Type — Optional MIME type for Base64 or binary media; inferred from a data URL or binary metadata when available.
  • Nome do Arquivo — Optional filename for Base64 or binary media; binary metadata is used when available, otherwise defaults to file.

Output shape

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

Requires ZapGate API credentials with an instance ID and valid instance or admin token. The request uses POST /instances/{instanceId}/send-document; the operation sets the media type to document. With continue-on-fail enabled, an item with an error field is returned for failed requests.

Links

Discussion