Overview
This node interacts with the StockAlert.pro API to manage webhooks related to stock alerts. Specifically, the Webhook - Delete operation allows users to delete an existing webhook by its ID. This is useful for cleaning up or removing webhook endpoints that are no longer needed or valid.
Typical use cases include:
- Removing outdated webhook URLs that your application no longer listens to.
- Managing webhook lifecycle programmatically as part of automation workflows.
- Ensuring only active and relevant webhooks remain registered in your StockAlert.pro account.
Example: You have a webhook set up to receive notifications when a stock alert triggers, but you want to remove it because you changed your notification system. Using this node operation, you can delete the webhook by providing its ID.
Properties
| Name | Meaning |
|---|---|
| Webhook ID | The unique identifier of the webhook to delete |
Output
The output is a JSON array containing one object per input item processed. For the delete operation on a webhook, the output object has the following structure:
{
"success": true,
"message": "Webhook deleted successfully"
}
success: A boolean indicating if the deletion was successful.message: A confirmation message about the deletion.
No binary data is output by this operation.
Dependencies
- Requires an API key credential for authenticating with the StockAlert.pro API.
- The node uses HTTP requests to the StockAlert.pro REST API endpoints.
- No additional environment variables are required beyond the API authentication setup.
Troubleshooting
Common issues:
- Providing an invalid or non-existent webhook ID will likely result in an error from the API.
- Network connectivity problems may cause request failures.
- Insufficient permissions or invalid API credentials will prevent successful deletion.
Error messages:
- Errors returned by the API (e.g., "Webhook not found") will be thrown by the node unless "Continue On Fail" is enabled.
- To resolve errors, verify the webhook ID is correct, ensure your API key is valid, and check network access.
Links and References
- StockAlert.pro API Documentation (hypothetical link)
- n8n documentation on creating and managing webhooks