TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

This node allows you to delete a specific webhook by its unique identifier. It is useful in scenarios where you want to manage and clean up webhooks that are no longer needed or valid, such as removing outdated event listeners or stopping integrations that rely on certain webhook callbacks.

For example, if you have set up multiple webhooks to listen for events from an external service and one of them is obsolete or compromised, you can use this node to delete that particular webhook by providing its ID.

Properties

Name Meaning
Id The unique identifier of the webhook object you want to delete. This is required to specify which webhook should be removed.

Output

The output JSON will typically contain information about the result of the deletion operation. This may include confirmation of successful deletion or details about any errors encountered. The exact structure depends on the API response but generally confirms whether the webhook was deleted.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential to authenticate requests to the external service managing the webhooks.
  • The node uses a base URL configured via credentials to connect to the appropriate API endpoint.
  • The external service must support webhook deletion via an HTTP DELETE request using the provided webhook ID.

Troubleshooting

  • Invalid or missing Id: If the webhook ID is not provided or incorrect, the node will fail to delete the webhook. Ensure the ID is correct and corresponds to an existing webhook.
  • Authentication errors: If the API key or authentication token is invalid or expired, the node will return an authorization error. Verify your credentials and update them if necessary.
  • Webhook not found: If the webhook with the specified ID does not exist, the API may return a "not found" error. Confirm the ID before attempting deletion.
  • Network issues: Connectivity problems can cause request failures. Check your network connection and API availability.

Links and References

  • Refer to the external service’s API documentation for webhook management and deletion endpoints.
  • n8n documentation on how to configure API credentials and use HTTP request nodes for custom integrations.

Discussion