I cannot get my own private app working for this scope. It can search and create contacts correctly, but it always fails on Leads. This is using the Node SDK on npm.
My application is a private app and it has every single permission checked. I have also removed permissions then re-added them to try to figure out the issue.
This is the main reason why I wanted to create an app for our Hubspot account, so it’s a major blocker. What can I do to fix this?
“requiredGranularScopes”:[“crm.objects.leads.write”]},"messa
ge":“One or more of the following scopes are required.”
Hey, @daninngest
Welcome to our community. Thanks for the question, and thank you for including your details. Two quick questions:
- Your portal has a Sales Hub Professional or Enterprise subscription, correct?
- Can you try making a similar request using Postman and then share the request, response, and error message here, please?
Having an example using Postman helps me take a reproducible example to my internal resources if we need it.
Thank you very much for the additional details! — Jaycee
I have tried list and create lead request using postman. Its giving same response. But my private app has both crm.objects.leads.read and crm.objects.leads.write permission.
{
“status”: “error”,
“message”: “This app hasn’t been granted all required scopes to make this call. Read more about required scopes here: Scopes - HubSpot docs”,
“correlationId”: “607e7734-a65d-4cea-afcb-ecf8ef3bb218”,
“errors”: [
{
“message”: “One or more of the following scopes are required.”,
“context”: {
“requiredGranularScopes”: [
“crm.objects.leads.write”
]
}
}
],
“links”: {
“scopes”: “Working with OAuth - HubSpot docs”
},
“category”: “MISSING_SCOPES”
}
Hi Jaycee,
We’re on the “Starter Customer Platform” which includes “Sales Hub Starter” - Can I not create a “lead” via the API even via Postman