APIs & Integrations

rolandd
Member

Hub does not have access to the required scopes

Hello all,

 

Please bear with me as this is the first time I am working with Hubspot but I have an issue generating the Oauth token.

 

I do get my authorization URL and when I go there, I am given the option to choose which account to use. So I pick my test account and then I end up on a page with 3 moving dots and nothing else. After inspecting the Network tab I see the POST requests returns a 403:

statusHUB_UNAUTHORIZED
messagehub does not have access to the required scopes
correlationIdc0c6e53b-18e6-4e5c-8523-03c22bc5211a
requestId702caea98ebb2b2694574e2f1eaf5f3d

 

I have no idea where to configure these scopes on my test account. The test account has 1 Super User and from what I read this should have access to all.

 

These 2 accounts I have:

Developer Hub ID 6108641

Test Hub ID 6108890

 

My app, which is set to private, has the following scopes defined: contacts, oauth, transactional-email

 

Even removing these scopes I always get the same error.

 

Where do I go to set the correct access for the scopes?

 

Thank you,

 

RolandD

5 Replies 5
himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Hub does not have access to the required scopes

@rolandd 

 

It can be the case that scopes that you are adding in the auth URL is not contained in the test portal. Contacts and oauth scopes are almost present in all HubSpot accounts, so that should not make any difference. Next for transactional-email, do you have added the HubSpot Transaction Email add-on? If not then you can seperate the scopes as like:

'optional_scope' => 'transactional-email',
'scope' => 'oauth%20contacts'

 

Also make sure you are doing the oauth with super admin user.

 

Thanks

Digital Marketing & Inbound Expert In Growth Hacking Technology
0 Upvotes
rolandd
Member

Hub does not have access to the required scopes

Hello @himanshurauthan ,

 

Thank you for stepping up. You are spot-on about the transactional-emails scope. If I remove that one, I am able to get my refresh-token.

 

Would be nice if Hubspot would show a message on-screen 🙂

 

Is it possible to test the transactional-email API in test mode?

 

Thank you,

 

RolandD

 

 

himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Hub does not have access to the required scopes

Hello there,

As far I know the HubSpot use to show such error windows but these days the error window is having some issues and cannot be user friendly.

You can keep the other scopes under optional scope in the url.

We do not have such feature yet to test the transactional email addon. For this you can seek help from any HubSpot reps or a community manager.

Thanks
Digital Marketing & Inbound Expert In Growth Hacking Technology
0 Upvotes
rolandd
Member

Hub does not have access to the required scopes

Hello,

 

Thank you so much for all the feedback. All good, I am up and running.

 

Have a great evening.

himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Hub does not have access to the required scopes

Hello @rolandd 

 

Can you please send me the request payload/parameters or the auth URL that you are using to do authorization on HubSpot?

 

Thanks

Digital Marketing & Inbound Expert In Growth Hacking Technology
0 Upvotes