WaAPI icon

WaAPI

Interact with WaAPI API

Actions83

Overview

This node interacts with the WaAPI API to send a "presence unavailable" signal for a specific client instance. It is useful in scenarios where you want to programmatically mark a client as offline or unavailable, such as automating status updates in messaging or communication platforms that support presence indicators.

For example, if you manage multiple client instances and need to set their presence to unavailable during maintenance or outside business hours, this node can automate that process by sending the appropriate API request.

Properties

Name Meaning
Id The numeric identifier of the client instance for which the presence should be set to unavailable.

Output

The node outputs JSON data representing the response from the WaAPI API after attempting to send the presence unavailable signal. This typically includes confirmation of the action or any error messages returned by the API.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the WaAPI API.
  • The node sends requests to the base URL: https://waapi.app/api/v1.
  • Proper configuration of the API credential within n8n is necessary to authorize requests.

Troubleshooting

  • Common issues:

    • Invalid or missing client instance ID will cause the API call to fail.
    • Incorrect or expired API credentials will result in authentication errors.
    • Network connectivity problems may prevent reaching the WaAPI service.
  • Error messages:

    • Authentication errors usually indicate invalid API keys; verify and update credentials.
    • "Instance not found" or similar errors suggest the provided client ID does not exist; check the ID value.
    • Timeout or connection errors require checking network access and API availability.

Links and References

Discussion