APIs & Integrations

matischroder
Member

Scope error having that scope available

 

Hey,
I am trying to get the leads from the api with https://api.hubapi.com/crm/v3/objects/leads
the scope of the endpointthe 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.
 
my application scopemy application scope

 

 

0 Upvotes
2 Replies 2
PMcConnell
Member | Platinum Partner
Member | Platinum Partner

Scope error having that scope available

Hi @matischroder ,

Is this in an installed app or have you tried testing through postman or the documentation tools here:
https://developers.hubspot.com/docs/reference/api/crm/objects/leads#get-%2Fcrm%2Fv3%2Fobjects%2Flead...

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







Pauric Mc Connell
Software Engineer
Baskey Digitial

Book a consultation

Did my post help answer your query? Help the community (and me) by marking it as a solution.


0 Upvotes
matischroder
Member

Scope error having that scope available

Hey Pauric, thank for answering.

 

I tried from the documentation tools and postman. I just try again to create a batch 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

 

 

 

0 Upvotes