# Zoom Phone has not been enabled for this account. Python Error

**URL:** <https://devforum.zoom.us/t/zoom-phone-has-not-been-enabled-for-this-account-python-error/103339>\
**Category:** Phone\
**Tags:** phone, api\
**Created:** [February 6, 2024, 7:56pm UTC](https://devforum.zoom.us/t/zoom-phone-has-not-been-enabled-for-this-account-python-error/103339 "2024-02-06T19:56:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pilldrop.ai](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pilldrop.ai](https://devforum.zoom.us/u/pilldrop.ai)\
**Post date:** [February 6, 2024, 7:56pm UTC](https://devforum.zoom.us/t/zoom-phone-has-not-been-enabled-for-this-account-python-error/103339/1 "2024-02-06T19:56:53Z")

</div>

Hi Team,

1. First I need the endpoint for make call from my zoom number to any number
2. Second I written the script for getting block list but return error  
`{'code': 2031, 'message': 'Zoom Phone has not been enabled for this account.'}`

here is my code:

import requests

ZOOM\_API\_BASE\_URL = “[https://api.zoom.us/v2](https://api.zoom.us/v2)”  
ZOOM\_API\_KEY = “”  
ZOOM\_API\_SECRET = “”

def get\_zoom\_access\_token():  
url = “[https://zoom.us/oauth/token](https://zoom.us/oauth/token)”

```
headers = {
    "Content-Type": "application/x-www-form-urlencoded",
}

data = {
    "grant_type": "client_credentials",
    "client_id": ZOOM_API_KEY,
    "client_secret": ZOOM_API_SECRET,
}

response = requests.post(url, headers=headers, data=data)

if response.status_code == 200:
    print(response.json()["access_token"])
    return response.json()["access_token"]
else:
    print(f"Error2: {response.status_code}")
    return None

```

def initiate\_zoom\_phone\_call(phone\_number):  
endpoint = “/phone/blocked\_list”  
url = f"{ZOOM\_API\_BASE\_URL}{endpoint}"

```
headers = {
    "Authorization": f"Bearer {get_zoom_access_token()}",
    "Content-Type": "application/json",
}
response = requests.get(url, headers=headers)

if response.status_code == 201:
    print("Call initiated successfully!")
    return response.json()
else:
    print(response.json())
    print(f"Error1: {response.status_code}")
    return None

```

initiate\_zoom\_phone\_call(“recipient\_phone\_number”)

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [February 8, 2024, 8:27pm UTC](https://devforum.zoom.us/t/zoom-phone-has-not-been-enabled-for-this-account-python-error/103339/2 "2024-02-08T20:27:33Z")

</div>

Hi @pilldrop.ai ,

The way you’re requesting an access token seems to be for JWT app which is not supported. Which app type credentials are you using?

Here is how to do it for OAuth app:

- [OAuth for user authorized apps](https://developers.zoom.us/docs/integrations/oauth/)
- [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/request/22097587-82698a23-7af5-4f3f-bf2e-a62c3eb8903d)

Here is how to do it for Server to Server OAuth app:

- [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/request/22097587-875f65b4-d88f-4082-80af-7605303a5abc?tab=params)
- [Server-to-Server OAuth](https://developers.zoom.us/docs/internal-apps/s2s-oauth/)

---

<div class="post-metadata">

**Author:** ![pilldrop.ai](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pilldrop.ai](https://devforum.zoom.us/u/pilldrop.ai)\
**Post date:** [February 9, 2024, 4:45pm UTC](https://devforum.zoom.us/t/zoom-phone-has-not-been-enabled-for-this-account-python-error/103339/3 "2024-02-09T16:45:49Z")

</div>

Thank you for assisting me. I require the endpoint to initiate a call from my Zoom number to any other number.

---

<div class="post-metadata">

**Author:** ![pilldrop.ai](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pilldrop.ai](https://devforum.zoom.us/u/pilldrop.ai)\
**Post date:** [February 12, 2024, 2:54pm UTC](https://devforum.zoom.us/t/zoom-phone-has-not-been-enabled-for-this-account-python-error/103339/4 "2024-02-12T14:54:13Z")

</div>

Thank you for assisting me. I require the endpoint to initiate a call from my Zoom number to any other number.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 6, 2024, 6:38pm UTC](https://devforum.zoom.us/t/zoom-phone-has-not-been-enabled-for-this-account-python-error/103339/5 "2024-03-06T18:38:03Z")

</div>

Hi @pilldrop.ai , please answer the questions from my last response. Thanks!

---

<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:** [March 10, 2025, 10:14am UTC](https://devforum.zoom.us/t/zoom-phone-has-not-been-enabled-for-this-account-python-error/103339/6 "2025-03-10T10:14:28Z")

</div>

Closed on March 10, 2025, 10:14am UTC

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