Can't create a custom object

Hubspot has a limitation when it comes to creating custom objects and throws an error:

 {
  "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 developer forum.",
  "correlationId": "2890e057-d147-4e93-a669-22d2abd8dde5",
  "links": {
    "support": "https://help.hubspot.com/",
    "forum": "https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations"
  },
  "category": "MISSING_SCOPES"
}

See this post for more information: Solved: HubSpot Community - Re: Getting "The scope needed for this API call isn't available for public use" on Custom - HubSpot Community

There are two work arounds:

  1. Submit a public application with Hubspot which would include the ability to create custom objects: Custom Objects OAuth Access
  2. Create a private app and use the private app token to create the custom object