How to get code for get token api

SOLVE
Highlighted
New Contributor

I have to get access token with OAuth api. I dont have value for code parameter of api. While I initiating OAuth from accessing url "https://app.hubspot.com/oauth/authorize?scope=contacts%20content%20reports%20social%20automation%20a..." getting error like "This hub doesn't have access to some HubSpot features that are required by this integration. Please contact the integrator."

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
HubSpot Moderator

Hi, @vikasnagare.

 

Happy to help.

 

The code parameter will be appended to your redirect_uri when a successful connection is made.

 

It sounds like you are attempting to select an account which does not have all the tools — and therefore scopes — you are requesting (e.g. the transactional email add-on for the transactional-email scope).

 

If you clarify which account you are trying to connect, I should be able to identify which features are missing.

Isaac Takushi

HubSpot Developer Support
Reply
0 Upvotes
1 Reply 1
Highlighted
HubSpot Moderator

Hi, @vikasnagare.

 

Happy to help.

 

The code parameter will be appended to your redirect_uri when a successful connection is made.

 

It sounds like you are attempting to select an account which does not have all the tools — and therefore scopes — you are requesting (e.g. the transactional email add-on for the transactional-email scope).

 

If you clarify which account you are trying to connect, I should be able to identify which features are missing.

Isaac Takushi

HubSpot Developer Support
Reply
0 Upvotes