# Account API - Invalid token

**URL:** <https://devforum.zoom.us/t/account-api-invalid-token/89618>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [June 5, 2023, 11:46am UTC](https://devforum.zoom.us/t/account-api-invalid-token/89618 "2023-06-05T11:46:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinash1](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@avinash1](https://devforum.zoom.us/u/avinash1)\
**Post date:** [June 5, 2023, 11:46am UTC](https://devforum.zoom.us/t/account-api-invalid-token/89618/1 "2023-06-05T11:46:14Z")

</div>

I am trying to call the accounts and billing APIs. But always showing _invalid access token_. Other requests like  
**/users**  
worked properly with the same token.  
I am using a Account-level , Server-To-Server OAuth App

Is there anything missed from my side?

Thanks In Advance  
Avinash

---

<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:** [June 5, 2023, 10:03pm UTC](https://devforum.zoom.us/t/account-api-invalid-token/89618/2 "2023-06-05T22:03:34Z")

</div>

Hi @avinash1 , what kind of account structure do you have? I.e. master sub-account?

Please share the exact endpoint you’re hitting.

Thanks!

---

<div class="post-metadata">

**Author:** ![avinash1](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@avinash1](https://devforum.zoom.us/u/avinash1)\
**Post date:** [June 14, 2023, 6:14pm UTC](https://devforum.zoom.us/t/account-api-invalid-token/89618/4 "2023-06-14T18:14:55Z")

</div>

Hi @gianni.zoom ,

Thank You for the response

My account type is Pro (Named Host) and i am trying with owner role.

The end points are  
[https://api.zoom.us/v2/accounts/my-account-id/settings](https://api.zoom.us/v2/accounts/my-account-id/settings)  
[https://api.zoom.us/v2/accounts/my-account-id/billing](https://api.zoom.us/v2/accounts/my-account-id/billing)

But always showing _invalid access token_

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:** [June 21, 2023, 7:35pm UTC](https://devforum.zoom.us/t/account-api-invalid-token/89618/5 "2023-06-21T19:35:29Z")

</div>

Hi @avinash1 ,

Those endpoints are for account owners with [master account structure](https://developers.zoom.us/docs/api/rest/master-account-apis/)

If you are the account owner, pass `me` for the account id parameter and let me know if it works!

Please also confirm you have the right scopes for the endpoint: [Zoom Meeting API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/accountSettings)

---

<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:** [June 24, 2024, 11:12am UTC](https://devforum.zoom.us/t/account-api-invalid-token/89618/6 "2024-06-24T11:12:11Z")

</div>

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