WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node operation retrieves a specific message by its unique serialized ID from the WaAPI service. It is useful when you need to fetch detailed information about a particular message, for example, to display message content, analyze message metadata, or process messages individually in workflows.

Practical examples include:

  • Fetching a chat message to display its content in a dashboard.
  • Retrieving message details for auditing or logging purposes.
  • Accessing media content attached to a message for further processing or storage.

Properties

Name Meaning
Id Instance ID (a numeric identifier for the instance).
Message Id Serialized message ID in the format <fromMe>_<chatId>_<messageHash>. This uniquely identifies the message to retrieve.
Include Media Boolean flag indicating whether to include base64 encoded media content in the response (true to include media, false otherwise).

Output

The output JSON contains the detailed data of the requested message identified by the provided serialized message ID. If the "Include Media" property is set to true, the output will also contain the media content encoded in base64 format within the message data.

If media is included, it allows downstream nodes or processes to access and handle the media directly without additional API calls.

Dependencies

  • Requires an active connection to the WaAPI service via an API key credential configured in n8n.
  • The node sends requests to the WaAPI endpoint at https://waapi.app/api/v1.
  • Proper authentication credentials must be set up in n8n to authorize API requests.

Troubleshooting

  • Invalid Message Id: If the message ID format is incorrect or the message does not exist, the node may return an error or empty result. Verify the message ID format matches <fromMe>_<chatId>_<messageHash>.
  • Authentication Errors: Missing or invalid API credentials will cause authorization failures. Ensure the API key credential is correctly configured.
  • Media Inclusion Issues: Setting "Include Media" to true may increase response size and processing time. If large media files cause performance issues, consider retrieving media separately.
  • Network or API Downtime: Temporary network issues or API unavailability can cause request failures. Retry after some time or check the API status.

Links and References

Discussion