Scope error while calling API with OAuth 2.0

Description
I’m trying to use Zoom API to generate meeting reports and am running into some scope errors. I think these are scope errors. I’m using https://api.zoom.us/v2/accounts/{ userId}/report/daily as the API. I went into zoom to look at scopes, it seems like I’m not able to see any meeting scopes that I need.
Error
Invalid access token, does not contain scopes: [report:read:admin, zms:report:read].

Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth app is the type of app that I am using.

Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
These are the endpoints:
/report/users/{userId}/meetings

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Request URL: https://api.zoom.us/v2/report/users/50096687/meetings
  2. Add options and call API

var api = "https://api.zoom.us/v2/report/users/50096687/meetings";
    
    var headers = {
      "Authorization": "Bearer " + zoom.getAccessToken()
    };
    Logger.log(headers);
    
    var options = {
      "headers": headers,
      "method" : "GET",
      "muteHttpExceptions": true
    };
    
    
    var response = UrlFetchApp.fetch(api, options);
    
  1. See error

Additional context
Add any other context about the problem here.

Hey @mtshumba

Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question. :slightly_smiling_face:

Checkout these related threads that may have the answer you are looking for:

If these threads did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.

Thanks,
DeveloperBot

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