APIs & Integrations

devForFer
メンバー

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

解決

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 いいね!
1件の承認済みベストアンサー
WendyGoh
解決策
HubSpot Employee
HubSpot Employee

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

解決

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 いいね!
2件の返信
WendyGoh
解決策
HubSpot Employee
HubSpot Employee

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

解決

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 いいね!
devForFer
メンバー

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

解決

Hey,

 

That seems to have solved the issue. Thanks!

 

0 いいね!