# Server to Server OAuth migration: api call to get bearer token

**URL:** <https://devforum.zoom.us/t/server-to-server-oauth-migration-api-call-to-get-bearer-token/92153>\
**Category:** API and Webhooks\
**Created:** [July 20, 2023, 3:53pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-migration-api-call-to-get-bearer-token/92153 "2023-07-20T15:53:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rreid](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rreid](https://devforum.zoom.us/u/rreid)\
**Post date:** [July 20, 2023, 3:53pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-migration-api-call-to-get-bearer-token/92153/1 "2023-07-20T15:53:07Z")

</div>

Hi,

We currently have JWT app that needs to be migrated to Server to Server OAuth.

The app assigns certain team members who have a Zoom accounts as Assistants to other staff within our Enterprise Zoom Account.

Our app assigns the assistants programmatically using Zoom API’s and C#

We have created a Server to Server OAuth app.

I assume we can call the end point [https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id={accountId}](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=%7BaccountId%7D) to get a token to connect and do the work.

can we please see a C# example for getting the bearer token using [https://zoom.us/oauth/token](https://zoom.us/oauth/token)

Thanks,  
Ray

---

<div class="post-metadata">

**Author:** ![MultiplayerSession](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/multiplayersession/32/66446_2.png) [@MultiplayerSession](https://devforum.zoom.us/u/MultiplayerSession)\
**Post date:** [July 20, 2023, 6:00pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-migration-api-call-to-get-bearer-token/92153/2 "2023-07-20T18:00:25Z")

</div>

I’ve previously shared a [C# implementation for a different organization’s OAuth API](https://devforum.zoom.us/t/need-help-with-server-to-server-oauth-authentication-using-c/88187/5); you will need to adjust it to fit Zoom’s URLs (such as changing the `grant_type` value).

---

<div class="post-metadata">

**Author:** ![rreid](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rreid](https://devforum.zoom.us/u/rreid)\
**Post date:** [July 21, 2023, 1:11pm UTC](https://devforum.zoom.us/t/server-to-server-oauth-migration-api-call-to-get-bearer-token/92153/3 "2023-07-21T13:11:21Z")

</div>

Thank you, this is great!!

Ray

---

<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:** [July 24, 2024, 4:48am UTC](https://devforum.zoom.us/t/server-to-server-oauth-migration-api-call-to-get-bearer-token/92153/4 "2024-07-24T04:48:10Z")

</div>

Closed on July 24, 2024, 4:48am UTC

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