Wasapi icon

Wasapi

Integration oficial of Wasapi API for n8n

Overview

The WhatsApp "Send Attachment" operation in this node allows users to send files (such as images, documents, or other media) via WhatsApp using the Wasapi API integration. This is useful for automating communication workflows where sending attachments is required, such as customer support, marketing campaigns, or transactional notifications.

For example, a business could automatically send a PDF invoice or an image brochure to customers after a purchase, or a support team could share screenshots or logs with clients directly through WhatsApp.

Properties

Name Meaning
File Path URL or local path of the file to be sent as an attachment.
Caption Optional description or message accompanying the file.
Phone Wasapi Name or ID The phone number associated with your Wasapi account from which the message will be sent.
WhatsApp ID Recipient's phone number including country code but without the "+" sign (e.g., 573203294920).

Output

The node outputs JSON data representing the result of the send attachment request. This typically includes confirmation details such as message IDs, status, timestamps, or error information if the sending failed.

If the node supports binary data output (not explicitly shown here), it would represent any returned media or file content related to the operation, but in this case, the focus is on sending attachments rather than receiving them.

Dependencies

  • Requires an active Wasapi API account and a valid API key credential configured in n8n.
  • The node depends on the Wasapi API endpoint at https://api-ws.wasapi.io/api/v1.
  • The user must have WhatsApp numbers linked to their Wasapi account to select the sender phone number.
  • Proper network access to the file URL or local file system path specified in "File Path" is necessary.

Troubleshooting

  • Invalid Phone Number Format: Ensure the recipient's WhatsApp ID is entered correctly without the "+" sign and includes the full country code.
  • File Access Issues: If the file path is a URL, verify that it is accessible and publicly reachable. For local paths, ensure the n8n instance has permission to read the file.
  • API Authentication Errors: Confirm that the Wasapi API credentials are correctly set up and have not expired.
  • Unsupported Resource/Operation Error: This occurs if the resource or operation parameters are incorrect or not implemented; double-check that "WhatsApp" and "Send Attachment" are selected.
  • Network Connectivity Problems: Verify internet connectivity and that the Wasapi API endpoint is reachable from the n8n environment.

Links and References

Discussion