Wazend API icon

Wazend API

Interact with Wazend API

Overview

This node, named "Wazend API," allows users to interact with the Wazend service to fetch group information. Specifically, for the resource "Grupo" and operation "Buscar Grupos," it enables searching groups by different methods: invitation code, group ID, or fetching all groups. It is useful in scenarios where you need to retrieve details about chat groups, such as their metadata or participant lists, for automation workflows involving group management or monitoring.

Practical examples include:

  • Fetching a group’s details using its unique invitation code to verify membership or status.
  • Retrieving information about a specific group by its ID to integrate group data into other systems.
  • Listing all groups associated with an instance, optionally including participants, for administrative reporting.

Properties

Name Meaning
Nombre De La Instancia The name of the instance to connect to (required).
Método De Búsqueda The method used to search groups. Options: "Por Código De Invitación", "Por ID Del Grupo", "Buscar Todos Los Grupos".
Código De La Invitación Invitation code of the group (required if searching by invite code). Example: JZNHJLvnNd04UvGefiEZAA.
ID Del Grupo Group ID to search for information (required if searching by group ID).
Obtener Participantes Boolean flag indicating whether to retrieve the list of participants when fetching all groups.

Output

The node outputs a JSON array containing the fetched group data. Each item in the array represents a group object with its details as returned by the Wazend API. If the option to obtain participants is enabled when fetching all groups, the output will also include participant lists within each group object.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the Wazend API.
  • The base URL for API requests is https://docs.wazend.net/wazend.
  • Proper configuration of the API credential in n8n is necessary to authorize requests.

Troubleshooting

  • Unsupported Operation Error: If the node throws an error stating the operation is not supported, ensure that the selected resource and operation names exactly match those implemented ("groups-api" and "fetch-groups").
  • Missing Required Parameters: Errors may occur if required fields like instance name, invite code, or group ID are missing depending on the chosen search method. Verify all mandatory inputs are provided.
  • API Authentication Failures: Check that the API key credential is correctly set up and has sufficient permissions.
  • Empty Results: If no groups are returned, confirm that the instance name and search parameters correspond to existing groups in the Wazend system.

Links and References

Discussion