Scopes for creating webhooks using REST API

Hello!

I am having issues setting up a webhook using the REST API. My issue is around scopes. I have not found any documentation around what scopes are necessary to create a webhook using the REST API.

I am attempting to create a webhook on pages and I have the scope:

delete:page:confluence offline_access read:confluence-content.all read:confluence-content.summary read:confluence-props read:confluence-space.summary read:confluence-user read:content-details:confluence read:me read:page:confluence read:space-details:confluence read:space:confluence search:confluence write:confluence-content write:confluence-file write:confluence-props write:confluence-space write:page:confluence

write:page:confluence / read:page:confluence
read:confluence-content.all

These scopes seemed like they would be appropriate but I am getting this error when attempting to create my webhook:

        webhooks_url = f'{self.base_url}/rest/api/webhooks'

        webhook_payload = {
            "name": "Page Updates",
            "events": ["user_removed"],
            "url": "URL",
            "active": True,
        }

{'code': 401, 'message': 'Unauthorized; scope does not match'}

What could I be doing wrong? Any documentation or knowledge about this would be greatly appreciated, I have not found anything online related to this problem.