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."
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
sep 25, 20204:43 AM - editado sep 28, 20203:48 AM
Miembro
This oauth-token (xxx) does not have proper permissions! (requires all of [cms-analytics-api-acc
Hi Wendy,
I am also facing such similar issue but with a slight different error msg: 'authorized token does not have proper permissions! (requires all of [cms-analytics-api-access]). '
I looked the guide which you shared with remer, Analytics API overview but don't quite understand.
I am still new in API coding and could you please share advice on how to solve it with API coding if needed.
By portal ID, I mean the hub ID which is this - 3978304.
In this case, I took a look at your portal 3978304's subscription and note that it's on marketing starter. However, for certain endpoint on the Analytics API, it requires - Marketing Hub Professional or Enterprise i.e. Get all analytics views.
As such, if you're using any of the endpoint that requires Marketing Hub Professional or Enterprise plan, you'll likely run into the permissions error.
Understood that portal 3978304's subscription is on a marketing starter and if using endpoint on the analytics API that requires Marketing Hub Professional or Enterprise, most likely will run into permission error.
So my next question is how can my client who is managing this hubspot account change the endpoint of analytics API to 'marketing starter' to avoid such permission error? Could you please advise on this? Thanks!
It is not possible to change the endpoint i.e. Get all analytics views to allow it for marketing starter subscriptions.
Here's the overview of each Analytics endpoint - Analytics API Overview and their respective required plan. I'd advise your client to use only API that requires minimally a marketing starter plan if the app requirement is: minimally a marketing starter portal.