ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Grupos → Enviar Mídia

AI-generated

Summary

Send a media file to a WhatsApp group or contact

Inputs

  • to (required) — Destinatário (número com DDI ou JID de grupo).
  • type — Tipo da mídia (image, audio, video, document, sticker).
  • caption — Legenda opcional para a mídia.
  • mediaSource — Origem da mídia (url, base64 ou binary).
  • url — URL da mídia (usado quando mediaSource=url).
  • base64 — Conteúdo Base64 da mídia (usado quando mediaSource=base64).
  • binaryPropertyName — Nome do campo binário do item anterior (usado quando mediaSource=binary).
  • mimetype — Tipo MIME da mídia.
  • filename — Nome do arquivo da mídia.

Output shape

a list of result items, each containing the API response under the json property

When continueOnFail is enabled, items that produce errors include an error field instead of a successful json response.

Examples

Example 1: Enviar imagem via URL para um grupo

to=5511999999999; type=image; caption=Olá; mediaSource=url; url=https://example.com/photo.png

Example 2: Enviar documento usando Base64

to=5511999999999; type=document; caption=Relatório; mediaSource=base64; base64=iVBORw0KGgo...; filename=report.pdf

Example 3: Enviar sticker usando campo binário anterior

to=120363123456789012@g.us; type=sticker; mediaSource=binary; binaryPropertyName=data; mimetype=image/png; filename=sticker.png

Links

Discussion