Overview
The Wapisimo node's "Delete Webhook" operation allows you to remove a specific webhook associated with a given phone ID from the Wapisimo API. This is useful in scenarios where you no longer want to receive webhook notifications for certain events or need to clean up unused webhooks. For example, if you have set up automated message handling and wish to stop receiving updates for a particular phone number, this operation will help you manage your webhook subscriptions efficiently.
Properties
| Name | Type | Meaning |
|---|---|---|
| Phone ID | String | The ID of the phone the webhook belongs to. |
| Webhook ID | String | The ID of the webhook to delete. |
Output
The output will be a JSON object containing the response from the Wapisimo API after attempting to delete the specified webhook. The structure of this response depends on the API but typically includes confirmation of deletion or error details.
Example output (success):
{
"success": true,
"message": "Webhook deleted successfully"
}
If an error occurs and "Continue On Fail" is enabled, the output will include an error message:
{
"error": "Error message from API"
}
Dependencies
- External Service: Requires access to the Wapisimo API.
- API Key: You must provide a valid Wapisimo API key via n8n credentials (
wapiSimoApi).
Troubleshooting
- Invalid API Key: If the API key is missing or incorrect, you may receive authentication errors. Ensure your credentials are set up correctly in n8n.
- Incorrect Phone ID or Webhook ID: Providing invalid IDs will result in errors such as "Not Found" or similar messages from the API.
- Network Issues: Connectivity problems can cause request failures; check your network connection and firewall settings.
- Common Error Messages:
401 Unauthorized: Check your API key.404 Not Found: Verify that both the Phone ID and Webhook ID are correct.400 Bad Request: Ensure all required fields are filled and valid.