W-api icon

W-api

Interaja com W-api WhatsApp API

Webhook → Obter

AI-generated

Summary

Retrieves the current webhook configuration of a W-api WhatsApp instance by sending a GET request to the W-api server's /webhook/get/{instanceName} endpoint.

Inputs

  • instanceName (required) — Name of the W-api instance whose webhook configuration should be fetched. It is inserted into the request URL path.

Output shape

One output item per input item, with the W-api server's JSON response as the item's json. The node does not reshape it, so the fields depend on the API (typically the webhook URL and settings).

Authentication uses the wapiApi credential's baseUrl and apiKey (sent as the 'apikey' header). The request runs once per input item. If an item fails and 'Continue On Fail' is enabled, that item returns { error: message }. Otherwise the node throws.

Examples

Example 1: Check which URL receives events for the instance 'minha-loja' before changing it.

Resource: Webhook; Operation: Obter; Nome da Instância: minha-loja

Example 2: Audit webhooks across several instances by passing instance names from earlier nodes.

Resource: Webhook; Operation: Obter; Nome da Instância: {{ $json.instance }}

Links

Discussion