WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node allows you to request a pairing code for a client instance via the WaAPI API. It is useful in scenarios where you need to programmatically initiate the pairing process of a client device by providing its instance ID and phone number. For example, this can be used in automation workflows that manage WhatsApp client connections or trigger pairing without manual intervention.

Properties

Name Meaning
Id The unique identifier of the client instance for which the pairing code is requested.
Phone Number The phone number associated with the client, in international format without symbols (e.g., 50664083362).
Show Notification Boolean flag indicating whether to show a notification when the pairing code is received.

Output

The node outputs JSON data containing the response from the WaAPI API after requesting the pairing code. This typically includes information about the success or failure of the request and any relevant details such as the pairing code itself or status messages.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the WaAPI API.
  • The node communicates with the external WaAPI service at https://waapi.app/api/v1.
  • Proper configuration of the API authentication credential within n8n is necessary.

Troubleshooting

  • Common issues:
    • Invalid or missing instance ID or phone number may cause the request to fail.
    • Incorrect API credentials or network connectivity problems can prevent successful communication with the WaAPI service.
  • Error messages:
    • Authentication errors indicate invalid or missing API keys; verify and update credentials.
    • Validation errors related to phone number format require ensuring the number is in international format without symbols.
    • Timeout or connection errors suggest checking network access to the WaAPI endpoint.

Links and References

Discussion