401 error when calling the accounts api of v2


#1

First, I generated the token using my key and secret.

and then I used the generated token to call the api

and met the 401 unauthorized error. But I did provide the token, and my key and secret are valid. Somebody help me please. Thanks in advance.


#2

Please get a token from https://jwt.io, then test again.


#3

I did generate a token first. And I did it as the zoom api doc told me. Please take a look at my first picture.


#4

Do I have to pay some money to use the api??? I really don’t know what’s the problem. Because I’ve done exactly as the api said. : (


#5

Please provide the response error message?


#6

the api is:https://api.zoom.us/v2/accounts?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJfODJramgtTlRzQ3B6NGpfT090bDJ3IiwiaWF0IjoxNTE2MDAwMTIzLCJleHAiOjE1MTYwMDM3MjN9.HIgtraVudNPfmBVVV_eExT1ZPi7niDQPWNKaxv1RdsU

the status is: 401 Unauthorized

and the returned json is:

{
  “code”: 124,
  “message”: “Invalid access token.”
}

you can try it with POSTMAN.


#7

strange thing!

when I called this api:

https://api.zoom.us/v2/users?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJfODJramgtTlRzQ3B6NGpfT090bDJ3IiwiaWF0IjoxNTE2MDAwMTIzLCJleHAiOjE1MTYwMDM3MjN9.HIgtraVudNPfmBVVV_eExT1ZPi7niDQPWNKaxv1RdsU

it worked well! 


#8

This API is used for master account to list all the sub accounts, only available for paid master account. You can test other APIs.

We will update the error message. 


#9

THANK YOU SO MUCH!!!

This problem has been bothering me for quite a while. Thank you for your explanation.