WaAPI icon

WaAPI

Interact with WaAPI API

Actions83

Overview

The node provides an operation to pin a specific message in a messaging system using the WaAPI API. Pinning a message highlights or bookmarks it within a chat or conversation, making it easier for users to find important messages later. This is useful in scenarios such as team collaboration, customer support chats, or any context where key messages need to be emphasized.

For example, a user might want to pin a message containing meeting notes or critical instructions so that all participants can quickly access it without scrolling through the entire chat history.

Properties

Name Meaning
Id The instance ID representing the specific environment or account context (number).
Message Id The unique identifier of the message to be pinned (string).
Duration Optional duration in seconds specifying how long the message should remain pinned (number).

Output

The node outputs JSON data reflecting the result of the pin message operation. This typically includes confirmation of the action and possibly metadata about the pinned message. There is no indication that binary data is output by this node.

Dependencies

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

Troubleshooting

  • Common issues:

    • Invalid or missing message ID will cause the pin operation to fail.
    • Expired or incorrect API credentials will prevent successful communication with the WaAPI service.
    • Providing a non-numeric or invalid duration may lead to unexpected behavior or errors.
  • Error messages:

    • Authentication errors indicating invalid API keys require checking and updating the stored credentials.
    • "Message not found" or similar errors suggest verifying the correctness of the provided message ID.
    • Network or timeout errors indicate connectivity issues with the WaAPI service.

Links and References

Discussion