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 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 scope

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

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

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

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

Thanks btw