API Error missing scopes despite scopes being present

Hello!

We are seeing a random issues with an API app intgeration whereby the API is return a 403 due to a missing scope, despite the scope being present on the integration.

There have been no code changes and the system was operating as normal last week. Today, however, we are seeing an error when attempting to create custom objects that the scope

`crm.objects.custom.write` is not present

I have confirmed that this scope is indeed present.

I have tried removing and readding the scope with no luck

Anyone have any ideas?

{"status":"error","message":"This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.","correlationId":"9c250cfe-b9a3-4b64-a181-228e5d1e32a6","errors":[{"message":"One or more of the following scopes are required.","context":{"requiredScopes":["crm.objects.custom.write"]}}],"links":{"scopes":"https://developers.hubspot.com/scopes"},"category":"MISSING_SCOPES"}

Thanks

Hi @PTSergio :waving_hand:

Are you working with a Public or Private App? The custom object scopes are restricted for use via Public Apps. If you haven’t already, you may need to consider requesting access to these scopes (more info here).

I hope this proves helpful. Please let me know if you have any follow-up questions.

Morning

This is a private app and is still working in the production account. Just not the staging. The same code but with different API keys.

This is still an issue.

Thanks

Hello!
I am trying to create a lead using the API leads. I am using a private app and I have added all scopes needed but I can’t create anything. I still have 403 error scope missing despite I have all scopes. What can I do?

+1 same issue here on my test account, with the crm.objects.custom.write scope. (Private App) This was working previously and just noticed that it is not working today. This does however seem to still be working as expected on another production / non test account. Did you get anywhere with this?

Also consider that hubspot returns the exact same 403 MISSING_SCOPES error for both cases:
- when you actually have missing scopes

- when your hubspot account does not have access to certain paid / higher tier features
(Leads object is only available on Enterprise plan)

Hi,

I am trying to create a record for a custom object configured in Hubspot GUI. My public app has

crm.objects.custom.read and crm.objects.custom.write scopes.

When I hit POST API to create a record,I am getting below error

{

“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”: “019e6307-24a6-749c-8457-b337a2ad8c9e”,

“errors”: [

{

“message”: “One or more of the following scopes are required.”,

“context”: {

“requiredGranularScopes”: [

“crm.schemas.custom.write”,

“crm.objects.custom.write”,

“crm.objects.custom.highly_sensitive.write.v2”,

“crm.objects.custom.sensitive.write.v2”

]

}

}

],

“links”: {

“scopes”: “Working with OAuth - HubSpot docs”

},

“category”: “MISSING_SCOPES”

}

Hey @rkaruppusamy,

Thanks for adding to the thread here!

From the previous comments above, the accepted solution stated that custom object scopes are restricted for public apps and you may need to request access here:

Have you already attempted following these steps? If you’re still having trouble here, please feel to reach back out after following the steps provided by @zach_threadint!

Hope this helps!

Sam, Community Manager