# Unable to hit Account level API's

**URL:** <https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496>\
**Category:** API and Webhooks\
**Created:** [June 1, 2021, 7:30am UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496 "2021-06-01T07:30:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghavendra.teli](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/raghavendra.teli/32/27749_2.png) [@raghavendra.teli](https://devforum.zoom.us/u/raghavendra.teli)\
**Post date:** [June 1, 2021, 7:30am UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/1 "2021-06-01T07:30:30Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
I have created an free account on Zoom where I am the admin of that account. I have Created an JWT APP for it and trying to work on API’s. I am able to work on User API’s like (v2/users/AaiaS6XhRgC0ImCz9pYT9A) with JWT but when I work on any Account related API like(v2/accounts/r1Cd8MevSoS2gHIA6p3Y3Q/recordings) with same JWT it given error as “code”: 124,“message”: “Invalid access token.”

**Error**  
Constantly getting same error message on all account level API  
{

```
"code": 124,
"message": "Invalid access token."

```

}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Auth Type : JWT

**Which Endpoint/s?**  
[https://api.zoom.us/v2/accounts/r1Cd8MevSoS2gHIA6p3Y3Q/recordings](https://api.zoom.us/v2/accounts/r1Cd8MevSoS2gHIA6p3Y3Q/recordings)

**Screenshots (If applicable)**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/e/fe675c4ac242537f2a9716c5e14162d4f8dd05ff.png)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 2, 2021, 8:23pm UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/2 "2021-06-02T20:23:55Z")

</div>

Hey @raghavendra.teli,

Thank you for reaching out to the Zoom Developer Forum. When you make this request using a JWT token, and you are referring to your own account, try using the [/me context](https://marketplace.zoom.us/docs/guides/auth/oauth#me-context) instead of the account ID.

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![raghavendra.teli](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/raghavendra.teli/32/27749_2.png) [@raghavendra.teli](https://devforum.zoom.us/u/raghavendra.teli)\
**Post date:** [June 4, 2021, 5:08am UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/3 "2021-06-04T05:08:15Z")

</div>

Hi @MaxM,

Actually I was trying it for my account and test it and going forward I wanted to test it for different Client account.

For My account it worked with me, but I need to connect with Different Client Paid accounts and try this API.  
In that case will the same API with /account/{accountID} works?

Regards,  
Raghav.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 5, 2021, 12:16am UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/4 "2021-06-05T00:16:24Z")

</div>

Hey @raghavendra.teli,

Just to clarify, is the account that you are trying to access a sub-account of the account where you got the credentials? Or is it a separate account entirely?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![raghavendra.teli](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/raghavendra.teli/32/27749_2.png) [@raghavendra.teli](https://devforum.zoom.us/u/raghavendra.teli)\
**Post date:** [June 7, 2021, 1:24pm UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/5 "2021-06-07T13:24:23Z")

</div>

Hi @MaxM ,  
The account that worked with /me was the one I created myself (Basic and Free) from my gmail Id without any plans and subscription.  
But the one I want to use further is a Paid Admin account.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 9, 2021, 4:34pm UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/6 "2021-06-09T16:34:24Z")

</div>

Hey @raghavendra.teli,

When using a JWT token, you’ll only be able to access your own account. This is because a [JWT App](https://marketplace.zoom.us/docs/guides/auth/jwt) provides account level credentials intended for server-to-server apps.

If you wanted to call this API on behalf of another account you’ll want to publish an [OAuth App](https://marketplace.zoom.us/docs/guides/auth/oauth).

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![raghavendra.teli](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/raghavendra.teli/32/27749_2.png) [@raghavendra.teli](https://devforum.zoom.us/u/raghavendra.teli)\
**Post date:** [June 10, 2021, 3:31am UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/7 "2021-06-10T03:31:21Z")

</div>

Hi @MaxM ,

In case if I have a client abc and they use Zoom and they have setup JWT in their account. ANd they have shared the JWT with me. In that case,  
Can I hit API recording API and connect to their account?  
If yes, what would be the resource path?

Regards,  
Raghav

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 10, 2021, 11:25pm UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/8 "2021-06-10T23:25:47Z")

</div>

Hey @raghavendra.teli,

If you have the JWT token for another account, which we don’t recommend, you would still call the /me context because you would be calling the API on behalf of that account.

Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![raghavendra.teli](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/raghavendra.teli/32/27749_2.png) [@raghavendra.teli](https://devforum.zoom.us/u/raghavendra.teli)\
**Post date:** [June 11, 2021, 5:53am UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/9 "2021-06-11T05:53:39Z")

</div>

Hi @MaxM ,

Thanks a lot for the clarification it helps.  
Will try to go ahead and build and in case found difficulty while implementing will post it here.

Regards,  
Raghav.

---

<div class="post-metadata">

**Author:** ![Manisha4](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/manisha4/32/28154_2.png) [@Manisha4](https://devforum.zoom.us/u/Manisha4)\
**Post date:** [June 11, 2021, 2:36pm UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/10 "2021-06-11T14:36:40Z")

</div>

> [@MaxM](#):
>
> Hey @raghavendra.teli,
> 
> When using a JWT token, you’ll only be able to access your own account. This is because a [JWT App](https://marketplace.zoom.us/docs/guides/auth/jwt) provides account level credentials intended for server-to-server apps.
> 
> If you wanted to call this API on behalf of another account you’ll want to publish an [OAuth App](https://marketplace.zoom.us/docs/guides/auth/oauth).
> 
> Let me know if that helps.
> 
> Thanks,  
> Max

Thanks, Max  
It helps

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 11, 2021, 10:21pm UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/11 "2021-06-11T22:21:00Z")

</div>

@raghavendra.teli @Manisha4

Great! I’m glad that was helpful. I’ll go ahead and close this topic now but feel free to open a new topic if you encounter any further issues or questions.

Max

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 11, 2021, 10:21pm UTC](https://devforum.zoom.us/t/unable-to-hit-account-level-apis/51496/12 "2021-06-11T22:21:06Z")

</div>

Closed on June 11, 2021, 10:21pm UTC


