# Bug in API documentation? "Get User"

**URL:** <https://devforum.zoom.us/t/bug-in-api-documentation-get-user/73027>\
**Category:** API and Webhooks\
**Created:** [July 27, 2022, 3:23am UTC](https://devforum.zoom.us/t/bug-in-api-documentation-get-user/73027 "2022-07-27T03:23:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericp](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ericp/32/25621_2.png) [@ericp](https://devforum.zoom.us/u/ericp)\
**Post date:** [July 27, 2022, 3:23am UTC](https://devforum.zoom.us/t/bug-in-api-documentation-get-user/73027/1 "2022-07-27T03:23:07Z")

</div>

### Format Your New Topic as Follows:

**API Endpoint(s) and/or Zoom API Event(s)**  
_Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context._  
`https://api.zoom.us/v2/accounts/{accountId}/users/{userId}`

**Description**  
“Get Users” is incorrect in the documentation?

**Error?**  
_The full error message or issue you are running into, where applicable._  
Invalid access token - error 124

As described in the documentation, the documented path is listed as: `https://api.zoom.us/accounts/{accountId}/users/{userId}`

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_1. Request URL / Headers_: `/accounts/{accountID}/users/{userId}`  
_2. Authentication method or app type_: Server to Server OAUTH  
_3. Any errors_: Invalid Token Error 124

This has been bugging (hah!) all night, I kept getting the invalid token, yet other calls to the API worked with the same Bearer token.

It wasn’t until I removed the `/accounts/{accountID}` from the URL that the “get user” API started working.

Effectively, this is what worked for me: `https://api.zoom.us/v2/users/{userID}` [with the necessary token information passed in the headers]

I think the documentation needs to be updated to reflect the correct usages (or the api to be updated to reflect the documentation).

Thanks!

---

<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:** [July 27, 2022, 5:51am UTC](https://devforum.zoom.us/t/bug-in-api-documentation-get-user/73027/2 "2022-07-27T05:51:02Z")

</div>

> [@ericp](#):
>
> It wasn’t until I removed the `/accounts/{accountID}` from the URL that the “get user” API started working.

Hi @ericp , that prepended part of the endpoint is for [Master Account APIs](https://marketplace.zoom.us/docs/api-reference/master-account-apis/). If you do not have this account structure, that could explain failure. Please clarify if this is the case 🙂

---

<div class="post-metadata">

**Author:** ![ericp](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ericp/32/25621_2.png) [@ericp](https://devforum.zoom.us/u/ericp)\
**Post date:** [July 27, 2022, 1:43pm UTC](https://devforum.zoom.us/t/bug-in-api-documentation-get-user/73027/3 "2022-07-27T13:43:01Z")

</div>

Yup, that was the issue 😳

I’m not sure how I got into the Master Account APIs section of the site, but that was the cause of my issue . Thanks for setting me straight!

---

<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:** [July 27, 2022, 2:19pm UTC](https://devforum.zoom.us/t/bug-in-api-documentation-get-user/73027/4 "2022-07-27T14:19:07Z")

</div>

All good! Glad it’s resolved!

---

<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:** [July 31, 2023, 5:55am UTC](https://devforum.zoom.us/t/bug-in-api-documentation-get-user/73027/5 "2023-07-31T05:55:58Z")

</div>

Closed on July 31, 2023, 5:55am UTC

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