Actions53
- Account Actions
- Contact Actions
- Group Actions
- Message Actions
- Session Actions
Message → Upload Media File
AI-generatedOverview
This node operation uploads a media file to a WhatsApp session using the WasenderAPI. It accepts a media payload in JSON format, which can be either a Data URL or a base64 string with an optional mimetype. This operation is useful for sending images, videos, audio, documents, or other media types as part of WhatsApp messaging workflows.
Use Case Examples
- Uploading a base64 encoded image to a WhatsApp session to share product photos with customers.
- Sending a video file to a group chat for marketing or informational purposes.
- Uploading an audio message to a contact for personalized communication.
Properties
| Name | Meaning |
|---|---|
| Session | Selects the WhatsApp session to use for uploading the media file. It can be selected from a list or specified by ID. If not provided, the session from the incoming item is used automatically. |
| Upload Payload | The media file payload to upload, provided as a JSON object containing either a Data URL or a base64 string with an optional mimetype field. |
| Options | Additional request options including retry behavior and maximum retry attempts for failed API requests. |
Output
JSON
data- Response data from the WasenderAPI after uploading the media file.
Dependencies
- WasenderAPI service with an API key credential for authentication
Troubleshooting
- Ensure the session ID is correctly specified or available in the incoming item; otherwise, the node will throw a 'Session is required' error.
- The upload payload must be a valid JSON object containing either a Data URL or a base64 string; invalid JSON will cause an error.
- If the API request fails, check the retry options and network connectivity.
- Common error messages include invalid session ID, malformed upload payload, or API request failures. Verify credentials and payload format to resolve these issues.