APIs & Integrations

Clyde
Participant

OAuth token error for Company API

SOLVE

Hi,

 

I am trying to integrate my app with Hubspot. I have successfully linked the app and have received the access and refresh tokens via api.

 

However when I try to create a Company using the Companies API i get the following error:

"This oauth-token does not have proper permissions! (requires all of [contacts-write])"

 

Please see screenshot of the scopes given:

Capture.JPG

 

Please advice on what I need to do further in this regard.

 

Thanks.

0 Upvotes
1 Accepted solution
Clyde
Solution
Participant

OAuth token error for Company API

SOLVE

Hi Connor,

 

I am new to Hubspot, thus it was an issue with my developer account. I had not connected a CRM package to the account. Once I added the CRM package it worked fine.

 

Thanks for your help.

 

regards,

Clyde 

View solution in original post

2 Replies 2
cbarley
HubSpot Alumni
HubSpot Alumni

OAuth token error for Company API

SOLVE

hi @Clyde , that should be all the scopes you'd need to make a request with an oauth token for the companies api. Is it possible these scopes were not included in your original authorization URL? What gets returned back to you when you put your token through this endpoint? https://developers.hubspot.com/docs/methods/oauth2/get-access-token-information

0 Upvotes
Clyde
Solution
Participant

OAuth token error for Company API

SOLVE

Hi Connor,

 

I am new to Hubspot, thus it was an issue with my developer account. I had not connected a CRM package to the account. Once I added the CRM package it worked fine.

 

Thanks for your help.

 

regards,

Clyde