Actions53
- Account Actions
- Contact Actions
- Group Actions
- Message Actions
- Session Actions
Message → Decrypt Webhook Media
AI-generatedOverview
This node operation decrypts media content from a WasenderAPI webhook payload. It is useful when receiving encrypted media messages (such as images, videos, audio, documents, or stickers) via a webhook and needing to decrypt and access the media file for further processing or storage. For example, it can be used to automatically decrypt incoming media messages in a WhatsApp automation workflow.
Use Case Examples
- Decrypt media from an incoming webhook payload to save the media file locally or process it further.
- Manually provide a webhook payload JSON to decrypt media content when automatic input is not available.
Properties
| Name | Meaning |
|---|---|
| Session | Selects the WasenderAPI session to use for decrypting the media. Optional if the session is auto-selected from the incoming item. |
| Auto Selected Session ID | Automatically populated session ID from the incoming item, used if no session is manually selected. |
| Has Auto Selected Session | Indicates if a session ID is auto-selected from the incoming item. |
| Payload Source | Determines whether to use the incoming item JSON automatically or to manually provide a webhook payload JSON for decryption. |
| Webhook Payload | The webhook payload JSON to decrypt, required only in Manual JSON mode. |
| Options | Request options including retry behavior for WasenderAPI requests. |
Output
Binary
The node outputs the decrypted media file as binary data, allowing further use or storage of the media content.
JSON
messageId- The ID of the decrypted message.mediaType- The type of media decrypted (e.g., image, video, audio).mimeType- The MIME type of the decrypted media file.fileName- The filename assigned to the decrypted media file.publicUrl- A public URL to access the decrypted media file.
Dependencies
- Requires WasenderAPI credentials for authentication and API access.
Troubleshooting
- Ensure the webhook payload contains a supported media message type; otherwise, the node will throw an error indicating no supported media object was found.
- If the payload does not include the required message key ID, an error will be thrown indicating the missing ID.
- If the decrypt media response does not include a public URL, the node will throw an error.
- Make sure the session ID is provided either manually or via the incoming item; otherwise, the node will throw a session required error.