# Scope error having that scope available

**URL:** <https://community.hubspot.com/t/scope-error-having-that-scope-available/125434>\
**Category:** APIs & Integrations\
**Tags:** free, starter\
**Created:** [February 5, 2025, 3:45am UTC](https://community.hubspot.com/t/scope-error-having-that-scope-available/125434 "2025-02-05T03:45:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matischroder](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@matischroder](https://community.hubspot.com/u/matischroder)\
**Post date:** [February 5, 2025, 3:45am UTC](https://community.hubspot.com/t/scope-error-having-that-scope-available/125434/1 "2025-02-05T03:45:44Z")

</div>

Hey,  
I am trying to get the leads from the api with [https://api.hubapi.com/crm/v3/objects/leads](https://api.hubapi.com/crm/v3/objects/leads)

 ![Screenshot from 2025-02-05 13-29-46.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/8/d8358728f9b834bd124ec961f95ebe2ac282cb52.png)  
the scope of the endpoint

I get the scope error:  
“errors”: [  
{  
“message”: “One or more of the following scopes are required.”,  
“context”: {  
“requiredGranularScopes”: [  
“crm.objects.leads.read”  
]  
}  
}  
],

But in my app I have that scope allowed  
I already rotate the key and use the new one. I am using the access token.  
I also just create some leads and didn’t have any troubles, the problem is reading only.

 ![Screenshot from 2025-02-05 12-02-45.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/0/f0cf404ac85c8b8630ccef367186050ea2c3762c.png)  
my application scope

---

<div class="post-metadata">

**Author:** ![PMcConnell](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pmcconnell/32/82468_2.png) [@PMcConnell](https://community.hubspot.com/u/PMcConnell)\
**Post date:** [February 5, 2025, 10:57am UTC](https://community.hubspot.com/t/scope-error-having-that-scope-available/125434/2 "2025-02-05T10:57:31Z")

</div>

Hi @matischroder ,  
Is this in an installed app or have you tried testing through postman or the documentation tools here:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Freference%2Fapi%2Fcrm%2Fobjects%2Fleads)**

I have tested with the same permission you have listed and I am getting the correct results. So maybe there could be a deployment issue with your app or perhaps a subscription level issue.  
I’d be happy to chat through it on a free call if you’d like. Feel free to reach out.  
Pauric

---

<div class="post-metadata">

**Author:** ![matischroder](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@matischroder](https://community.hubspot.com/u/matischroder)\
**Post date:** [February 7, 2025, 7:59am UTC](https://community.hubspot.com/t/scope-error-having-that-scope-available/125434/3 "2025-02-07T07:59:30Z")

</div>

Hey Pauric, thank for answering.

I tried from the documentation tools and postman. I just try again to [create a batch](https://developers.hubspot.com/docs/reference/api/crm/objects/leads#post-%2Fcrm%2Fv3%2Fobjects%2Fleads%2Fbatch%2Fcreate) of leads and get the same error.

It is weird. I also create another app, same result.

Maybe is something about the subscription, but in that case the error message is not the best one.

Thanks again, Matias

---

<div class="post-metadata">

**Author:** ![matischroder](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@matischroder](https://community.hubspot.com/u/matischroder)\
**Post date:** [March 25, 2025, 4:46am UTC](https://community.hubspot.com/t/scope-error-having-that-scope-available/125434/4 "2025-03-25T04:46:41Z")

</div>

Finally I realised that it was because I didn’t have a sales page created. Maybe the error response should be different.

Thanks btw
