Using this template helps us debug your issues more effectively
Description
I used the API to get my authorization code. My refresh token seems to be working. I can get a new access token every hour. However, when I make a call to the API, I get a 401 back with the content {âcodeâ:124,âmessageâ:âInvalid access token.â}
My appâs scope is report:read:admin
Is there any way to get more information? Is the token invalid due to a parse error? scope error? authorization error?
Error
{âcodeâ:124,âmessageâ:âInvalid access token.â}
Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth
Which Endpoint/s?
/metrics/meetings
How To Reproduce (If applicable)
Steps to reproduce the behavior:
- Request URL / Headers (without credentials) / Body
GET https://api.zoom.us/v2/metrics/meetings?type=active&from=2021-07-01&to=2021-07-21
Authorization: âbearer eyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.eyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.yXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXâ
- See error
status: 401
content: {âcodeâ:124,âmessageâ:âInvalid access token.â}
string: HTTP/1.1 401 Unauthorized
Cache-Control: no-cache, no-store, must-revalidate, no-transform
Connection: close
Date: Thu, 22 Jul 2021 17:55:04 GMT
Pragma: no-cache
Content-Type: application/json;charset=UTF-8
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Client-Date: Thu, 22 Jul 2021 17:55:04 GMT
Client-Peer: XX.XXX.XX.XXX:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/O=DigiCert Inc/CN=DigiCert SHA2 Secure Server CA
Client-SSL-Cert-Subject: /C=US/ST=California/L=San Jose/O=Zoom Video Communications, Inc./CN=*.zoom.us
Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-Transfer-Encoding: chunked
Client-Warning: Missing Authenticate header
Set-Cookie: zm_aid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: zm_haid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: web_zak=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: cred=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; Path=/; Secure; HttpOnly
Set-Cookie: _zm_ctaid=XXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; Domain=.zoom.us; Expires=Thu, 22-Jul-2021 19:55:04 GMT; Path=/; Secure; HttpOnly
Set-Cookie: _zm_chtaid=XXX; Domain=.zoom.us; Expires=Thu, 22-Jul-2021 19:55:04 GMT; Path=/; Secure; HttpOnly
X-Content-Type-Options: nosniff
X-Zm-Trackingid: v=2.0;clid=aw1;rid=WEB_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Screenshots (If applicable)
N/A
Additional context
Iâm using Perl, if that matters.