Actions15
- Instância Actions
- Mensagem Actions
- Botões Actions
- Webhook Actions
Instância → Conectar
AI-generatedSummary
Connects a W-api WhatsApp instance by sending a GET request to the instance's connect endpoint, returning the API's response, which is typically the QR Code data for pairing.
Inputs
- instanceName (required) — Unique name of the instance to connect. It is inserted into the URL path (/instance/connect/{instanceName}). Evaluated per input item, so it can be an expression.
Output shape
One output item per input item. Its json field holds the parsed JSON response from the W-api connect endpoint.
The source does not define the response fields. The operation description says 'Conectar/Obter QR Code', so expect QR Code or connection data. Authentication uses the apikey header and baseUrl from the wapiApi credentials. If Continue On Fail is enabled, a failed item returns {error: message} instead of stopping the workflow.
Examples
Example 1: Get a QR Code to pair a newly created WhatsApp instance.
Resource: Instância; Operation: Conectar; Nome da Instância: minha-loja
Example 2: Reconnect a different instance for each incoming item using data from a previous node.
Resource: Instância; Operation: Conectar; Nome da Instância: {{ $json.instance }}