ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Usuários → Enviar Template

AI-generated

Summary

Send a WhatsApp template message to a recipient using an admin instance.

Inputs

  • templateId (required) — ID of the template to send
  • to (required) — Recipient phone number with DDI (e.g., 5511999999999)
  • vars — JSON object with template variables (e.g., {"1":"123456"})

Output shape

An array of objects, each containing a json field with the API response.

The response contains whatever fields the template send endpoint returns (typically an ID or status). Errors are thrown unless continueOnFail is enabled.

Examples

Example 1: Send a verification code template

templateId = VERIF_CODE, to = 5511999999999, vars = {"code":"123456"}

Example 2: Send a promotional template with variables

templateId = PROMO, to = 5511888888888, vars = {"product":"Widget", "price":"10"}

Links

Discussion