Problem getting Authentication Token


#1

I'm using this link to get the authentication token https://app.hubspot.com/oauth/authorize?client_id=<clientId>&scope=contacts%20content%20reports%20social%20automation%20timeline%20forms%20files%20transactional-email&redirect_uri=https://www.example.com/
and I get this error

I have all scopes accepted:

So why I'm getting the error?


#2

@breixocf Can you DM me your Client ID and secret. I'd like to see if I can reproduce this on my end.


#3

@breixocf You were missing the hubdb scope but that didn't seem to be the entire fix. I can reproduce it on my end.


#4

Can you confirm that the portal you are trying to install into has transactional email and the website add-on? also what edition of HubSpot is it?


#5


#6

I have everything active.


#7

@breixocf Checking off the boxes doesn't mean that the portal you are installing the app into has access to automation or hubdb or transactional email.


#8

I have this accounts, the last is where I will use for test HubSpot integration.


#9

@breixocf You can only install apps into a marketing/sales portal. You cannot install an app into a developer portal.


#10

I use the Developer domain called Enxendra DEV with the Docuten DEMO connection. Sincerely, I don't know how I could work correctly, and I feel strange about this :frowning:


#11

No need to feel strange! You need to make a normal portal either in Testing or with a free CRM to test with.


#12

I thought that I did it. How I must do this?


#13

Hi @breixocf,

Here's some documentation on creating test portals and getting their API key:


#14

I created a test portal, but when I accessed to that page, it gave me the error :frowning: I followed the steps until here
https://developers.hubspot.com/docs/faq/installing-an-app and the Request for integration permissions showed me the error (obviously a different page). I want to do a OAuth integration. Ask me if I must give you more info please.


#15

https://app.hubspot.com/oauth/2300022/authorize?client_id=229cdc01-02c2-4604-bccb-7009053c288a&scope=contacts%20content%20reports%20social%20automation%20timeline%20forms%20files%20hubdb%20transactional-email&redirect_uri=https://www.example.com/

This is the URL that I used. And the page gave me this response

Request for Integration Permissions
Uh oh!
Insufficient scopes were provided. Please contact the integrator.


#16

@breixocf Can you uncheck agregar forumlarios de accion and seeing if that helps?


#17

I created a new application and it worked! In this new app I don't pick that option... Maybe that fixed the problem, thank you!


#18

I'm glad you have it working! Form actions aren't really a thing anymore so checking it off without needing it might have caused the issue.


#19

Hello @pmanca @Derek_Gervais!
I have a new answer for you guys. In our company we are using HubSpot for a webpage with JS integration for forms. But now we want to synchronize the data obtained and add some events in Timeline for every contact.

Can I get access token for that app? Can we still have the 2 integrations (JS integration in forms and HTTP requests in code) ?
If you need more info, please contact me :stuck_out_tongue:

Hope you have a good day :blush:


#20

@breixocf You can use the access token for that app since you have "Formularios" checked off. You do not need a second app.