Missing scopes error creating custom objects

Hi everyone!

I’m having an error trying to create a Custom Object. Even if I tried many different ways the error is always the same:

{"status":"error","message":"The scope needed for this API call isn't available for public use. If you have questions, contact support or post in our developerforum.","correlationId":"f97cdfdf-9f3d-4592-a856-7d80675b4bff","links":{"support":"https://help.hubspot.com/","forum":"https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations"},"category":"MISSING_SCOPES"}

I am following the directives at Accounts Dashboard | HubSpot so I am posting to https://api.hubapi.com/crm/v3/schemas .

These are all the things I tried and that got me to the same result

  • Using a developer account and also the production account
  • Adding the ?portalId=12345 param to the query string
  • Authenticate using either API Key or Private App with a bearer token (the app has every single scope enabled)
  • Posting the exact documentation example or a custom build body
  • Posting from: postman, console, documentation site (test call)

What is confusing is that if you hit the “Run in Postman” button on the documentation page, the collection you get created points to cmr/v3/objects instead of, cmr/v3/schemas. You get a 404 when you call there.

I am gessing there was a change on the API but I am not sure if that is related with this issue. I’m suspecting that because I have the crm.objects.custom.write scope (old version?) but I am missing the crm.schema.custom.write, that doesn’t exist.

Any help?

I honestly run our of ideas.

@GKotliar ,

Presently, you can only create a custom object with a hapikey unless you apply for the pilot program. Private apps are relatively new so I am asking around to see if the same approach is going to stay applicable to them. Thanks for pointing it out. In the interim, you will need to use your (non developer account) portal hapikey!

Hi dennisedson, thanks for the answer. I only used the private apps because I tried the hapikey and didn’t worked. I mean, I tried both and got the same error.

Hi @GKotliar ,
Plese follow this blog, we have created full blog for custom object creation with api :Create Custom Objects in HubSpot using API with this easy Guide , Accounts Dashboard | HubSpot

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.

Thanks, what you described is what I did by following the documentation. I am still not being able to succed though.

@GKotliar , can you confirm that the portal you are using is at the subscription level that is able to create custom objects?

Dennis, as you imagined, the problem was the subscription level. We were in PROFESSIONAL instead of the required ENTERPRISE level.

Sorry about the inconvenience, hopefully it will be of help for someone else.

Best

Having the same issue with Free CRM, does it not allowed for Free subscription to create custom obejcts?

@MSingh37 ,

These are the subscription levels that have access to custom objects: