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 information and presence status on WhatsApp. Specifically, the "Set Presence" operation allows users to set their global presence status as either "Available" (online) or "Unavailable" (offline). This is useful in scenarios where you want to programmatically control how your WhatsApp presence appears to others, such as automating availability during business hours or setting offline status during maintenance windows.

Practical examples include:

  • Automatically marking a WhatsApp account as unavailable outside of business hours.
  • Setting presence to available when a customer support agent logs into a system.
  • Integrating presence status changes into broader workflow automations for communication management.

Properties

Name Meaning
Presence Type Global presence status to set. Options: "Available" (Show as online), "Unavailable" (Show as offline)

Output

The node outputs JSON data reflecting the response from the DinastiAPI WhatsApp API after setting the presence status. The exact structure depends on the API response but generally includes confirmation of the presence status update.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the DinastiAPI WhatsApp API.
  • The node uses HTTP requests to communicate with the DinastiAPI endpoints.
  • Proper configuration of the API credentials within n8n is necessary for successful execution.

Troubleshooting

  • Common Issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Network connectivity issues can prevent the node from reaching the DinastiAPI service.
    • Providing an unsupported presence type value may result in API errors.
  • Error Messages:

    • Authentication errors typically indicate invalid or expired API keys; verify and update credentials.
    • Timeout or connection errors suggest network problems; check internet access and API endpoint availability.
    • Validation errors from the API may occur if the presence type parameter is incorrect; ensure it is either "available" or "unavailable".

Links and References

Discussion