INVALID_OAUTHSCOPE on calling https://accounts.zoho.com/oauth/user/info

INVALID_OAUTHSCOPE on calling https://accounts.zoho.com/oauth/user/info

I followed the guide at https://www.zoho.com/mail/help/api/using-oauth-2.html . Everything works fine except when I make an API call to https://accounts.zoho.com/oauth/user/info to get the authenticated user, I get a 401 Unauthorized error with the response:


  1. {
  2.   "response": "error",
  3.   "cause": "INVALID_OAUTHSCOPE"
  4. }

My guess is that this has to do with scope, I have matched any scope I can think of and yet the error persists. Here is my current scope:

  1. ZohoMail.messages.READ,ZohoMail.messages.CREATE,ZohoMail.accounts.READ,ZohoMail.organization.accounts.READ


Here's the token response I get: 


  1. {
  2.     access_token: '1000.004adfcad67d878bf472cc746724ebee.randomSample',
  3.     refresh_token: '1000.8e6318390c54fd4a7347d84c4b4e879c. randomSample',
  4.     scope: 'VirtualOffice.messages.READ VirtualOffice.messages.CREATE VirtualOffice.accounts.READ',
  5.     api_domain: 'https://www.zohoapis.com',
  6.     token_type: 'Bearer',
  7.     expires_in: 3600
  8.   }


Any idea what I could be doing wrong?