ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Canais → Enviar Template

AI-generated

Summary

Sends a template message to a WhatsApp recipient through the ZapGate API. Requires the template ID and recipient number; optional JSON variables can fill template placeholders.

Inputs

  • templateId (required) — ID of the template to send.
  • to (required) — Recipient phone number with country code, digits only (for example, 5511999999999).
  • vars — Optional JSON object of template variables, such as {"1":"value"}.

Output shape

A single item per input item, containing the ZapGate API response as JSON.

Uses the required ZapGate credentials and admin authentication. If the API response is not an object, it is returned as {"result":""}. With Continue On Fail enabled, errors are returned as an item containing an error field.

Examples

Example 1: Send a template with a placeholder value

Provide the template ID, recipient number, and optional variables object such as {"1":"value"}.

Links

Discussion