WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node interacts with the WaAPI API to retrieve the profile picture URL of a specified contact. It is useful in scenarios where you need to programmatically access or display the profile image associated with a contact in WhatsApp-like environments, such as customer support dashboards, CRM integrations, or messaging automation workflows.

For example, you might use this node to fetch and show the profile picture of a user before sending them a personalized message or to update contact records with their latest profile images.

Properties

Name Meaning
Id Instance ID (a numeric identifier for the specific instance or context within which the request runs).
Contact Id The unique identifier of the contact whose profile picture URL you want to retrieve. Must include suffixes like @c.us for contacts, @g.us for groups, or @newsletter for newsletters.

Output

The node outputs JSON data containing the profile picture URL of the specified contact. This URL can be used to display or download the profile image externally.

If the node supports binary data output (not explicitly shown in the provided code), it would typically represent the actual image file fetched from the URL. However, based on the static analysis, the primary output is the JSON field with the profile picture URL.

Dependencies

  • Requires an active connection to the WaAPI API service.
  • Needs an API key credential configured in n8n to authenticate requests to WaAPI.
  • The base URL for API requests is https://waapi.app/api/v1.
  • The node expects JSON content-type headers for communication.

Troubleshooting

  • Invalid Contact Id format: Ensure the contact ID includes the correct suffix (@c.us, @g.us, or @newsletter). Incorrect formatting will likely cause errors or empty responses.
  • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • Network issues: Check connectivity to https://waapi.app/api/v1.
  • Empty or missing profile picture URL: The contact may not have a profile picture set; handle such cases gracefully in your workflow.

Links and References

Discussion