This oauth-token (xxx) does not have proper permissions! (requires all of [cms-analytics-api-acc

Highlighted
New Contributor

Hi,

 

Today I started seeing this error in my application (it was working before)

 

```

This oauth-token (xxxxxxx) does not have proper permissions! (requires all of [cms-analytics-api-access])

```

I'm try to fetch this `https://api.hubapi.com/analytics/v2/reports/landing-pages/{pageId}/sources/summarize/daily?start=201...`

 

I could not find documentation about `cms-analytics-api-access` in the Scope list here https://developers.hubspot.com/docs/methods/oauth2/oauth2-overview. If I include it in the authentication request, Hubspot authorization page shows an error saying "Couldn’t complete the connection An invalid scope name was provided. Please contact the integrator."

 

 

Reply
0 Upvotes
1 Reply 1
Community Manager

Hi @remer,

 

I hope all is well with you 😃

 

When looking at the endpoint you're using - HubSpot Analytics API and cross checking it under the scope here: Initiate an Integration with Oauth 2.0 (Under the scopes table > third row), there's a note that state the following:

Note: Access to specific data will depend on the subscription that the HubSpot account has. See the Analytics API overview for more details.

 

This means that certain analytics data requires Marketing professional and above or Marketing Enterprise or it is open to free user. You can check this over here: Analytics API Overview and based on the analytics data that you shared across, the required plan is:

  • Marketing Hub Professional or Enterprise, or HubSpot CMS

I hope this helps to clarify!

Reply
0 Upvotes