APIs & Integrations

devForFer
Miembro

Oauth token does not have proper permissions! (requires all of [form-analytics-api-access])

resolver

Hello.

 

I know a question of a similar type has been posted, but there are some differences.

 

I am getting this error ( Oauth token (xxx) does not have proper permissions! (requires all of [form-analytics-api-access]) ) for an account that should have those permissions (Marketing Pro).

Currently, I am trying to access the analytics report for forms, with Oauth. My purpose (for now) is retrieving the submissions per form for various forms, without an interest in the contents.

 

The portal ID is 4394779

Pricing tier: Marketing Pro

Endpoint:

url = f"https://api.hubapi.com/analytics/v2/reports/forms/monthly&start={start_date}&end={end_date}&f={form_id}"

Scopes: Oauth, Forms, Reports

 

Which, according to this (access to analytics reporting per tier)  should be available already

 

Thanks in advance

0 Me gusta
1 Soluciones aceptada
WendyGoh
Solución
HubSpot Employee
HubSpot Employee

Oauth token does not have proper permissions! (requires all of [form-analytics-api-access])

resolver

Hey @devForFer,

 

In this case, I believe portal 4394779 has the necessary scopes to call the Get Analytics data for specific objects endpoint. The issue seems to be that the app that is requesting to call the Get Analytics data for specific objects endpoint doesn't have the necessary scope (business-intelligence) granted.

 

As such, could you ensure that the app that is making the request has the business-intelligence granted on portal 4394779? 

Ver la solución en mensaje original publicado

0 Me gusta
2 Respuestas 2
WendyGoh
Solución
HubSpot Employee
HubSpot Employee

Oauth token does not have proper permissions! (requires all of [form-analytics-api-access])

resolver

Hey @devForFer,

 

In this case, I believe portal 4394779 has the necessary scopes to call the Get Analytics data for specific objects endpoint. The issue seems to be that the app that is requesting to call the Get Analytics data for specific objects endpoint doesn't have the necessary scope (business-intelligence) granted.

 

As such, could you ensure that the app that is making the request has the business-intelligence granted on portal 4394779? 

0 Me gusta
devForFer
Miembro

Oauth token does not have proper permissions! (requires all of [form-analytics-api-access])

resolver

Hey,

 

That seems to have solved the issue. Thanks!

 

0 Me gusta