# Getting 403 on call OAuth token API

**URL:** <https://devforum.zoom.us/t/getting-403-on-call-oauth-token-api/9291>\
**Category:** API and Webhooks\
**Created:** [March 23, 2020, 11:43am UTC](https://devforum.zoom.us/t/getting-403-on-call-oauth-token-api/9291 "2020-03-23T11:43:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tranvuong1803](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@tranvuong1803](https://devforum.zoom.us/u/tranvuong1803)\
**Post date:** [March 23, 2020, 11:43am UTC](https://devforum.zoom.us/t/getting-403-on-call-oauth-token-api/9291/1 "2020-03-23T11:43:35Z")

</div>

**Description**  
url call:  
[https://zoom.us/oauth/token?grant\_type=authorization\_code&code=6VzfR5yS8m\_H7AYDkARTqaVcKnotkSONA&redirect\_uri=https://localhost:44399/](https://zoom.us/oauth/token?grant_type=authorization_code&code=6VzfR5yS8m_H7AYDkARTqaVcKnotkSONA&redirect_uri=https://localhost:44399/)  
var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(client\_id + “:” + client\_secret);  
Client.DefaultRequestHeaders.Add(“Authorization”, "Basic " + Convert.ToBase64String(plainTextBytes));  
HttpResponseMessage response = await Client.PostAsync(url, null);  
but response.StatusCode = Forbidden 403  
@tommy could you help me?  
@Michael_Purnell could you help me?

---

<div class="post-metadata">

**Author:** ![tranvuong1803](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@tranvuong1803](https://devforum.zoom.us/u/tranvuong1803)\
**Post date:** [March 23, 2020, 3:44pm UTC](https://devforum.zoom.us/t/getting-403-on-call-oauth-token-api/9291/2 "2020-03-23T15:44:04Z")

</div>

please help me please

---

<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:** [March 23, 2020, 10:56pm UTC](https://devforum.zoom.us/t/getting-403-on-call-oauth-token-api/9291/3 "2020-03-23T22:56:43Z")

</div>

Hey @tranvuong1803,

Are you following the OAuth guide here:

[https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom)

What is the value of `plainTextBytes`?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tranvuong1803](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@tranvuong1803](https://devforum.zoom.us/u/tranvuong1803)\
**Post date:** [March 24, 2020, 1:08am UTC](https://devforum.zoom.us/t/getting-403-on-call-oauth-token-api/9291/4 "2020-03-24T01:08:37Z")

</div>

t resolve this issue, my fault, i fotgot add contenttype: application/json to header

---

<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:** [March 24, 2020, 3:55pm UTC](https://devforum.zoom.us/t/getting-403-on-call-oauth-token-api/9291/5 "2020-03-24T15:55:26Z")

</div>

Happy to hear you got it working! 🙂

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:35pm UTC](https://devforum.zoom.us/t/getting-403-on-call-oauth-token-api/9291/6 "2020-08-21T19:35:26Z")

</div>


