Zoom oauth app authorize api redirects to Login page


I am trying to use an api to authorize and to get authorize code, but instead i am redirected to Login page.

Am initiating the call from a web api on local host, and the redirect URL is on the server.

The URL I am using is copied from the App’s Add button link and it works fine when i click on the add button in the site and returns a code.

Request for help to resolve this issue