Actions28
- Messages Actions
- Media Actions
- Templates Actions
- Contacts Actions
- Analytics Actions
- Webhooks Actions
Overview
The "Get Media" operation of the "Media" resource in this WhatsApp Enhanced node allows users to retrieve media content by its unique Media ID from the WhatsApp Business API. This is useful when you need to fetch images, videos, audio files, or documents that were previously uploaded or sent via WhatsApp.
Common scenarios include:
- Downloading media files for processing or storage after receiving them in a conversation.
- Accessing media metadata or content to display or analyze within an automation workflow.
- Integrating WhatsApp media retrieval into broader business processes such as customer support or marketing campaigns.
Example: You receive a media message in WhatsApp and want to automatically download the image or video file to your system for archival or further processing.
Properties
| Name | Meaning |
|---|---|
| Media ID | The unique identifier of the media on WhatsApp to retrieve. This ID is required to specify which media file to get. |
Output
The node outputs JSON data representing the media information retrieved from WhatsApp. The exact structure depends on the WhatsApp API response but typically includes details such as media URL, type, size, and possibly metadata about the media file.
If the media content itself is binary (e.g., image, video), the node may provide a URL or reference to download it rather than embedding the binary data directly.
Dependencies
- Requires an active subscription and valid API key credential for the external N8N Tools API service.
- Requires OAuth2 or API credentials configured for WhatsApp Business API access.
- The node internally uses the N8N Tools WhatsApp API wrapper to communicate with WhatsApp endpoints.
Troubleshooting
- Invalid Media ID: If the provided Media ID does not exist or is incorrect, the node will likely return an error indicating the media was not found. Verify the Media ID is correct and corresponds to existing media.
- Authentication Errors: Errors related to invalid API keys or expired tokens can occur. Ensure that the API key and WhatsApp credentials are correctly set up and have necessary permissions.
- API Rate Limits: Excessive requests might trigger rate limiting. Implement retries or delays if needed.
- Network Issues: Connectivity problems between n8n and the external API can cause failures. Check network connectivity and proxy settings if applicable.
Links and References
- WhatsApp Business API Documentation
- N8N Official Documentation
- N8N Tools WhatsApp Integration Guide (hypothetical link based on context)