DinastiAPI Newsletter icon

DinastiAPI Newsletter

Manage WhatsApp newsletters/channels using DinastiAPI API

Overview

This node integrates with the DinastiAPI to manage WhatsApp newsletters (channels). It allows users to perform various newsletter-related operations such as subscribing to newsletters, sending messages, retrieving newsletter info and messages, muting notifications, reacting to messages, and managing admin invites. This node is useful for automating interactions with WhatsApp newsletters, enabling workflows like subscribing users to newsletters, broadcasting messages, or monitoring newsletter activity.

Practical examples include:

  • Automatically subscribing a user to a specific newsletter.
  • Sending scheduled updates or promotional content to a newsletter audience.
  • Retrieving recent messages from a newsletter for analysis or archiving.
  • Muting notifications from certain newsletters during off-hours.
  • Reacting to newsletter messages programmatically.

Properties

Name Meaning
Newsletter JID The unique identifier (JID) of the newsletter to interact with. Example: 120363025246943103@newsletter. Required for most operations involving a specific newsletter.

Output

The node outputs JSON data representing the response from the DinastiAPI for the selected operation. The structure varies depending on the operation performed but generally includes details about newsletters, messages, subscription status, or confirmation of actions taken.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the DinastiAPI service.
  • The node makes HTTP requests to DinastiAPI endpoints corresponding to newsletter management functions.
  • Proper configuration of the API credential in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or missing newsletter JID can cause errors when performing operations that require it.
    • Incorrect or expired API credentials will result in authentication failures.
    • Providing invalid invite codes when subscribing/unsubscribing via invite will cause request failures.
    • Improperly formatted input parameters (e.g., non-numeric server IDs) may lead to errors.
  • Error messages and resolutions:

    • "Missing required parameter" — Ensure all mandatory fields like Newsletter JID or invite code are provided.
    • "Authentication failed" — Verify that the API key credential is correctly set up and valid.
    • "Invalid invite code" — Double-check the invite code value for typos or expiration.
    • "Failed to parse server IDs" — Provide comma-separated numeric values without extra spaces for server IDs.

Links and References

  • DinastiAPI Documentation (for detailed API usage and newsletter management)
  • WhatsApp Newsletter Concepts (general understanding of WhatsApp channels/newsletters)

Discussion