# Error when requesting the Access token

**URL:** <https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136>\
**Category:** API and Webhooks\
**Created:** [December 19, 2019, 3:45pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136 "2019-12-19T15:45:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![moustaphaosman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/moustaphaosman/32/2649_2.png) [@moustaphaosman](https://devforum.zoom.us/u/moustaphaosman)\
**Post date:** [December 19, 2019, 3:45pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/1 "2019-12-19T15:45:13Z")

</div>

when I request the access token from : [https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/sendachatmessage](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/sendachatmessage)  
it open an new window and give me this error  
Invalid client\_id: 1gkkjmaMGsPc6GDhVJ4OJhRO7flE1m7N (4,700)  
and the green button keeps spinning

I tested on Firefox and google chrome

your prompt reply is highly appreciated

Thanks,  
MO

---

<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:** [December 19, 2019, 8:58pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/2 "2019-12-19T20:58:44Z")

</div>

Hey @moustaphaosman, thanks for posting and using Zoom!

I just tested and it worked. Make sure you are providing the client\_id and client\_secret of your Chatbot development or production credentials.

Also if you could share a screenshot of the error that would be great!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![moustaphaosman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/moustaphaosman/32/2649_2.png) [@moustaphaosman](https://devforum.zoom.us/u/moustaphaosman)\
**Post date:** [December 19, 2019, 9:43pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/3 "2019-12-19T21:43:38Z")

</div>

Thank you @tommy for replying, it is still not working for me, please see attached screenshot

 ![Error](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/504742dfa0cfee05b0c1f7e8b712dbe552108bd7.png)

---

<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:** [December 19, 2019, 9:59pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/4 "2019-12-19T21:59:42Z")

</div>

Hey @moustaphaosman,

Add `https://zoom.us` as your redirect URL in your app settings and try again. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![moustaphaosman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/moustaphaosman/32/2649_2.png) [@moustaphaosman](https://devforum.zoom.us/u/moustaphaosman)\
**Post date:** [December 19, 2019, 10:16pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/5 "2019-12-19T22:16:16Z")

</div>

> [@tommy](#):
>
> [https://zoom.us](https://zoom.us)

I changed the " Redirect URL for OAuth" to [https://zoom.us](https://zoom.us) and now I cannot install the app from " Test the App Locally" screen

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2aae76d7610b6c6cbf93d9e775829ceb810027fe.png)

---

<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:** [December 19, 2019, 10:26pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/6 "2019-12-19T22:26:34Z")

</div>

Hey @moustaphaosman,

Did you also add `https://zoom.us` to the domain whitelist?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![moustaphaosman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/moustaphaosman/32/2649_2.png) [@moustaphaosman](https://devforum.zoom.us/u/moustaphaosman)\
**Post date:** [December 19, 2019, 10:32pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/7 "2019-12-19T22:32:17Z")

</div>

Thank you so much @tommy, it worked!

---

<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:** [December 19, 2019, 10:35pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/8 "2019-12-19T22:35:26Z")

</div>

Great @moustaphaosman!

I’m happy it’s working now! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:08pm UTC](https://devforum.zoom.us/t/error-when-requesting-the-access-token/7136/9 "2020-08-21T19:08:36Z")

</div>


