ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Chat → 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 content, or an incoming binary field; optionally add a caption.

Inputs

  • to (required) — Recipient phone number with country code, digits only; the field also accepts a group JID.
  • caption — Optional caption for the document.
  • mediaSource — Select URL (default), Base64 / Text, or Binary (field from the incoming item).
  • url — Document URL, required when the media source is URL.
  • base64 — Document data as raw Base64 or a Base64 data URL; required for the Base64 source.
  • binaryPropertyName — Name of the incoming item's binary field; defaults to data and is required for the Binary source.
  • mimetype — Optional MIME type for Base64 or binary input; otherwise inferred from the data when available.
  • filename — Optional file name for Base64 or binary input; otherwise inferred from the binary input or defaults to file.

Output shape

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

Makes a POST request to /instances/{instanceId}/send-document using instance authentication. The instance ID and API credentials come from ZapGate credentials. Errors stop execution unless Continue On Fail is enabled, in which case the corresponding output item contains an error field.

Links

Discussion