# Server2Server OAuth returning: {"code":2031,"message":"Zoom Phone has not been enabled for this account."}

**URL:** <https://devforum.zoom.us/t/server2server-oauth-returning-code-2031-message-zoom-phone-has-not-been-enabled-for-this-account/99308>\
**Category:** API and Webhooks\
**Tags:** phone, api, s2s-oauth\
**Created:** [November 30, 2023, 1:02pm UTC](https://devforum.zoom.us/t/server2server-oauth-returning-code-2031-message-zoom-phone-has-not-been-enabled-for-this-account/99308 "2023-11-30T13:02:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brenden735](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brenden735/32/50195_2.png) [@brenden735](https://devforum.zoom.us/u/brenden735)\
**Post date:** [November 30, 2023, 1:02pm UTC](https://devforum.zoom.us/t/server2server-oauth-returning-code-2031-message-zoom-phone-has-not-been-enabled-for-this-account/99308/1 "2023-11-30T13:02:21Z")

</div>

In an attempt to call Zoom API to retrieve call recordings by user, we receive the following response. I’ve attached the Request info as well.

Using the Master Admin account to create the App. We created support request, were re-directed to here. We make significant use of Zoom Phone.

Access Token: ey…\_s2i67tQ  
Request URL: [https://api.zoom.us/v2/phone/users/user.email%40domain.com/recordings?page\_size=30&from=2023-10-31&to=2023-11-30](https://api.zoom.us/v2/phone/users/user.email%40domain.com/recordings?page_size=30&from=2023-10-31&to=2023-11-30)  
Request Headers:  
Authorization: Bearer ey…\_s2i67tQ  
Accept: application/json  
Response Status Code: Forbidden  
Response Headers:  
Date: Thu, 30 Nov 2023 12:50:37 GMT  
Connection: keep-alive  
x-zm-trackingid: WEB\_01ec514e8e4dd1d306c35d27aa66ef9f  
x-zm-region: VA2  
Vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers  
X-Frame-Options: deny  
error\_message: Zoom Phone has not been enabled for this account.  
Strict-Transport-Security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains  
CF-Cache-Status: DYNAMIC  
Set-Cookie: \_\_cf\_bm=8L0.oFAWa8VYul2922oWGwr.ci0Tni7Qo4gkX3XHaa0-1701348637-0-AfnKOJGoWwl+Ioys1pTK2PxCkOiYVYtE+ubU/CxrmeLk9OG81xnJOU0TPOfn5CPTUQrp2t6lB6Iv6kXdQupuWjQ=; path=/; expires=Thu, 30-Nov-23 13:20:37 GMT; [domain=.zoom.us](http://domain=.zoom.us); HttpOnly; Secure  
Report-To: {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v3?s=XukvuptR14v8Bv54ZEF4icjW2j3tnaGe2PY2UuWyWXoyaGDZRhE8%2FAMkUjWZqsgGBXnANw5IAXqSVaNeWKtGYFMvn8IkR0Ts8iVwv6enbVozqZpJppE9hpIDyKjA”}],“group”:“cf-nel”,“max\_age”:604800}  
NEL: {“success\_fraction”:0.01,“report\_to”:“cf-nel”,“max\_age”:604800}  
Server: cloudflare  
CF-RAY: 82e3379519336991-PHL  
Alt-Svc: h3=“:443”; ma=86400  
Error Response Content: {“code”:2031,“message”:“Zoom Phone has not been enabled for this account.”}

---

<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:** [November 30, 2023, 10:29pm UTC](https://devforum.zoom.us/t/server2server-oauth-returning-code-2031-message-zoom-phone-has-not-been-enabled-for-this-account/99308/2 "2023-11-30T22:29:30Z")

</div>

@brenden735 have you enabled zoom phone for the user on whos behalf you are making the API calls?

---

<div class="post-metadata">

**Author:** ![brenden735](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brenden735/32/50195_2.png) [@brenden735](https://devforum.zoom.us/u/brenden735)\
**Post date:** [December 2, 2023, 7:44pm UTC](https://devforum.zoom.us/t/server2server-oauth-returning-code-2031-message-zoom-phone-has-not-been-enabled-for-this-account/99308/3 "2023-12-02T19:44:54Z")

</div>

This seems to be a common problem.

Solution: You must use the OAuth protocols found under Server to Server OAuth instructions. We had implemented standard rest API OAuth instructions.

> **[Server-to-Server OAuth](https://developers.zoom.us/docs/internal-apps/s2s-oauth/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<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:** [December 4, 2023, 8:16am UTC](https://devforum.zoom.us/t/server2server-oauth-returning-code-2031-message-zoom-phone-has-not-been-enabled-for-this-account/99308/4 "2023-12-04T08:16:32Z")

</div>

Hi @brenden735 ,

Awesome to hear your issue’s fixed! For the benefit of the Zoom developer community, may I kindly request that you provide a brief summary of the steps you took to resolve the problem? Your insights would be invaluable in assisting others who might encounter a similar challenge.

---

<div class="post-metadata">

**Author:** ![brenden735](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brenden735/32/50195_2.png) [@brenden735](https://devforum.zoom.us/u/brenden735)\
**Post date:** [December 4, 2023, 1:27pm UTC](https://devforum.zoom.us/t/server2server-oauth-returning-code-2031-message-zoom-phone-has-not-been-enabled-for-this-account/99308/5 "2023-12-04T13:27:14Z")

</div>

Implemented the correct OAuth for Zoom API, see above. Issue is resolved, may close.

---

<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:** [December 5, 2023, 1:27pm UTC](https://devforum.zoom.us/t/server2server-oauth-returning-code-2031-message-zoom-phone-has-not-been-enabled-for-this-account/99308/6 "2023-12-05T13:27:33Z")

</div>

Closed on December 5, 2023, 1:27pm UTC

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