Webhooks not being caught on jira server

Hello, community,
I am working on on a Jira server plugin that tracks user activities. Some of them are easy to query using the issue search API, but for others I need to implement webhooks. My idea is to add the webhooks using using the Jira REST API through my frontend and make them point to a REST path defined as a module of the plugin. When the webhook activates, the data is parsed in my desired searchable format and I can easily query it later. The only problem is - the webhooks don’t activate my listener. I have tested them using RequestBin and I have also tested my endpoint and everything works separately. I suspect its an authorization issue (probably crsf), but and the end of the day I’m sending data from Jira to Jira. Using the Java EventListener API would work to some extent, but the Jira webhooks offer more action data. What should I do?