# De-activating JWT causes error in server-to-server

**URL:** <https://devforum.zoom.us/t/de-activating-jwt-causes-error-in-server-to-server/94921>\
**Category:** Meetings\
**Created:** [September 12, 2023, 12:40pm UTC](https://devforum.zoom.us/t/de-activating-jwt-causes-error-in-server-to-server/94921 "2023-09-12T12:40:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davisg1](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@davisg1](https://devforum.zoom.us/u/davisg1)\
**Post date:** [September 12, 2023, 12:40pm UTC](https://devforum.zoom.us/t/de-activating-jwt-causes-error-in-server-to-server/94921/1 "2023-09-12T12:40:33Z")

</div>

**Description**  
_de-activating JWT causes error in server-to-server_

**Error?**  
_Account does not enabled REST API._

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_deactivate JWT_  
_authenticate with Server-to-Server_  
_view errror_

---

<div class="post-metadata">

**Author:** ![davisg1](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@davisg1](https://devforum.zoom.us/u/davisg1)\
**Post date:** [September 12, 2023, 12:42pm UTC](https://devforum.zoom.us/t/de-activating-jwt-causes-error-in-server-to-server/94921/2 "2023-09-12T12:42:53Z")

</div>

I migrated our code per the migration guides from a JWT app to a Server-to-Server app. My code only calls the Server-to-Server app and uses the clientID and client secret from the Server to Server app (not from the JWT app) and uses the Server-to-Server endpoint

[https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id=xxxx](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=xxxx)

However when the JWT app is de-activated the Server-To-Server app breaks with

{“code”:200,“message”:“Account does not enabled REST API.”}.

Please advise.

---

<div class="post-metadata">

**Author:** ![davisg1](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@davisg1](https://devforum.zoom.us/u/davisg1)\
**Post date:** [September 12, 2023, 12:47pm UTC](https://devforum.zoom.us/t/de-activating-jwt-causes-error-in-server-to-server/94921/3 "2023-09-12T12:47:10Z")

</div>

and when I re-activate the JWT app then the Server-to-SErver app works again… even though as I said all my code has been remediated to only use Server-to-Server clientId, client secret and a different endpoint for authentication - [https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id=xxxx](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=xxxx)

Makes no sense yet 🙂

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 12, 2023, 4:47pm UTC](https://devforum.zoom.us/t/de-activating-jwt-causes-error-in-server-to-server/94921/4 "2023-09-12T16:47:03Z")

</div>

Hi @davisg1  
Thanks for reaching out to us ! I am happy to look into this.  
I will send you a private message to get more information about your account so I can investigate this further!  
Cheers,  
Elisa
