# I am getting error 400 Bad Request

**URL:** <https://devforum.zoom.us/t/i-am-getting-error-400-bad-request/25159>\
**Category:** API and Webhooks\
**Tags:** faq\
**Created:** [July 25, 2020, 11:29am UTC](https://devforum.zoom.us/t/i-am-getting-error-400-bad-request/25159 "2020-07-25T11:29:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![verityinfotech](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/verityinfotech/32/1918_2.png) [@verityinfotech](https://devforum.zoom.us/u/verityinfotech)\
**Post date:** [July 25, 2020, 11:29am UTC](https://devforum.zoom.us/t/i-am-getting-error-400-bad-request/25159/1 "2020-07-25T11:29:32Z")

</div>

**Description**  
When I send for authorization\_code at that time it send me error. 400 Bad request.

**Error**  
I got Below html page error.

400 Bad Request
# 400 Bad Request

* * *
zoom

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
[https://api.zoom.us/oauth/token?grant\_type=authorization\_code&code={$code}&redirect\_uri={$redirect\_uri}](https://api.zoom.us/oauth/token?grant_type=authorization_code&code=%7B%24code%7D&redirect_uri=%7B%24redirect_uri%7D)

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. I am authenticating from Zoom. It send me code. And then I am sending request for access\_token and refresh\_token
2. But it show error 400 Bad Request.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 28, 2020, 7:33pm UTC](https://devforum.zoom.us/t/i-am-getting-error-400-bad-request/25159/3 "2020-07-28T19:33:36Z")

</div>

Hey @verityinfotech,

Make sure you are sending a POST request when getting an access token.

> **[OAuth 2.0 - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/oauth#step-2-request-access-token)**
>
> OAuth with Zoom
> 
> The Zoom API uses OAuth 2.0 to authenticate and authorize users to make requests. To setup access credentials and request scopes for yo...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![verityinfotech](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/verityinfotech/32/1918_2.png) [@verityinfotech](https://devforum.zoom.us/u/verityinfotech)\
**Post date:** [July 29, 2020, 10:07am UTC](https://devforum.zoom.us/t/i-am-getting-error-400-bad-request/25159/4 "2020-07-29T10:07:39Z")

</div>

Hello Tommy,

Yes I am sending a post request. Everything is working fine on the production server. But not on the development server.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 31, 2020, 7:46pm UTC](https://devforum.zoom.us/t/i-am-getting-error-400-bad-request/25159/5 "2020-07-31T19:46:51Z")

</div>

Hey @verityinfotech,

Make sure you have installed the development version of your app.

Please provide exact steps to reproduce the issue and a screen shot of the error.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![verityinfotech](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/verityinfotech/32/1918_2.png) [@verityinfotech](https://devforum.zoom.us/u/verityinfotech)\
**Post date:** [August 1, 2020, 11:00am UTC](https://devforum.zoom.us/t/i-am-getting-error-400-bad-request/25159/6 "2020-08-01T11:00:25Z")

</div>

Hello Tommy,

I am following the below document.  
[https://marketplace.zoom.us/docs/guides/auth/oauth](https://marketplace.zoom.us/docs/guides/auth/oauth)

**Step1 :- Opening url in browser**

```auto
[https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://yourapp.com](https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://yourapp.com)

```

**Step 2:- It will tell me to authenticate.**

 ![1579641619689.png](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/94f5fe79fa13f278344c1d5948a9a210054bfed2.png)

**Step 3: It will send me code in response. And I am sending request for request token with this code.**  
**My request is**

```auto
[https://zoom.us/oauth/token?grant_type=authorization_code&code=obBEe8ewaL_KdYKjnimT4KPd8KKdQt9FQ&redirect_uri=https://yourapp.com](https://zoom.us/oauth/token?grant_type=authorization_code&code=obBEe8ewaL_KdYKjnimT4KPd8KKdQt9FQ&redirect_uri=https://yourapp.com)

```

And in header I am sending base64encoded string of Client\_ID:Client\_Secret.

This method is working fine with ubuntu. But it show error in clearos. Many of our customers are using this integration. But we are facing issue in clearos only.

It shows me error message **400 Bad Request**. And bad request error is because of incorrect data receive by zoom. So I want to know what data I am missing with clearos ? Please guide me in this matter.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 8, 2020, 11:00am UTC](https://devforum.zoom.us/t/i-am-getting-error-400-bad-request/25159/7 "2020-08-08T11:00:33Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
