I've added webhooks using Trello's API (Node JS package). How do I get the current webhooks or how do I get an existing webhook ID?
Could'nt find a way through the API: https://developers.trello.com/advanced-reference/webhook
Here it says that:
There are three ways to delete webhooks.
- Using the DELETE route on webhooks DELETE https://api.trello.com/1/webhooks/[WEBHOOK_ID]?key=[APPLICATION_KEY]&token=[USER_TOKEN]
- If the webhook request from Trello, when POSTing to the callbackURL, receives an HTTP 410 Gone response, the webhook will be deleted.
- If the token that the webhook is bound to is revoked or expires, then the webhook will be deleted
First method required the ID, second method requires me to take down the server everytime I want to erase a webhook and third is not better. Any idea how to get the IDs?