# CRM scope not working...

**URL:** <https://community.hubspot.com/t/crm-scope-not-working/103537>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [March 27, 2024, 10:40am UTC](https://community.hubspot.com/t/crm-scope-not-working/103537 "2024-03-27T10:40:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HazGaroth](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@HazGaroth](https://community.hubspot.com/u/HazGaroth)\
**Post date:** [March 27, 2024, 10:40am UTC](https://community.hubspot.com/t/crm-scope-not-working/103537/1 "2024-03-27T10:40:02Z")

</div>

Hello,

I’m trying to use the CRM export API ([Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/exports))

I’m having trouble authenticating, I’m using a token generated by a private app. Every time I launch it, I get a 403 “scope” error.

The response:  
[403] This app hasn’t been granted all required scopes to make this call. Read more about required scopes here: [https://developers.hubspot.com/scopes](https://developers.hubspot.com/scopes)… Error Messages: [All of the following scopes are required.{“requiredScopes”:[“crm.export”]}].

I’ve checked several times, my app does contain “crm.export”, I’ve tried to regenerate the token but it doesn’t work…

I’m looking for a solution…

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [March 27, 2024, 3:15pm UTC](https://community.hubspot.com/t/crm-scope-not-working/103537/2 "2024-03-27T15:15:09Z")

</div>

Hi @HazGaroth

I hope this curl will help you to resolve your query

```lia-code-sample
curl --request POST \
 --url https://api.hubapi.com/crm/v3/exports/export/async \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
 --header 'content-type: application/json' \
 --data '{
 "exportType": "LIST",
 "format": "CSV",
 "exportName": "test",
 "objectProperties": [
 "email"
 ],
 "associatedObjectType": "companies",
 "objectType": "contacts",
 "language": "EN",
 "listId": "1697"
}'

```

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!

---

<div class="post-metadata">

**Author:** ![HazGaroth](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@HazGaroth](https://community.hubspot.com/u/HazGaroth)\
**Post date:** [March 27, 2024, 3:43pm UTC](https://community.hubspot.com/t/crm-scope-not-working/103537/3 "2024-03-27T15:43:43Z")

</div>

Hello Gaurav,  
This is exactly what i have at this point, but with a “view” request type.  
It look like this:  
-- header Token + content type  
-- data’{  
“exportType”: “VIEW”,  
“exportName”: “test”,  
“objectProperties”: [  
“lastname”  
],  
“objectType”: “CONTACT”,  
“language”: “FR”,  
“publicCrmSearchRequest”: {  
“filters”: [  
{  
“propertyName”: “company”,  
“operator”: “EQ”  
}  
],  
“sorts”: [  
“ASC”  
],  
“query”: “omnes”  
}  
}’

My problem is not with writing the request, but with the authentication. For some reason my token, which has all the necessary acces, doesn’t work.
