ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Autenticação → Enviar Documento

AI-generated

Summary

Sends a document to a WhatsApp number or group through the ZapGate instance. Choose a media source (URL, Base64, or an incoming binary field); the document is sent with an optional caption.

Inputs

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

Output shape

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

Uses the required ZapGate API credentials, including an instance ID and an Admin API Key or Instance Token. The operation sends a POST request to the instance's send-document endpoint. With Continue On Fail enabled, a failed input item yields {"error":"..."} in json.

Links

Discussion