ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Chat → Conectar Sessão

AI-generated

Summary

Starts a ZapGate WhatsApp session using QR code pairing or a numeric pair code. The operation is declared under Session in the source, although the supplied resource label says Chat.

Inputs

  • method — Choose QR Code (default) or numeric pair code. The operation-scoped properties list is empty, but the source declares this field.
  • phone — Required when method is paircode: enter the phone number with country code, digits only and no +. The source raises an error if it is missing.
  • qrFormat — For QR pairing, choose URL (default), base64 data URL, or bin. The source passes this as the QR retrieval format; bin is retrieved as base64 in the JSON response.
  • ZapGate credentials (required) — Requires a configured base URL, instance ID, and admin API key for this operation.

Output shape

A single n8n item per input item, with a JSON object containing the API response and, when needed, a retrieved qr or pairCode value.

After the connect request, the node polls for the QR or pair code up to 12 times at 500 ms intervals if the initial response lacks it. With paircode, the value is returned under pairCode; QR pairing uses qr and may include qrFormat. Selecting bin does not produce binary output here: the QR is retrieved as base64 in JSON. Request failures stop execution unless Continue On Fail is enabled, in which case the item contains an error field.

Links

Discussion