DinastiAPI Group icon

DinastiAPI Group

Manage WhatsApp groups with DinastiAPI API

Overview

This node allows managing WhatsApp groups via the DinastiAPI API. It supports a variety of group-related operations such as creating groups, retrieving group information, managing participants, and updating group settings including name, description, photo, and permissions.

The Set Photo operation specifically enables setting or updating the photo of a WhatsApp group. This is useful for branding groups, personalizing community chats, or keeping group visuals up to date.

Practical examples:

  • Automatically update a group photo based on an event or campaign.
  • Set a default group photo when creating new groups.
  • Change the group photo using images from previous workflow nodes, URLs, or base64 encoded data.

Properties

Name Meaning
Group JID The unique identifier (JID) of the WhatsApp group where the photo will be set.
Photo Source The source type of the photo to set. Options: Binary Data, Base64 encoded image, or URL.
Binary Property (If Photo Source is Binary) The name of the binary property containing the image data.
Base64 Image (If Photo Source is Base64) The base64 encoded JPEG image string with data URL prefix.
Photo URL (If Photo Source is URL) The URL pointing to the image file to use as the group photo.

Output

The node outputs JSON data representing the response from the DinastiAPI API for the performed operation. For the "Set Photo" operation, this typically includes confirmation details about the updated group photo status.

No binary output is produced by this node; it only consumes binary data if the photo source is set to binary.

Dependencies

  • Requires an active connection to the DinastiAPI API with appropriate API authentication credentials configured in n8n.
  • The node depends on the dinastiapiApiRequest helper function to communicate with the API endpoints.
  • If using binary photo data, the previous node must provide valid binary image data under the specified binary property.

Troubleshooting

  • Binary property not found error: Occurs if the specified binary property does not exist in the input data. Ensure the binary property name matches exactly and that the previous node outputs the expected binary data.
  • Invalid group JID: The group JID must be correct and correspond to an existing WhatsApp group accessible by the authenticated account.
  • Invalid image format or corrupted data: When providing base64 or URL images, ensure the image is a valid JPEG or supported format and accessible.
  • API request failures: Check API credentials, network connectivity, and DinastiAPI service status if requests fail.
  • Continue On Fail: If enabled, errors for individual items will be returned as JSON objects with an error field instead of stopping execution.

Links and References

Discussion