WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

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

  1. Decrypt a WhatsApp image file received as a base64 string using its media key to obtain the original image for archival or analysis.
  2. 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

Discussion