ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Instâncias → Enviar Botão Nativo

AI-generated

Summary

Enviar Botão Nativo (Send Native Button) sends an interactive WhatsApp message with a single button (copy, URL, call) or up to three quick‑reply buttons via the ZapGate instance API.

Inputs

  • resource (required) — Fixed to 'Instâncias' for this operation.
  • operation (required) — Fixed to 'Enviar Botão Nativo'.
  • to (required) — WhatsApp number or JID of the recipient (field 'destinatario').
  • title — Optional header text displayed above the message body.
  • body (required) — Main message text visible above the button (field 'body').
  • footer — Optional footer text shown below the button.
  • buttonType (required) — Type of button to send. Options: 'copy' (copy text), 'url' (open link), 'call' (phone call), 'reply' (quick‑reply buttons).
  • displayText (required) — Label shown on the button. Required for copy, url and call types; ignored when buttonType is 'reply'.
  • copyCode — Text to copy when buttonType is 'copy'.
  • url — URL to open when buttonType is 'url'.
  • phoneNumber — Phone number to dial (with DDI) when buttonType is 'call'.
  • replyButtons — Quick‑reply definitions, one per line in the format 'Text|id' (id optional). Maximum 3 lines. Used only when buttonType is 'reply'.

Output shape

JSON object returned by the ZapGate API, typically containing message ID and status.

The operation uses instance‑level authentication (Instance Token or Admin API Key). The request is a POST to /instances/{instanceId}/send-native-button with the parameters above in the body.

Links

Discussion