# OAuth token error for Company API

**URL:** <https://community.hubspot.com/t/oauth-token-error-for-company-api/13211>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [February 25, 2019, 8:43am UTC](https://community.hubspot.com/t/oauth-token-error-for-company-api/13211 "2019-02-25T08:43:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clyde](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/clyde/32/29368_2.png) [@Clyde](https://community.hubspot.com/u/Clyde)\
**Post date:** [February 25, 2019, 8:43am UTC](https://community.hubspot.com/t/oauth-token-error-for-company-api/13211/1 "2019-02-25T08:43:06Z")

</div>

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](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/a6593c4ea41ad7faffd44421f924067c761825ac.jpeg)

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

Thanks.

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [February 26, 2019, 9:49pm UTC](https://community.hubspot.com/t/oauth-token-error-for-company-api/13211/2 "2019-02-26T21:49:21Z")

</div>

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? [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/oauth2/get-access-token-information)

---

<div class="post-metadata">

**Author:** ![Clyde](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/clyde/32/29368_2.png) [@Clyde](https://community.hubspot.com/u/Clyde)\
**Post date:** [February 27, 2019, 9:36am UTC](https://community.hubspot.com/t/oauth-token-error-for-company-api/13211/3 "2019-02-27T09:36:45Z")

</div>

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
