Hello,
I’m trying to subscribe a webhook through REST API in which i’m facing an issue.
I have tried the version 1 API with basic auth(“email:api_key” in base64 encoded) but it is throwing the following error.
{
“message”: “Client must be authenticated to access this resource.”,
“status-code”: 401
}
From the JIRA REST API Documentation i understand that managing webhooks can be only accessible through connect and OAuth 2.0 apps. I have created a new app in my developer account and using the client and client secret i have generated the access token.
Using that access token with “Authorization : Bearer <access_token>” in the headers, still i am facing the same error. During the OAuth login, i’m able to see the access for manage webhooks (PFA)
But still “client must be authenticated” when i try registering a webhook. I have tried the same with the REST API version 3 endpoints (/rest/api/3/webhook) still that error persists.