Quepasa (Whatsapp) icon

Quepasa (Whatsapp)

Non Official Whatsapp API

Overview

This node operation downloads a message file from the Quepasa (Whatsapp) API. It is useful for retrieving media or document files associated with a specific message ID in a Whatsapp bot integration. For example, it can be used to download images, PDFs, or other attachments sent or received in Whatsapp conversations.

Use Case Examples

  1. Downloading a PDF file attached to a Whatsapp message by specifying the message ID and saving it as a binary file in n8n.
  2. Retrieving an image sent in a Whatsapp chat and storing it in the workflow for further processing or storage.

Properties

Name Meaning
Authentication Selects the authentication method to use, either parameters-based or predefined credentials.
BaseUrl The base URL of the Quepasa API endpoint, required if using parameters-based authentication.
Token The token of the Whatsapp bot used for authentication, required if using parameters-based authentication.
Message ID The unique identifier of the message whose file is to be downloaded.
Binary Property The name of the binary property in the output where the downloaded file data will be stored.
File Name Optional file name to assign to the downloaded file in the binary property.

Output

Binary

Contains the downloaded file data under the specified binary property name.

JSON

  • messageid - The unique ID of the message associated with the downloaded file.
  • fileName - The name of the downloaded file, if specified.

Dependencies

  • Quepasa API (Whatsapp non-official API)

Troubleshooting

  • Ensure the BaseUrl and Token are correctly set when using parameters-based authentication to avoid authentication errors.
  • Verify the Message ID is valid and corresponds to an existing message with downloadable content.
  • If the download operation fails, check network connectivity and API availability.
  • Common errors include authentication failures, invalid message IDs, or missing binary property names. Verify all required parameters are provided and correctly formatted.

Discussion