Actions90
- Sessions Actions
- Messages - Sending Actions
- Chats Actions
- Messages - Actions Actions
- Groups Actions
- List Groups
- Group Info
- Get Invite Link
- Revoke Invite Link
- Join via Link
- Preview via Link
- Create Group
- Delete Group
- Update Group Description
- Toggle Announcement Mode
- List Participants
- Add Participants
- Remove Participants
- Demote Participants
- Approve Join Request
- Reject Join Request
- List Join Requests
- Get Group Picture
- Set Group Picture
- Delete Group Picture
- Leave Group
- Update Group Name
- Lock Group Edits
- Promote Participants
- Profile Actions
- Server Actions
- Miscellaneous Actions
Overview
This node operation decrypts WhatsApp media files using a provided media key. It accepts a file input which can be a base64 payload, an HTTPS URL, or a local file path, along with the media key in base64 format. The node sends these inputs to the WARest WhatsApp REST API to perform the decryption and returns the decrypted media content. This operation is useful for workflows that need to handle encrypted WhatsApp media files, such as images, videos, or documents, enabling further processing or storage of the decrypted content.
Use Case Examples
- Decrypt a WhatsApp image file received as a base64 string using its media key to obtain the original image for archival or analysis.
- Decrypt a WhatsApp video file from a URL by providing the media key, allowing the video to be processed or shared outside WhatsApp.
Properties
| Name | Meaning |
|---|---|
| File | The WhatsApp media file to decrypt, provided as a base64 payload, HTTPS URL, or local file path. |
| Media Key (base64) | The base64-encoded media key used to decrypt the WhatsApp file. |
| Additional Fields | Optional additional parameters for various operations, not specifically used in this operation. |
Output
JSON
json- The decrypted WhatsApp media file content or related result from the API.
Dependencies
- WARest WhatsApp REST API
Troubleshooting
- Ensure the media key is correctly base64-encoded and corresponds to the encrypted file provided.
- Verify that the file input is accessible and correctly formatted as base64, URL, or local path.
- Check API credentials and connectivity to the WARest WhatsApp REST API to avoid authentication or network errors.
- If decryption fails, confirm that the file and media key match and that the file is a valid WhatsApp encrypted media file.
Links
- WhatsApp Media Decryption Guide - Guide on decrypting WhatsApp media files using media keys.
- WARest API Documentation - Decrypt WhatsApp File - Official API documentation for the decryptWhatsappFile operation.
