We are using connect app to create webhooks for a set of events to be triggered. Now as a matter of fact, Webhooks have a expiration time of 30 days. So We are planning to hit "https://your-domain.atlassian.net/rest/api/2/webhook/refresh" API which requires webhookIDs. We also found another API which will give us all the registered webhooks "https://your-domain.atlassian.net/rest/api/2/webhook". When I try to hit the GET registered webhooks with the Bearer token, it is showing empty result. But there are two webhooks registered to my connect app. Please help me resolve it.
Upon followup found that the GET /rest/api/2/webhook webhook will only work for fetching dynamic webhooks. If thats the case, what about the webhooks created via the connect app descriptor statically? Will they expire or they have a lifetime validity?
Can someone confirm this?
A bit too late maynbe, but other people might find this useful:
It looks like you're new here. Sign in or register to get started.