Unable to fetch authorization code in backend code Apex

Hi Team

I am using zoom for the first time for integration and need the authorization code as a response of below endpoint.

Endpoint I am hitting : “https://zoom.us/oauth/authorize?response_type=code&redirect_uri=https://login.salesforce.com&client_id=Removed

In response I get : “System.HttpResponse[Status=Found, StatusCode=302]”

There is no authorization code returned in the response so how do we get it for backend APIs?

Note: If I paste the above endpoint in the browser, I get redirected to the redirect uri with the authorization code in the URL but I need it in the backend as a response of above end point.


Http h = new Http();
HttpRequest req = new HttpRequest();
HttpResponse hresp = h.send(req);

@developer9 In order to get the code, someone needs to click on the URL manually. Can you confirm if this is happening?

For OAuth flow please watch :point_down:

You are using C#/Java? Let me know so, that I can also help with that.

Evan i am getting same response “System.HttpResponse[Status=Found, StatusCode=302]”,When i am trying to integrate with Azure devops from salesforce …Could any one please help here to resolve this issue.
@developer9 did you resolved same issue…?if yes could you please share the solution.