Generate a Meeting SDK JWT to join Zoom meetings and webinars with the Meeting SDK.
127
stars
55
commits
JavaScript
primary language
Jun 26, 2026
updated
Use of this sample app is subject to our Terms of Use.
This is a Node.js / Express server that generates a Meeting SDK JWT via an HTTP request for authorized use of the Zoom Meeting SDK.
If you would like to skip these steps and just deploy the finished code to a managed service, click the Deploy to Railway/Render/Heroku button. (You will still need to configure a few simple things, so skip to Deployment.)
Note: Both Railway and Render have free tiers, but Heroku requires a credit card to deploy.
In terminal, run the following command to clone the repo:
$ git clone https://github.com/zoom/meetingsdk-auth-endpoint-sample.git
In terminal, cd into the cloned repository:
$ cd meetingsdk-auth-endpoint-sample
Then install the dependencies:
$ npm install
Rename .env.example to .env, edit the file contents to include your Zoom Meeting SDK key and secret, save the file contents, and close the file.
Start the server:
$ npm run start
Make a POST request to http://localhost:4000 (or your deployed url) with the following request body:
| Property | Type | Required? | Validation Rule(s) |
|---|---|---|---|
meetingNumber | string | Yes (web)* | - Required if generating a web JWT, optional for native. |
role | number | Yes (web)* | - Required if generating a web JWT, optional for native. - Must be equal to 0 or 1 |
expirationSeconds | number | No | - Must be between 1800 (30 minutes) and 172800 (48 hours) seconds |
videoWebRtcMode | number | No | - Optional, only applicable for web. - Must equal 0 or 1 |
[!IMPORTANT] If
meetingNumberorroleare supplied in the request body, the other must be present as well. If both are supplied, the JWT will be valid for web, otherwise it will be valid for native.
POST http://localhost:4000
Request Body:
{
"meetingNumber": "123456789",
"role": 0
}
If successful, the response body will be a JSON representation of your Meeting SDK JWT:
{
"signature": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJhYmMxMjMiLCJtbiI6IjEyMzQ1Njc4OSIsInJvbGUiOjAsImlhdCI6MTY0NjkzNzU1MywiZXhwIjoxNjQ2OTQ0NzUzLCJhcHBLZXkiOiJhYmMxMjMiLCJ0b2tlbkV4cCI6MTY0Njk0NDc1M30.UcWxbWY-y22wFarBBc9i3lGQuZAsuUpl8GRR8wUah2M"
}
In the Meeting SDK, pass in the signature to the join() function:
// Make http request to your auth endpoint to get the Meeting SDK JWT
// Meeting SDK - web - Client View - example:
ZoomMtg.join({
signature: signature,
sdkKey: sdkKey,
userName: userName,
meetingNumber: meetingNumber,
passWord: password
})
// Meeting SDK - web - Component View - example:
client.join({
signature: signature,
sdkKey: sdkKey,
userName: userName,
meetingNumber: meetingNumber,
password: password
})
After clicking the "Deploy to <Provider>" button, enter a name for your app (or leave it blank to have a name generated for you), and insert your Zoom Meeting SDK credentials:
ZOOM_MEETING_SDK_KEY (Your Zoom Meeting SDK Key or Client ID for Meeting SDK app type's created after February 11, 2023, found on your Zoom Meeting SDK App Credentials page)ZOOM_MEETING_SDK_SECRET (Your Zoom Meeting SDK Secret or Client Secret for Meeting SDK app type's created after February 11, 2023, found on your Zoom Meeting SDK App Credentials page)Then click "Deploy App".
Use your URL as your Meeting SDK Auth Endpoint.
Example: https://abc123.provider.com/
$ curl <YOU_URL> -X POST -d '{ "role": "1", "meetingNumber": "123123123"}' -H "Content-Type: application/json"
For Other Server Hosting information, see this tutorial.
Use your deployed URL as your Meeting SDK Auth Endpoint.
Example: https://abc123.compute-1.amazonaws.com/
Now you can generate your Meeting SDK JWT.
If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.
JavaScript
100.0%
Generate a Meeting SDK JWT to join Zoom meetings and webinars with the Meeting SDK.
127
stars
55
commits
JavaScript
primary language
Jun 26, 2026
updated
Use of this sample app is subject to our Terms of Use.
This is a Node.js / Express server that generates a Meeting SDK JWT via an HTTP request for authorized use of the Zoom Meeting SDK.
If you would like to skip these steps and just deploy the finished code to a managed service, click the Deploy to Railway/Render/Heroku button. (You will still need to configure a few simple things, so skip to Deployment.)
Note: Both Railway and Render have free tiers, but Heroku requires a credit card to deploy.
In terminal, run the following command to clone the repo:
$ git clone https://github.com/zoom/meetingsdk-auth-endpoint-sample.git
In terminal, cd into the cloned repository:
$ cd meetingsdk-auth-endpoint-sample
Then install the dependencies:
$ npm install
Rename .env.example to .env, edit the file contents to include your Zoom Meeting SDK key and secret, save the file contents, and close the file.
Start the server:
$ npm run start
Make a POST request to http://localhost:4000 (or your deployed url) with the following request body:
| Property | Type | Required? | Validation Rule(s) |
|---|---|---|---|
meetingNumber | string | Yes (web)* | - Required if generating a web JWT, optional for native. |
role | number | Yes (web)* | - Required if generating a web JWT, optional for native. - Must be equal to 0 or 1 |
expirationSeconds | number | No | - Must be between 1800 (30 minutes) and 172800 (48 hours) seconds |
videoWebRtcMode | number | No | - Optional, only applicable for web. - Must equal 0 or 1 |
[!IMPORTANT] If
meetingNumberorroleare supplied in the request body, the other must be present as well. If both are supplied, the JWT will be valid for web, otherwise it will be valid for native.
POST http://localhost:4000
Request Body:
{
"meetingNumber": "123456789",
"role": 0
}
If successful, the response body will be a JSON representation of your Meeting SDK JWT:
{
"signature": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJhYmMxMjMiLCJtbiI6IjEyMzQ1Njc4OSIsInJvbGUiOjAsImlhdCI6MTY0NjkzNzU1MywiZXhwIjoxNjQ2OTQ0NzUzLCJhcHBLZXkiOiJhYmMxMjMiLCJ0b2tlbkV4cCI6MTY0Njk0NDc1M30.UcWxbWY-y22wFarBBc9i3lGQuZAsuUpl8GRR8wUah2M"
}
In the Meeting SDK, pass in the signature to the join() function:
// Make http request to your auth endpoint to get the Meeting SDK JWT
// Meeting SDK - web - Client View - example:
ZoomMtg.join({
signature: signature,
sdkKey: sdkKey,
userName: userName,
meetingNumber: meetingNumber,
passWord: password
})
// Meeting SDK - web - Component View - example:
client.join({
signature: signature,
sdkKey: sdkKey,
userName: userName,
meetingNumber: meetingNumber,
password: password
})
After clicking the "Deploy to <Provider>" button, enter a name for your app (or leave it blank to have a name generated for you), and insert your Zoom Meeting SDK credentials:
ZOOM_MEETING_SDK_KEY (Your Zoom Meeting SDK Key or Client ID for Meeting SDK app type's created after February 11, 2023, found on your Zoom Meeting SDK App Credentials page)ZOOM_MEETING_SDK_SECRET (Your Zoom Meeting SDK Secret or Client Secret for Meeting SDK app type's created after February 11, 2023, found on your Zoom Meeting SDK App Credentials page)Then click "Deploy App".
Use your URL as your Meeting SDK Auth Endpoint.
Example: https://abc123.provider.com/
$ curl <YOU_URL> -X POST -d '{ "role": "1", "meetingNumber": "123123123"}' -H "Content-Type: application/json"
For Other Server Hosting information, see this tutorial.
Use your deployed URL as your Meeting SDK Auth Endpoint.
Example: https://abc123.compute-1.amazonaws.com/
Now you can generate your Meeting SDK JWT.
If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.
JavaScript
100.0%