# JWT \<Response \[401\]\>

**URL:** <https://devforum.zoom.us/t/jwt-response-401/42894>\
**Category:** API and Webhooks\
**Tags:** ciq\
**Created:** [February 9, 2021, 9:34am UTC](https://devforum.zoom.us/t/jwt-response-401/42894 "2021-02-09T09:34:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitagas2005](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@nitagas2005](https://devforum.zoom.us/u/nitagas2005)\
**Post date:** [February 9, 2021, 9:34am UTC](https://devforum.zoom.us/t/jwt-response-401/42894/1 "2021-02-09T09:34:36Z")

</div>

Good afternoon, I want to get information about the conference participants, for this I decided to use the zoomus for python library.  
But when I have done everything, I get an error:  
**\<Response [401]\>**

**CODE**  
I use this code:

```
import json
from zoomus import ZoomClient

client = ZoomClient('API_KEY', 'API_SECRET')
print(client)
user_list_response = client.user.list()
user_list = json.loads(user_list_response.content)

for user in user_list['users']:
    user_id = user['id']
    print(json.loads(client.meeting.list(user_id=user_id).content))

```

API\_KEY and API\_SECRET i get from my JWT  
I created the JWT in advance and activated it.

I was trying this code, but i have the same problem.

```
import json
from zoomus import ZoomClient

client = ZoomClient('---', '---')

user_list_response = client.user.list()
user_list = json.loads(user_list_response.content)
print(user_list)

```

**OUTPUT**  
{‘code’: 124, ‘message’: ‘Invalid access token.’}

I would be glad if you could help me with this.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [February 10, 2021, 2:47pm UTC](https://devforum.zoom.us/t/jwt-response-401/42894/2 "2021-02-10T14:47:01Z")

</div>

Hi @nitagas2005,

Can you share which endpoint you’re sending your request to? Some endpoints have prerequisites, such as a paid plan, etc., which could be causing this invalid token error.

Thanks,  
Will

---

<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 13, 2021, 12:47am UTC](https://devforum.zoom.us/t/jwt-response-401/42894/3 "2021-03-13T00:47:27Z")

</div>

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