Can't get the webhooks created by connect app using the REST API.

Rahul mathews December 30, 2021

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.

1 answer

0 votes
Rahul mathews January 5, 2022

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?

Rahul mathews January 11, 2022

Can someone confirm this?

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2023

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events