Wazend API icon

Wazend API

Interact with Wazend API

Overview

This node, named "Wazend API," is designed to interact with the Wazend API service. Specifically, for the Resource "Chat" and Operation "Buscar Estados De Mensajes" (Find Status Messages), it allows users to query the status of messages in a chat instance. This can be useful for scenarios where you need to track message delivery or read statuses for specific contacts and messages within a messaging platform.

Practical examples include:

  • Retrieving the delivery or read status of a particular message sent to a contact.
  • Paginating through message status records to analyze communication history.
  • Integrating message status checks into automated workflows for customer support or notification systems.

Properties

Name Meaning
Nombre De La Instancia The name of the chat instance to query.
Contacto The contact number (remote JID) whose message status is being queried.
ID Del Mensaje The unique identifier of the message for which the status is requested.
Página The page number for paginated results (default is 1).
Cantidad Por Página The number of message status entries to return per page (default is 10).

Output

The node outputs a JSON array containing the results returned by the Wazend API for the message status query. Each item in the array represents a message status record corresponding to the specified contact and message ID, including pagination as requested.

If the API supports binary data output, it is not indicated in the provided code or properties; thus, the output is purely JSON-based.

Dependencies

  • Requires an active connection to the Wazend API endpoint at https://docs.wazend.net/wazend.
  • Requires an API authentication credential configured in n8n (an API key or token).
  • The node depends on the internal helper functions mapped in resourceOperationsFunctions to handle the specific resource-operation logic.

Troubleshooting

  • Unsupported Operation Error: If the operation or resource is not supported, the node throws an error stating the operation is not supported. Ensure that the resource is set to "chat-api" and the operation to "find-status-messages".
  • Missing Required Parameters: The node requires all parameters marked as required (instance name, contact, message ID). Missing these will likely cause errors or empty responses.
  • API Connectivity Issues: Network problems or invalid credentials may result in failed requests. Verify API keys and network access.
  • Pagination Parameters: Providing invalid page or offset values might lead to unexpected results or errors from the API.

Links and References

Discussion