DinastiAPI Admin icon

DinastiAPI Admin

Administrative operations for DinastiAPI WhatsApp API

Overview

This node, named "DinastiAPI Admin," provides administrative operations for managing users and global settings in the DinastiAPI WhatsApp API system. Specifically, the "Send Global Test Event" operation allows sending a custom test event through the global event systems of the platform. This is useful for verifying that event handling, routing, and processing mechanisms are working correctly across the infrastructure.

Typical use cases include:

  • Testing event pipelines by sending simulated events.
  • Debugging integrations that rely on global event notifications.
  • Validating user-specific event handling by specifying a test user ID.

For example, you might send a "TestEvent" with custom JSON data to simulate an incoming message or status update, ensuring downstream services receive and process it as expected.

Properties

Name Meaning
Event Type The type of event to send. Examples: TestEvent, Message, Connected.
User ID The user ID associated with the test event. Example: admin-test.
Test Data Custom JSON-formatted data payload for the test event. Example: {"message": "test event", "timestamp": "2024-01-01T00:00:00Z"}.

Output

The node outputs a JSON array where each item corresponds to the result of sending the test event. The structure reflects the response from the DinastiAPI server after posting the test event. If successful, this typically includes confirmation details about the event dispatch.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the DinastiAPI Admin API.
  • The node makes HTTP requests to the configured DinastiAPI endpoint URL using the provided admin token.
  • Proper network access to the DinastiAPI service is necessary.

Troubleshooting

  • Invalid JSON in Test Data: If the "Test Data" property contains malformed JSON, the node will throw an error stating "Test Data must be valid JSON." To fix this, ensure the JSON string is properly formatted.
  • Authentication Errors: If the API key or token is invalid or missing, HTTP requests will fail. Verify that the credential is correctly configured and has sufficient permissions.
  • Network Issues: Connectivity problems to the DinastiAPI endpoint can cause request failures. Check network settings and endpoint availability.
  • Unexpected API Responses: If the API returns errors, inspect the returned message for clues. Common issues include invalid event types or user IDs.

Links and References

Discussion