# Error:invalid\_client

**URL:** <https://devforum.zoom.us/t/error-invalid-client/39100>\
**Category:** API and Webhooks\
**Created:** [December 23, 2020, 7:05pm UTC](https://devforum.zoom.us/t/error-invalid-client/39100 "2020-12-23T19:05:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark.krawec](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mark.krawec](https://devforum.zoom.us/u/mark.krawec)\
**Post date:** [December 23, 2020, 7:05pm UTC](https://devforum.zoom.us/t/error-invalid-client/39100/1 "2020-12-23T19:05:49Z")

</div>

**Description**  
I’m trying to programmatically add attendees to webinars. I can’t get past the very first hurdle: requesting a user authorization token. I’ve been trying for days to do so using RestSharp, but I invariably get the same error:

**Error**  
{“reason”:“Invalid client\_id or client\_secret”, “error”:“Invalid\_client”}  
Unauthorized

To say Zoom’s documentation is unhelpful would be unwarrantedly generous.

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

**Which Endpoint/s?**  
[https://zoom.us/oauth/authorize](https://zoom.us/oauth/authorize)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [December 28, 2020, 6:00pm UTC](https://devforum.zoom.us/t/error-invalid-client/39100/2 "2020-12-28T18:00:12Z")

</div>

Hi @mark.krawec,

Thanks for reaching out about this, and happy to help.

It sounds like you’ve already seen our guide for retrieving an access token, right?  
[https://marketplace.zoom.us/docs/guides/auth/oauth](https://marketplace.zoom.us/docs/guides/auth/oauth)

If you’re still having trouble, a few things to double check:

- You’ve successfully created an OAuth App to generate a Client ID and Client Secret
- You’re grabbing the `code` parameter from the redirect URL after hitting the user installation URL (install button, testable URL)
- You’re including the required Authorization header in your request

Once you’ve double checked these things, I also recommend checking out this thread:

> [@"Invalid client\_id or client\_secret"](https://devforum.zoom.us/t/invalid-client-id-or-client-secret/5252/4):
>
> Hey @abhilash, Did you include the required [Authorization header](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#request-access-token) in your request? "Authorization": "Basic base64Encode(Client\_Id:Client\_Secret)" ([You can base64encode them here.](https://www.base64encode.org/) Make sure to include the : in between your client\_id and client\_secret) It will look something like this "Authorization": "Basic YXNkZmFzZGZha3M6YWRramZiYXNrbGRqZmFzZGY=" Also, you need to change redirection\_uri to redirect\_uri. Let me know if this works! Thanks, Tommy

Please let me know if this helps!

Best,  
Will  
\*

---

<div class="post-metadata">

**Author:** ![mark.krawec](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mark.krawec](https://devforum.zoom.us/u/mark.krawec)\
**Post date:** [December 28, 2020, 8:51pm UTC](https://devforum.zoom.us/t/error-invalid-client/39100/3 "2020-12-28T20:51:14Z")

</div>

Hi Will

Yes, I’ve been through the guide a few times. Sadly it hasn’t helped. I still haven’t been able to decipher how to request a token. I’ve also read the thread you linked, also repeatedly. Haven’t managed to glean anything useful from that either.

This is the first time I’ve tried to do anything with REST, let alone Zoom’s API, so it may be that there’s something I don’t understand on an even more fundamental level than the documentation here covers.

---

<div class="post-metadata">

**Author:** ![mark.krawec](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mark.krawec](https://devforum.zoom.us/u/mark.krawec)\
**Post date:** [December 29, 2020, 1:52pm UTC](https://devforum.zoom.us/t/error-invalid-client/39100/4 "2020-12-29T13:52:08Z")

</div>

Tried again earlier this morning & am at least receiving a different error. Now it’s telling me “Invalid client\_id:(4,700)” which is very odd because I copied that directly from the OAuth App ([https://marketplace.zoom.us/develop/apps/9SMZLoWdT9u9Fn0n6BmLHA/credentials](https://marketplace.zoom.us/develop/apps/9SMZLoWdT9u9Fn0n6BmLHA/credentials))

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [December 29, 2020, 6:48pm UTC](https://devforum.zoom.us/t/error-invalid-client/39100/5 "2020-12-29T18:48:22Z")

</div>

Hi @mark.krawec,

Thanks for checking those details out. In order to take a closer look, can you please send us an email at [developersupport@zoom.us](mailto:developersupport@zoom.us) with the following details:

- The email address or user ID of the OAuth App owner (the app you’re using to authenticate your requests)
- The full request URL **and** authorization header you’re using when requesting an access token:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/1/413efe2d03299938a2075d0f23e56ee916f66f58.png)

This will help me to take a closer look at your account and credentials to further debug.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![mark.krawec](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mark.krawec](https://devforum.zoom.us/u/mark.krawec)\
**Post date:** [December 29, 2020, 8:20pm UTC](https://devforum.zoom.us/t/error-invalid-client/39100/6 "2020-12-29T20:20:07Z")

</div>

I think I’m getting an idea what the problem is here. At no point is the end user ever going to (or at least is ever intended to go to) `https://zoom.us/oauth/authorize` to receive an authorization code.

The idea behind what I’m doing is this: we’re using Zoom to enable remote participation in certain public meetings. When the user goes to a certain web page & signs up to speak at the public meeting, I want to - with absolutely no further involvement of the user - create a new attendee for a meeting which will have been previously created. They shouldn’t have to follow a link or do anything else at all.

I tried making a request to `https://zoom.us/oauth/authorize` accompanied by the required three parameters, but that got me no response at all. As in all I got back was literally “0”. Just the number 0, nothing else.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [December 30, 2020, 3:33pm UTC](https://devforum.zoom.us/t/error-invalid-client/39100/7 "2020-12-30T15:33:13Z")

</div>

Hi @mark.krawec,

I’ve since connected with you over email, so I will continue the conversation there!

Thanks,  
Will

---

<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:** [January 30, 2021, 1:33am UTC](https://devforum.zoom.us/t/error-invalid-client/39100/8 "2021-01-30T01:33:24Z")

</div>

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