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 listing newsletters, creating newsletters, sending messages, subscribing/unsubscribing, muting notifications, reacting to messages, and more.

The Send Admin Invite operation specifically sends an administrative invitation to a phone number, inviting them to become an admin of a specified newsletter. This is useful for managing newsletter teams by easily adding new administrators via WhatsApp invites.

Practical example:
A marketing team uses this node to send an invite to a colleague’s phone number, allowing them to join the newsletter as an admin and help manage content distribution.

Properties

Name Meaning
Newsletter JID The unique identifier (JID) of the newsletter to which the admin invite relates.
Phone Number The phone number of the person to whom the admin invite will be sent.
Image A base64 encoded image or URL used as the invite image shown in the admin invitation.
Invite Caption Text caption that accompanies the admin invite message.
Newsletter Name The display name of the newsletter included in the invite.

Output

The node outputs JSON data representing the response from the DinastiAPI after sending the admin invite. This typically includes confirmation details about the invite request status.

  • The output is structured as an array of JSON objects.
  • Each object corresponds to the API response for each input item processed.
  • No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the DinastiAPI service.
  • Needs an API key credential configured in n8n for authenticating requests to DinastiAPI.
  • The node makes HTTP POST requests to the /newsletter/admin-invite endpoint of the DinastiAPI.

Troubleshooting

  • Common issues:

    • Invalid or missing phone number format may cause the API to reject the invite request.
    • Incorrect or expired API credentials will result in authentication errors.
    • Providing an invalid newsletter JID will cause the API to fail to locate the newsletter.
    • Improperly formatted image data (not base64 or invalid URL) can cause the invite to fail.
  • Error messages:

    • Errors returned from the API are passed through; typical messages might include "Invalid phone number", "Newsletter not found", or "Unauthorized".
    • To resolve, verify all input parameters, ensure the API key is valid, and confirm the newsletter exists.

Links and References

  • DinastiAPI Documentation (hypothetical link for reference)
  • WhatsApp Newsletter Management Concepts (general understanding)

This summary focuses on the Send Admin Invite operation within the DinastiAPI Newsletter node, describing its purpose, inputs, outputs, dependencies, and common troubleshooting tips.

Discussion