# How to generate access-token without authorization\_code

**URL:** <https://devforum.zoom.us/t/how-to-generate-access-token-without-authorization-code/124704>\
**Category:** Meeting SDK\
**Created:** [January 16, 2025, 11:44am UTC](https://devforum.zoom.us/t/how-to-generate-access-token-without-authorization-code/124704 "2025-01-16T11:44:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityaXenelsoft](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/adityaxenelsoft/32/50828_2.png) [@adityaXenelsoft](https://devforum.zoom.us/u/adityaXenelsoft)\
**Post date:** [January 16, 2025, 11:44am UTC](https://devforum.zoom.us/t/how-to-generate-access-token-without-authorization-code/124704/1 "2025-01-16T11:44:36Z")

</div>

Actually, I am integrating zoom meeting SDK in react native && generating token by this API “[https://zoom.us/oauth/token?grant\_type=client\_credentials&code={client\_id}&redirect\_uri=https://oauth/callback](https://zoom.us/oauth/token?grant_type=client_credentials&code=%7Bclient_id%7D&redirect_uri=https://oauth/callback)”. For this , I need code that i am getting after allowing a popup on zoom app side.  
Actually, I don’t want to allow permission popup from zoom app. I want to allow do all permission allow from my server app.  
Is any alternative to generate access\_token without code ?

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [January 20, 2025, 2:49pm UTC](https://devforum.zoom.us/t/how-to-generate-access-token-without-authorization-code/124704/2 "2025-01-20T14:49:50Z")

</div>

@adityaXenelsoft

Hi Aditya,

If you want to generate an access token **without requiring user consent via the Zoom permission popup** , you’ll need to create a **Server-to-Server OAuth app** instead of using the standard OAuth flow.

### Steps to achieve this:

1. **Create a Server-to-Server OAuth App:**

- Go to the Zoom App Marketplace
- Navigate to **“Develop” \> “Build App”**
- Choose **Server-to-Server OAuth** instead of General App.
- This type of app allows your server to get access tokens using the `client_credentials` grant type without any user consent.

1. **Generate Access Token Using `client_credentials`:**  
Once the Server-to-Server OAuth app is created, use the following API request to obtain an access token without user interaction:

bash

CopyEdit

```auto
curl -X POST https://zoom.us/oauth/token \
-H "Authorization: Basic base64(client_id:client_secret)" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials"

```

This approach does not require any authorization code or redirect URI and can be executed directly from your backend.

### Important Consideration:

- A **Server-to-Server OAuth app** will only work for your **own Zoom account** (your organization’s resources).
- If you intend to provide access for **external users** , you must create a **General App** and follow the OAuth 2.0 authorization flow, which requires user consent.

Let me know if you need further clarification!

---

<div class="post-metadata">

**Author:** ![adityaXenelsoft](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/adityaxenelsoft/32/50828_2.png) [@adityaXenelsoft](https://devforum.zoom.us/u/adityaXenelsoft)\
**Post date:** [January 21, 2025, 6:20am UTC](https://devforum.zoom.us/t/how-to-generate-access-token-without-authorization-code/124704/3 "2025-01-21T06:20:18Z")

</div>

Thanks for reply @freelancer.nak

Access-token generated using grant\_type:client\_credentials , and Using this access-token for generating ZAK token is  
{ “code”: 124,  
“message”: “This API does not support client credentials for authorization.”  
}

---

<div class="post-metadata">

**Author:** ![adityaXenelsoft](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/adityaxenelsoft/32/50828_2.png) [@adityaXenelsoft](https://devforum.zoom.us/u/adityaXenelsoft)\
**Post date:** [January 21, 2025, 7:06am UTC](https://devforum.zoom.us/t/how-to-generate-access-token-without-authorization-code/124704/4 "2025-01-21T07:06:17Z")

</div>

After searching above issue on forum , i resolved the issue by passing grant\_type:account\_credentials,  
account\_id:uUithhyrQFW,  
Now , i can generate ZAK token,but problem is that i am not able to join meeting by this ZAK and generating JWT from " meetingsdk-auth-endpoint-sample " repo ,  
Error : {  
“method”: “join”,  
“status”: false,  
“result”: “Invalid signature.”,  
“errorCode”: 3712,  
“errorMessage”: “Signature is invalid.”  
}

I have also verify JWT from [JWT.io](http://JWT.io) , signature verified means my jwt is good.

Please, guide me how to integrate meeting sdk in react and how to join and start meeting for server-to-server OAuth authorization .
