Hey! I’d recommend a Forge app to achieve this. Which module to use depends a bit on which webhook direction you mean.
- Incoming webhook / webtrigger
Use this when an external system should call your Forge app.
Documentation: https://developer.atlassian.com/platform/forge/runtime-reference/web-trigger/ - Confluence product event webhook / trigger
Use this when Confluence should call your app after something happens in Confluence, for example when a page is created, updated, or deleted.
Documentation: https://developer.atlassian.com/platform/forge/manifest-reference/modules/trigger/
Confluence events list: https://developer.atlassian.com/platform/forge/events-reference/confluence/
Hope this pointed you to the right direction!
Best,
Julian