APIs & Integrations

PTSergio
Member

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

 

0 Upvotes
3 Replies 3
DWebber3
Member

API Error missing scopes despite scopes being present

+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?

0 Upvotes
zach_threadint
Guide

API Error missing scopes despite scopes being present

Hi @PTSergio 👋

 

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.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


PTSergio
Member

API Error missing scopes despite scopes being present

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

0 Upvotes