# "code":200,"message":"Account does not enabled REST API."

**URL:** <https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325>\
**Category:** API and Webhooks\
**Created:** [June 6, 2018, 3:30pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325 "2018-06-06T15:30:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Turpin](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Michael\_Turpin](https://devforum.zoom.us/u/Michael_Turpin)\
**Post date:** [June 6, 2018, 3:30pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/1 "2018-06-06T15:30:01Z")

</div>

Has anyone ever come across this error before? What can be changed about the account to enable REST? Thank you.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [June 6, 2018, 4:05pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/2 "2018-06-06T16:05:50Z")

</div>

Hi Michael,&nbsp;

Could you give a some more details? Which API were you using and what parameters were you passing in?

Thanks

Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Turpin](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Michael\_Turpin](https://devforum.zoom.us/u/Michael_Turpin)\
**Post date:** [June 6, 2018, 4:26pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/3 "2018-06-06T16:26:17Z")

</div>

Thanks Michael…here’s the code which I had found as an example online with the keys removed. I am running this code directly from the command line:

&nbsp;

import time

import datetime

import requests

import jwt

&nbsp;

KEY =&nbsp;

SECRET =

&nbsp;

header = {

“alg”: “HS256”,

“typ”: “JWT”

}

&nbsp;

payload = {

“iss”: KEY,

“exp”: int(time.time() + 60)

}

&nbsp;

token = jwt.encode(payload, SECRET, algorithm=‘HS256’, headers=header)

&nbsp;

today = datetime.date.today()

yesterday = today - datetime.timedelta(1)

&nbsp;

base\_url = “[https://api.zoom.us/v2/metrics/meetings](https://api.zoom.us/v2/metrics/meetings)”

&nbsp;

r = requests.get(’%s/?type=%s&from=%s&to=%s’ % (base\_url, “past”, yesterday, today), headers={‘Authorization’: ‘Bearer %s’ % token})

&nbsp;

print(r.content)

&nbsp;

In addition to the error, I’m also getting this error which I haven’t researched yet:

&nbsp;

SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see [https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings](https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings)

SNIMissingWarning

&nbsp;

Thank you

---

<div class="post-metadata">

**Author:** ![Michael\_Turpin](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Michael\_Turpin](https://devforum.zoom.us/u/Michael_Turpin)\
**Post date:** [June 6, 2018, 4:51pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/4 "2018-06-06T16:51:53Z")

</div>

Also here is the&nbsp;&nbsp;the API I’m trying to follow:

[https://zoom.github.io/api/?shell#introduction](https://zoom.github.io/api/?shell#introduction)

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [June 6, 2018, 10:51pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/5 "2018-06-06T22:51:44Z")

</div>

Hi Michael,&nbsp;

Can you send us your account ID along with the code base to [developersupport@zoom.us](mailto:developersupport@zoom.us) so that we can further troubleshoot your issue?

Thanks

---

<div class="post-metadata">

**Author:** ![Michael\_Turpin](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Michael\_Turpin](https://devforum.zoom.us/u/Michael_Turpin)\
**Post date:** [June 7, 2018, 11:04am UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/6 "2018-06-07T11:04:08Z")

</div>

Hello, thanks Michael, I did just send an email to developersupport with the requested info. Thank you for your help

---

<div class="post-metadata">

**Author:** ![Michael\_Turpin](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Michael\_Turpin](https://devforum.zoom.us/u/Michael_Turpin)\
**Post date:** [June 8, 2018, 2:17am UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/7 "2018-06-08T02:17:09Z")

</div>

Hello, Just an update on this. This happens with both Python 2.7 and 3.0. For the account I mentioned in the email I sent to [developersupport@zoom.us](mailto:developersupport@zoom.us) - does it not have the REST API enabled? Thank you

---

<div class="post-metadata">

**Author:** ![Roger\_Cheng](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Roger\_Cheng](https://devforum.zoom.us/u/Roger_Cheng)\
**Post date:** [June 14, 2018, 8:25am UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/8 "2018-06-14T08:25:00Z")

</div>

I also encountered such a problem, how to solve it?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [June 14, 2018, 5:56pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/9 "2018-06-14T17:56:07Z")

</div>

Hi Michael,&nbsp;

We have looked at your account and you do have REST API enabled. We have forward your code base and account details to the Engineers to troubleshoot your issue.&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [June 14, 2018, 5:57pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/10 "2018-06-14T17:57:11Z")

</div>

Hi Rodger,

Would you be able to send your account details along with API’s you’re requesting to&nbsp;[developersupport@zoom.us](mailto:developersupport@zoom.us)? From there we can look at your account and see if the Engineering team needs to troubleshoot.&nbsp;

---

<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, 5:48pm UTC](https://devforum.zoom.us/t/code-200-message-account-does-not-enabled-rest-api/1325/11 "2020-08-21T17:48:58Z")

</div>

Closed on August 21, 2020, 5:48pm UTC


