DinastiAPI Newsletter icon

DinastiAPI Newsletter

Manage WhatsApp newsletters/channels using DinastiAPI API

Overview

This node integrates with the DinastiAPI to manage WhatsApp newsletters and channels. It supports a variety of operations such as listing newsletters, creating new ones, sending messages, subscribing/unsubscribing, muting notifications, reacting to messages, and accepting terms of service notices.

The Accept TOS Notice operation specifically allows users to programmatically accept a Terms of Service (TOS) notice related to newsletters. This is useful in workflows where compliance or user consent needs to be recorded automatically before proceeding with newsletter interactions.

Practical examples:

  • Automatically accept the latest TOS notice when a user subscribes to a newsletter.
  • Include TOS acceptance as part of an onboarding workflow for newsletter subscribers.

Properties

Name Meaning
Notice ID The identifier of the TOS notice to accept. Default is "20601218", typically for newsletter creation.
Stage The stage number for TOS acceptance. Default is "5", usually corresponding to newsletter creation.

Output

The node outputs JSON data representing the response from the DinastiAPI after accepting the TOS notice. The exact structure depends on the API response but generally confirms successful acceptance or provides error details.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the DinastiAPI service.
  • The node calls the /newsletter/accept-tos endpoint via HTTP POST.
  • Proper configuration of the DinastiAPI credentials in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or expired API credentials will cause authentication failures.
    • Incorrect noticeId or stage values may result in API errors or rejection.
    • Network connectivity problems can prevent the node from reaching the API.
  • Error messages:

    • Errors returned by the API will be included in the node's output if "Continue On Fail" is enabled.
    • Typical error messages might include invalid parameter errors or permission denials.
  • Resolutions:

    • Verify that the API key credential is valid and has required permissions.
    • Confirm that the noticeId and stage correspond to existing TOS notices.
    • Check network access and proxy settings if applicable.

Links and References

  • DinastiAPI Documentation (hypothetical link)
  • WhatsApp Newsletter Management Concepts (refer to official WhatsApp Business API docs)

Discussion