JWT Documentation


In the section Quickstart - JWT with Zoom there is a paragraph: “Generate your JWT Token using Sever Side Code”

Underneath there are 6 tabs, each illustrating this process using Node, cURL, PHP, Python, Ruby and C#

Only the node example actually generates the JWT and makes a call with it.
All the other language/methods listed do not show the creation of the JWT and automatically assume the user already has the bearer token.

Either the node example should not show the creation of the JWT or (preferably) the other examples should show the JWT acquisition in their respective languages so each example is truly equivalent. It makes no sense to show the full process for node and half the process for the others in the neighboring tabs, it just confuses.

Here is the Python example extended to include the JWT creation:

import jwt   # pip install pyjwt
import http.client
import datetime
import json

api_key = '<api key goes here>'
api_sec = '<secret goes here>'

# generate JWT
payload = {
'iss': api_key,
'exp': datetime.datetime.now() + datetime.timedelta(hours=2)
jwt_encoded = jwt.encode(payload, api_sec)

# call API: get user list
conn = http.client.HTTPSConnection("api.zoom.us")
headers = {
'authorization': "Bearer %s" % jwt_encoded,
'content-type': "application/json"
conn.request("GET", "/v2/users?status=active", headers=headers)
res = conn.getresponse()
response_string = res.read().decode('utf-8')
response_obj = json.loads(response_string)


Hi @Rick1975,

Thanks for the feedback. We are working on your suggestions and will get back to you with an update later.




Hi @Rick1975, thanks a lot for bringing this to our attention. We have now changed the section you mentioned so that it shows how to make API calls using the JWT generated from JWT.io to make it consistent as you suggested. In the future, we will be adding the complete code for generating JWT in multiple languages. For now, we have a working Node.js sample app tutorial in the Quickstart page.

Thank you for helping make our docs better. :+1:

1 Like