# MISSING\_SCOPES while fetching companies

**URL:** <https://community.hubspot.com/t/missing-scopes-while-fetching-companies/27189>\
**Category:** APIs & Integrations\
**Tags:** companies\
**Created:** [October 26, 2020, 5:05am UTC](https://community.hubspot.com/t/missing-scopes-while-fetching-companies/27189 "2020-10-26T05:05:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DuplexpointDev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/duplexpointdev/32/35608_2.png) [@DuplexpointDev](https://community.hubspot.com/u/DuplexpointDev)\
**Post date:** [October 26, 2020, 5:05am UTC](https://community.hubspot.com/t/missing-scopes-while-fetching-companies/27189/1 "2020-10-26T05:05:16Z")

</div>

Hi all,

After finishing OAuth flow, I try to query our customer’s companies with this API ([Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/companies)). But it returns a **MISSING\_SCOPES** error even the access-token has the **contacts** scope that the document requires.

The request looks like

```lia-code-sample
curl --request GET \
 --url 'https://api.hubapi.com/crm/v3/objects/companies?limit=10&paginateAssociations=false&archived=false' \
 --header 'authorization: Bearer CNDIlKPWLhICAQEYvNySBCDL3fAFKISTDjIZANv8EttwDJ6HhtvvIW-yauQP5Bl1o-D2pDoaAAAAQQAAAAAAAAAAAAAAAAAAAAAAAAAAABBCGQDb_BLbGxKE7P2DRww3OHYzMWqmdFbmwnY'

```

This is the response

```lia-code-sample
{
 "status": "error",
 "message": "This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.",
 "correlationId": "2337d33b-c3bb-41eb-ae53-119c23784d22",
 "errors": [
 {
 "message": "One or more of the following scopes are required.",
 "context": {
 "requiredScopes": [
 "e-commerce",
 "contacts",
 "crm.objects.custom.read",
 "crm.objects.custom.write",
 "tickets"
 ]
 }
 }
 ],
 "links": {
 "scopes": "https://developers.hubspot.com/scopes"
 },
 "category": "MISSING_SCOPES"
}

```

I checked the permissions of the Access Token. It already has the `contacts` scope inside.

`{"token":"CNDIlKPWLhICAQEYvNySBCDL3fAFKISTDjIZANv8EttwDJ6HhtvvIW-yauQP5Bl1o-D2pDoaAAAAQQAAAAAAAAAAAAAAAAAAAAAAAAAAABBCGQDb_BLbGxKE7P2DRww3OHYzMWqmdFbmwnY","user":"thien@duplexpoint.com","hub_domain":"hubspot-developers-lyfdhd.com","scopes":["contacts","oauth"],"scope_to_scope_group_pks":[25,31,205],"hub_id":8695356,"app_id":231812,"expires_in":19826,"user_id":12332747,"token_type":"access"}`

---

<div class="post-metadata">

**Author:** ![DuplexpointDev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/duplexpointdev/32/35608_2.png) [@DuplexpointDev](https://community.hubspot.com/u/DuplexpointDev)\
**Post date:** [October 26, 2020, 5:32am UTC](https://community.hubspot.com/t/missing-scopes-while-fetching-companies/27189/2 "2020-10-26T05:32:43Z")

</div>

It seems to happen when I’m using my developer account (which has no company inside). When I create a new test account, it works. So I think it rather is a document issue but not a bug
