# Failed to invoke any api with S2S oauth token

**URL:** <https://devforum.zoom.us/t/failed-to-invoke-any-api-with-s2s-oauth-token/70719>\
**Category:** API and Webhooks\
**Tags:** oauth\
**Created:** [June 18, 2022, 12:34pm UTC](https://devforum.zoom.us/t/failed-to-invoke-any-api-with-s2s-oauth-token/70719 "2022-06-18T12:34:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adlinkage](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@Adlinkage](https://devforum.zoom.us/u/Adlinkage)\
**Post date:** [June 18, 2022, 12:34pm UTC](https://devforum.zoom.us/t/failed-to-invoke-any-api-with-s2s-oauth-token/70719/1 "2022-06-18T12:34:04Z")

</div>

**Description**  
I followed the steps to create an S2S oauth app in marketplace and tried to use the return access token to call api. Yet, I cannot use my token to call any api.

I added some scopes to that app including meeting:write:admin user:read:admin user:write:admin.

**Error?**  
When i call api that should be allowed, it will return

```auto
{
    "code": 124,
    "message": "Invalid access token."
}

```

**API Endpoint/s?**  
GET {us-api}/users?status=active  
GET {us-api}/users  
POST {us-api}/users/{userId}/meetings  
GET {us-api}/users/{userId}/meetings

**How To Reproduce**  
_Steps to reproduce the behavior:_  
\*1. Using postman to call oauth api, and return normally  
POST [https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id={accountId}](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=%7BaccountId%7D)  
username = {clientId}  
Password={clientSecret}

Response:

```auto
{
    "access_token": {token}
    "token_type": "bearer",
    "expires_in": 3599,
    "scope": "meeting:write:admin user:read:admin user:write:admin"
}

```

\*2. Call apis mentioned above  
\*3. Receive error as mentioned above

**Additional context**  
The app owner is the account owner which should have all right to do things but it just failed

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [June 28, 2022, 5:46pm UTC](https://devforum.zoom.us/t/failed-to-invoke-any-api-with-s2s-oauth-token/70719/2 "2022-06-28T17:46:55Z")

</div>

Hi there,

I was not able to reproduce the issue you mentioned above. Do you see the same issues if you use cURL or script out a solution ?

Let us know!

---

<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 29, 2022, 3:47am UTC](https://devforum.zoom.us/t/failed-to-invoke-any-api-with-s2s-oauth-token/70719/3 "2022-07-29T03:47:33Z")

</div>

Closed on July 29, 2022, 3:47am UTC

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