Overview
This node integrates with the DinastiAPI WhatsApp API to perform various chat-related operations. Specifically, for the "Delete Message" operation, it allows users to delete a message they have previously sent by specifying the message ID. This is useful in scenarios where you want to programmatically remove messages from a WhatsApp conversation, such as retracting incorrect information or cleaning up chat history.
Practical example:
- Automatically deleting a message that contains sensitive information after a certain workflow step completes.
- Removing outdated notifications sent via WhatsApp to keep conversations relevant.
Properties
| Name | Meaning |
|---|---|
| Message ID | ID of the message to delete |
The "Message ID" property is required and expects the unique identifier of the message you want to delete.
Output
The node outputs JSON data representing the response from the DinastiAPI WhatsApp API after attempting to delete the specified message. The structure typically includes confirmation details about the deletion operation.
No binary data output is produced for this operation.
Example output JSON structure (conceptual):
{
"success": true,
"message": "Message deleted successfully",
"id": "3EB06F9067F80BAB89FF"
}
Dependencies
- Requires an active connection to the DinastiAPI WhatsApp API.
- Needs an API key credential configured in n8n to authenticate requests.
- The node uses a POST request to the
/chat/deleteendpoint of the DinastiAPI.
Troubleshooting
Common issues:
- Invalid or missing Message ID: Ensure the message ID provided exists and is correctly formatted.
- Authentication errors: Verify that the API key credential is valid and has necessary permissions.
- Network or API downtime: Check connectivity and DinastiAPI service status.
Error messages:
"error": "Message ID not found": The specified message ID does not exist or cannot be accessed. Double-check the ID."error": "Unauthorized": Authentication failed; reconfigure the API key credential.- Timeout or network errors: Retry the operation or check your internet connection.
Links and References
- DinastiAPI WhatsApp API Documentation (example link, replace with actual if available)
- n8n documentation on Creating Custom Nodes