Overview
This node, named "Wuzapi Admin," provides administrative operations for managing users and global settings in the Wuzapi WhatsApp API system. It is useful for automating user management tasks such as creating new users with specific configurations, deleting users, listing all users, and managing global system statistics and configurations.
A common scenario would be integrating this node into an automation workflow where new WhatsApp API users need to be provisioned dynamically with custom webhook URLs, event subscriptions, proxy settings, S3 storage options, or RabbitMQ messaging configurations. For example, a company could automate onboarding of new clients by creating users with tailored event subscriptions and storage settings.
Properties
| Name | Meaning |
|---|---|
| User Name | The name of the user to create. |
| User Token | Authentication token associated with the user. |
| Additional Options | A collection of optional settings for the user: |
| - Webhook URL | URL to receive webhook events for the user. |
| - Events | Types of events to subscribe to (e.g., All, Message, Presence). |
| - Proxy Configuration | Settings for proxy usage including enabling proxy and specifying the proxy URL (e.g., socks5://user:pass@host:port). |
| - S3 Configuration | Settings for S3 storage including access key, secret key, bucket name, endpoint URL, region, media delivery method (Base64, S3, Both), path style URLs, public URL, retention days, and whether S3 is enabled. |
| - RabbitMQ Configuration | Settings for RabbitMQ messaging including enabling RabbitMQ, connection URL, exchange name, queue name, routing key pattern, events to subscribe to, durable flag, auto-delete flag, exclusive flag, no-wait flag, and delivery mode (Non-Persistent or Persistent). |
Output
The node outputs JSON data representing the result of the performed operation. For the "Create User" operation, the output JSON contains the response from the Wuzapi Admin API after attempting to create the user with the specified parameters and configurations.
The output structure varies depending on the operation but generally includes success confirmation or error details. No binary data output is produced by this node.
Dependencies
- Requires an API authentication token credential to connect to the Wuzapi Admin API.
- The node makes HTTP requests to the Wuzapi Admin API endpoint configured in the credentials.
- No additional external dependencies are required beyond the API access.
Troubleshooting
- Invalid JSON in Test Data: When sending a global test event, the "Test Data" property must contain valid JSON. Invalid JSON will cause an error.
- Authentication Errors: If the API token credential is missing or invalid, the node will fail to authenticate with the Wuzapi Admin API.
- Missing Required Fields: The "User Name" and "User Token" fields are mandatory for creating a user; omitting them will cause errors.
- Proxy or S3 Misconfiguration: Incorrect proxy URLs or S3 credentials/settings may cause failures when creating users with those options enabled.
- RabbitMQ Configuration Issues: Enabling RabbitMQ without proper connection details or permissions can lead to connection errors.
To resolve these issues:
- Ensure all required fields are filled correctly.
- Validate JSON input where applicable.
- Verify API credentials and endpoint URLs.
- Double-check proxy, S3, and RabbitMQ configuration values.
Links and References
- Wuzapi WhatsApp API Documentation (replace with actual URL)
- n8n HTTP Request Node Documentation
- Amazon S3 Documentation
- RabbitMQ Official Site