# Server-to-Server OAuth token endpoint returns invalid\_request despite activated app and verified credentials

**URL:** <https://devforum.zoom.us/t/server-to-server-oauth-token-endpoint-returns-invalid-request-despite-activated-app-and-verified-credentials/145961>\
**Category:** API and Webhooks\
**Created:** [August 28, 2026, 3:48am UTC](https://devforum.zoom.us/t/server-to-server-oauth-token-endpoint-returns-invalid-request-despite-activated-app-and-verified-credentials/145961 "2026-08-28T03:48:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_Cindy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sean_cindy/32/76298_2.png) [@Sean\_Cindy](https://devforum.zoom.us/u/Sean_Cindy)\
**Post date:** [August 28, 2026, 3:48am UTC](https://devforum.zoom.us/t/server-to-server-oauth-token-endpoint-returns-invalid-request-despite-activated-app-and-verified-credentials/145961/1 "2026-08-28T03:48:26Z")

</div>

### Environment:

- Server-to-Server OAuth app, Account Level, Activated
- App name: Sansone Medicare Zoom Registration
- Account ID: LOjHe7L0Qdu0Bcj-vhAI1w
- Scope: meeting:write:registrant:admin
- Account plan: Pro (Named Host)

Issue:  
POST requests to [https://zoom.us/oauth/token](https://zoom.us/oauth/token) consistently return:  
{“reason”:“Bad Request”,“error”:“invalid\_request”}

Steps already taken:

1. Confirmed app is Server-to-Server OAuth type and fully activated
2. Confirmed Account ID, Client ID, and Client Secret match the App Credentials page exactly (verified via copy-paste, not manual retyping)
3. Regenerated Client Secret and retested — same error
4. Tested grant\_type and account\_id as URL query parameters — invalid\_request
5. Tested grant\_type and account\_id as x-www-form-urlencoded POST body — invalid\_request
6. Confirmed Content-Type header set correctly to application/x-www-form-urlencoded
7. Confirmed Authorization header uses correct Basic base64(client\_id:client\_secret) format
8. Checked Account Management \> Account Profile for an alternate Account ID — only an unrelated “Account Number” field exists there

Could someone from the Zoom team check whether there’s an account-level restriction or configuration issue preventing token generation for this account/app?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 8, 2026, 5:13am UTC](https://devforum.zoom.us/t/server-to-server-oauth-token-endpoint-returns-invalid-request-despite-activated-app-and-verified-credentials/145961/2 "2026-09-08T05:13:59Z")

</div>

@Sean_Cindy can you refer to this sample code and let me know if it works for you or not

app.get(‘/s2soauth’, (req, res) =\> {  
res.status(200).json({  
message: ‘Live S2S OAuth token requests are disabled on this public demo.’,  
liveTokenRequestDisabled: true,  
grantType: ‘account\_credentials’,  
tokenUrl: ‘[https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id={ACCOUNT\_ID}](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=%7BACCOUNT_ID%7D)’,  
requestShape: {  
method: ‘POST’,  
headers: {  
Authorization: ‘Basic base64({CLIENT\_ID}:{CLIENT\_SECRET})’,  
‘Content-Type’: ‘application/x-www-form-urlencoded’,  
},  
},  
expectedResponseFields: [  
‘access\_token’,  
‘token\_type’,  
‘expires\_in’,  
‘scope’,  
‘api\_url’,  
],  
});  
});
