Description:
Our internal service that calls the zoom API has random started to give us an error preventing us from created new meetings programmatically. No code changes or credential changes have taken place as far as we can tell.
Error:
Return Status: 401
Failed to create meeting, error: {"code":124,"message":"Invalid access token."}
Which App Type?:
JWT
Which endpoints:
Our Python code runs through this and error gets logged in our logging application
“https://api.zoom.us/v2/users/” + user_id + “/meetings”
user ID is the email of the user that has the JWT app assigned to them?
How to Reproduce:
header = {
'Authorization': 'Bearer ' + jwt_string,
'Content-type':'application/json'
}
zoom_url = "https://api.zoom.us/v2/users/siren@shipt.com/meetings"
meeting_data = {'topic': 'Planned Maintenance for background_checks', 'start_time': '2022-06-07T13:00:00-05:00', 'duration': 60}
r = requests.post(
headers=header,
url=self.zoom_url,
data=json.dumps(meeting_data)
)