APIs & Integrations

HS2018
Member

Accessing "error to api.hubapi.com/calendar/v1/event via oauth2

SOLVE

for accessing "api.hubapi.com/calendar/v1/event" endpoint i am using ouath2 flow and following settings

https://app.hubspot.com/oauth/authorize?response_type=code&client_id=e8578137-458c-4599-9c29-7971a38...

what should i do to above following error when logging ?

0 Upvotes
1 Accepted solution
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Accessing "error to api.hubapi.com/calendar/v1/event via oauth2

SOLVE

Hi @HS2018,

That error means that the portal you're trying to install the app to doesn't have access to some of the tools you're requesting. For example, if you were requesting the hubdb scope in a portal that did not have access to HubDB, you would see this error. In this case, it's likely that the portal you're trying to authorize doesn't have access to the content scope. Are you trying to authorize a Marketing Free portal? If you give me the Hub ID of the portal, I can look up which scopes are causing the error.

View solution in original post

0 Upvotes
3 Replies 3
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Accessing "error to api.hubapi.com/calendar/v1/event via oauth2

SOLVE

Hi @HS2018,

That portal (Hub ID 4424224) is a Marketing/CRM Free portal, which won't have access to the content scope. Marketing/CRM Free portals don't have access to the blog, landing page, or email tools, so they can't approve an integration that requests the content scope.

Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Accessing "error to api.hubapi.com/calendar/v1/event via oauth2

SOLVE

Hi @HS2018,

That error means that the portal you're trying to install the app to doesn't have access to some of the tools you're requesting. For example, if you were requesting the hubdb scope in a portal that did not have access to HubDB, you would see this error. In this case, it's likely that the portal you're trying to authorize doesn't have access to the content scope. Are you trying to authorize a Marketing Free portal? If you give me the Hub ID of the portal, I can look up which scopes are causing the error.

0 Upvotes
HS2018
Member

Accessing "error to api.hubapi.com/calendar/v1/event via oauth2

SOLVE

Hub ID of the portal 4424224

0 Upvotes