Getting Javascript is disabled while calling Authorize API

We received OAuth credentials Client ID / Secret and are trying to get the Access Token. I was told to call Authorize API to get the Authorization Code and when I tried calling GET API Log in with Atlassian account with necessary parameters. I am getting ‘JavaScript is disabled’ error. Please Advise.

Welcome to the Atlassian developer community @KrishnaswamyRamachan,

I think you have confused the /authorize endpoint with a REST API. That’s not correct. According to the Atlassian documentation:

your app should start the authorization flow by directing the user to the authorization URL

The first step in the OAuth2 flow is a redirect to a user-facing URL in the browser, not a GET request.