DinastiAPI User icon

DinastiAPI User

Get user information and manage presence with DinastiAPI WhatsApp API

Overview

This node integrates with the DinastiAPI WhatsApp API to manage user presence and retrieve user-related information. Specifically, the "Set My Status" operation allows users to update their current WhatsApp status message programmatically. This is useful in automation workflows where you want to dynamically change your WhatsApp status based on external events or triggers, such as setting availability during work hours or sharing custom messages automatically.

Practical examples include:

  • Automatically setting a "Busy" status during calendar events.
  • Updating status messages to reflect current project phases or announcements.
  • Clearing or changing status messages based on workflow outcomes.

Properties

Name Meaning
Status Message The status message text to set on the user's WhatsApp profile (e.g., "Available"). This is a required string input.

Output

The node outputs JSON data representing the response from the DinastiAPI after attempting to set the status message. The structure typically contains confirmation or details about the updated status. The output is an array of JSON objects corresponding to each input item processed.

No binary data is produced by this operation.

Dependencies

  • Requires an active connection to the DinastiAPI WhatsApp API.
  • Needs an API authentication credential configured in n8n for accessing DinastiAPI endpoints.
  • The node uses HTTP POST requests to the /user/status endpoint to set the status message.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Providing an empty or invalid status message may result in errors or no update.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Errors returned from the API will be included in the node's output if "Continue On Fail" is enabled.
    • Typical error messages might indicate invalid parameters or authorization failures.
  • Resolutions:

    • Ensure the API key or token is correctly configured and has necessary permissions.
    • Validate that the status message is not empty and meets any length or content requirements imposed by the API.
    • Check network access and firewall settings to allow outbound connections to the DinastiAPI service.

Links and References

Discussion