# REST API call authentication issues

**URL:** <https://devforum.zoom.us/t/rest-api-call-authentication-issues/5901>\
**Category:** API and Webhooks\
**Created:** [September 13, 2019, 5:12pm UTC](https://devforum.zoom.us/t/rest-api-call-authentication-issues/5901 "2019-09-13T17:12:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 13, 2019, 5:23pm UTC](https://devforum.zoom.us/t/rest-api-call-authentication-issues/5901/2 "2019-09-13T17:23:43Z")

</div>

Hey @prasanth.pendham,

The authorization flow to call the GET `/im/users/{{ USER ID }}/channels` endpoint is a little different then the Chatbot Credentials and JWT flow.

In order to call the [GET /im/users/{{ USER ID }}/channels](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/4) (again, this endpoint is deprecated, [but a new one is coming out soon.](https://marketplace.zoom.us/docs/guides/getting-started/stay-up-to-date/upcoming-changes/api)) you must use an OAuth App Type, or use a Chatbot App Type, and [use the OAuth flow to get the proper access\_token](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom).

Basically once you install your Chatbot, you will use the `code` in the redirect url to [request an access\_token](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#request-access-token), and then you can use that to call the GET `/im/users/{{ USER ID }}/channels` endpoint. For example:

POST `https://zoom.us/oauth/token?grant_type=code&code={{ code in redirect url }}&redirect_uri={{ your redirect url }}`

Headers: `"Authorization" : "Basic base64(client_id:client_secret)"`

Will give you the access\_token you need.

Let me know if you have any questions!

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/rest-api-call-authentication-issues/5901)._
