Unable to create dynamic webhook gettting error in that

Hi Team,

I am try to use dynamic webhook in jira cloud addon.
Create a button on the page and on button click calling this rest api function.

/* App frontend script */
            function abc()
            {
                  var bodyData = `{
                     "url": "https://85db1eb4a3b3.ngrok.io/webhook-received",
                     "webhooks": [
                        {
                        	"jqlFilter": "project = ACCC4",
                            "events": ["jira:issue_created", "jira:issue_updated"]
                        }
                     ]
                  }`;

                  var bodyData = `{
  "webhooks": [
    {
      "jqlFilter": "project = ACCC4",
      "events": [
        "jira:issue_created",
        "jira:issue_updated"
      ]
    }
  ],
  "url": "https://your-app.example.com/webhook-received"
}`;


                  AP.request({
                                                                url: '/rest/api/3/webhook',
                                                                type: 'POST',
                                                                data : bodyData,
                                                                contentType: 'application/json',
                                                				Accept: 'application/json',
                                                                  success: function(result)
                                                                  {
                                                                      console.log("TEST********"+result);
                                                                  },
                                                                  error: function(result)
                                                                  {
                                                                        console.log("error********"+JSON.stringify(result)); 
                                                                  }
                                                              });
            }

Getting 403 error in response.

error********{“status”:403,“statusText”:"",“responseText”:"{“errorMessages”:[“Only apps can access this resource.”],“errors”:{}}"}

any Idea why I am getting this error??

Please suggest any idea how to fix this issue.

Regards,
Sarika Dalal

Hi Team,

Any updates on this team.
Its a blocker for me.

Team Any updates on this I am not able to create Dynamic webhook.