Refreshing Access Tokens

Using this template helps us debug your issues more effectively :slight_smile:

I am Unable to refresh the access token and getting an error 401.Can you please look into it why the error is happening

response <Response [401]>

How To Reproduce (If applicable)
Steps to reproduce the behavior:
def refreshZoomToken(self):
“”“Refresh access token”""
#b64encoded = base64.b64encode(self.get_userpass)
encoded_u = base64.b64encode(self.get_userpass.encode()).decode()
# print(encoded_u)
with open(self.get_tokenfile, ‘r’) as f:
token_json = json.loads((
refresh_token = token_json[‘refresh_token’]
header = {‘Authorisation’ : ‘Basic %s’ % encoded_u, ‘content-type’:‘application/x-www-form-urlencoded’}
payload = (“grant_type=refresh_token&refresh_token={0}”).format(refresh_token)
response =, params=payload, headers=header)
if response.status_code == 200:
results = json.loads(response.text)
print({} ,format(results))

Hi @meghana_surepalli

Thanks for reaching out to the Zoom Developer Forum and welcome to our community!
Have you been able to follow the steps listed here in our Docs, on how to refresh an access token?


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.