In the current setup, there isn't a direct method to verify if a webhook associated with a given API Key already exists.
However, the API returns an error when trying to add a webhook with a duplicate Event and Target URL.
We can use this behavior when setting up Ghosler for the first time. Based on the response, we can automatically decide whether to create a new webhook or skip this step if it's already in place.
This approach will simplify the Ghosler setup a bit more than the existing one.
In the current setup, there isn't a direct method to verify if a webhook associated with a given API Key already exists. However, the API returns an error when trying to add a webhook with a duplicate Event and Target URL.
We can use this behavior when setting up Ghosler for the first time. Based on the response, we can automatically decide whether to create a new webhook or skip this step if it's already in place.
This approach will simplify the Ghosler setup a bit more than the existing one.