# C# API Auth token issues

**URL:** <https://devforum.zoom.us/t/c-api-auth-token-issues/4865>\
**Category:** API and Webhooks\
**Created:** [July 3, 2019, 11:06am UTC](https://devforum.zoom.us/t/c-api-auth-token-issues/4865 "2019-07-03T11:06:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.geng](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@james.geng](https://devforum.zoom.us/u/james.geng)\
**Post date:** [July 3, 2019, 11:06am UTC](https://devforum.zoom.us/t/c-api-auth-token-issues/4865/1 "2019-07-03T11:06:18Z")

</div>

Hello Ojus,

sorry for the delay in reply, could not reply to earlier post was getting error.  
thank you Ojus.  
tried the documentation

POST [https://zoom.us/oauth/token](https://zoom.us/oauth/token)

{

“grant\_type”:“authorization\_code”,

“code”:“XXXXXXXXXXXXXXXXXX”,

“redirect\_uri”:“[https://myredirectURI](https://myredirecturi/)”

}

added Header information  
String authHeader = System.Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(clientId + “:” + clientSecret));  
request.Headers.Add(“Authorization”, “Basic” + authHeader);

i get error Bad Request as response.

also the app i created in my zoom, will the authorization code work if app not published?  
if so where do you set the app icon for the app, added image still publish button not enabled.

what am i missing ? please advise, thank you.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [July 3, 2019, 8:38pm UTC](https://devforum.zoom.us/t/c-api-auth-token-issues/4865/2 "2019-07-03T20:38:56Z")

</div>

HI James,

Can you please send your request details to [developersupport@zoom.us](mailto:developersupport@zoom.us)?

Thanks

---

<div class="post-metadata">

**Author:** ![dean\_shexie.com.au](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dean\_shexie.com.au](https://devforum.zoom.us/u/dean_shexie.com.au)\
**Post date:** [April 8, 2020, 1:36am UTC](https://devforum.zoom.us/t/c-api-auth-token-issues/4865/3 "2020-04-08T01:36:57Z")

</div>

Hi James,

Any chance you can post the result?

I’m stuck in this spot myself. I don’t want to use the SDK, Postman for Windows doesn’t work, because it wants to run on the graphics card?(I think I read that correctly)?, and the Zoom documentation I suspect needs a freshen up - it’s examples don’t seem to reflect the results of API v2.

Dean

---

<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:** [April 8, 2020, 7:54am UTC](https://devforum.zoom.us/t/c-api-auth-token-issues/4865/4 "2020-04-08T07:54:12Z")

</div>

Hey @dean_shexie.com.au,

Please follow our updated OAuth docs here: [https://marketplace.zoom.us/docs/guides/auth/oauth](https://marketplace.zoom.us/docs/guides/auth/oauth)

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, 8:14pm UTC](https://devforum.zoom.us/t/c-api-auth-token-issues/4865/5 "2020-08-21T20:14:27Z")

</div>


