DinastiAPI Session icon

DinastiAPI Session

Manage WhatsApp session connections and configurations

Overview

This node manages WhatsApp session connections and configurations via the DinastiAPI service. It allows users to perform various session-related operations such as connecting, disconnecting, logging out, pairing a phone number, setting proxy settings, configuring storage and messaging options, and specifically configuring whether to skip processing certain types of messages like newsletters.

A practical use case for this node is automating WhatsApp session management in workflows that require controlling message handling behavior, e.g., skipping newsletters to reduce noise or managing media downloads and group message processing.

The "Configure Skip Newsletters" operation specifically enables or disables skipping newsletter messages during WhatsApp session processing, which can be useful to filter out bulk or promotional content automatically.

Properties

Name Meaning
Enable Skip Newsletters Boolean flag to enable or disable skipping the processing of newsletter messages.

Output

The node outputs JSON data representing the response from the DinastiAPI endpoints corresponding to the selected operation. The output structure depends on the API response but generally includes status information or configuration details related to the session.

No binary data output is indicated by the code.

Dependencies

  • Requires an API key credential for authenticating with the DinastiAPI service.
  • The node interacts with DinastiAPI REST endpoints to manage WhatsApp sessions.
  • No additional environment variables are explicitly required beyond the API authentication.

Troubleshooting

  • Common issues:

    • Incorrect or missing API credentials will cause authentication failures.
    • Invalid parameter values (e.g., malformed phone numbers) may result in API errors.
    • Network connectivity problems can prevent successful API requests.
  • Error messages:

    • Errors returned from the DinastiAPI are caught and handled by a generic error handler function. Users should check the error details provided by the API response.
    • If enabling skip newsletters does not take effect, verify that the correct boolean value is passed and that the API endpoint is reachable.

Links and References

Discussion