Wazend API icon

Wazend API

Interact with Wazend API

Overview

This node, named "Wazend API," allows interaction with the Wazend API to perform various operations grouped by resources. Specifically, for the resource Chat and operation Buscar Foto Del Perfil (Fetch Profile Picture), it enables users to retrieve the profile picture of a specified contact number from a given instance.

Common scenarios where this node is beneficial include:

  • Automating the retrieval of user profile pictures in messaging or CRM workflows.
  • Enriching contact data with profile images for better visualization.
  • Integrating profile pictures into customer support or marketing automation processes.

For example, a workflow could use this node to fetch the profile picture of a WhatsApp contact by providing the instance name and contact number, then use that image in subsequent steps like sending personalized messages or storing it in a database.

Properties

Name Meaning
Nombre De La Instancia The name of the Wazend API instance to connect to. This identifies which environment or account to use.
Contacto The contact's phone number in international format (e.g., 5511999999999) whose profile picture will be fetched.

Output

The node outputs a JSON array containing the result of the requested operation. For the Buscar Foto Del Perfil operation, the output JSON includes the profile picture data associated with the specified contact. The exact structure depends on the API response but typically contains fields such as the URL or base64 data of the profile picture.

If the API supports binary data for images, the node may also output the profile picture as binary data, allowing downstream nodes to process or save the image directly.

Dependencies

  • Requires an active connection to the Wazend API service.
  • Needs an API authentication credential configured in n8n to authorize requests.
  • The node uses the base URL https://docs.wazend.net/wazend for API calls.
  • Proper network access to the Wazend API endpoint is necessary.

Troubleshooting

  • Operation not supported error: If you select an unsupported operation-resource combination, the node throws an error indicating the operation is not supported. Ensure you choose valid combinations.
  • Authentication errors: Missing or invalid API credentials will cause request failures. Verify that the API key or token is correctly set up in n8n credentials.
  • Invalid contact number format: The contact number must be in the correct international format; otherwise, the API may reject the request.
  • Network issues: Connectivity problems to the Wazend API endpoint can cause timeouts or failures. Check your network and firewall settings.
  • Empty or missing profile picture: If the contact has no profile picture, the API might return empty data. Handle such cases gracefully in your workflow.

Links and References

Discussion