Actions15
- Instância Actions
- Mensagem Actions
- Botões Actions
- Webhook Actions
Instância → Status
AI-generatedSummary
Checks the connection state of a W-api WhatsApp instance by name, via a GET request to the W-api server's connectionState endpoint.
Inputs
- instanceName (required) — Unique name of the instance to check. It is inserted into the URL path (/instance/connectionState/{instanceName}). Evaluated per input item, so it can be an expression.
Output shape
One output item per input item. Each item's json is the raw response from W-api's connectionState endpoint.
The node doesn't reshape the response, so field names depend on the W-api server. The request authenticates with the apikey header from the wapiApi credential and uses the credential's baseUrl. If Continue On Fail is enabled, a failed item returns {error: message} instead of stopping the workflow.
Examples
Example 1: Check whether a store's WhatsApp instance is still connected before sending messages.
Resource: Instância; Operation: Status; Nome da Instância: minha-loja
Example 2: Poll several instances on a schedule and alert on disconnection.
Feed items with an instance name field; set Nome da Instância to the expression {{ $json.instance }}; follow with an IF node on the returned state.