Unable to create Custom Object

While creating a custom object, I am getting following 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": "0f8db82c-1fd4-488a-a61b-23d41f59b411",
 "links": {
 "support": "https://help.hubspot.com/",
 "forum": "https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations"
 },
 "category": "MISSING_SCOPES"
}

While my app has the scope to create a custom schema, still i am getting the error:
Request URL: https://api.hubapi.com/crm/v3/schemas
Request Body as follows:

{
 "name": "car",
 "description": "Custom object for Cars",
 "labels": {
 "singular": "Car",
 "plural": "Cars"
 },
 "properties": [
 {
 "updatedAt": "2024-11-05T19:32:23.431Z",
 "createdAt": "2019-08-06T02:43:30.927Z",
 "name": "activity_type",
 "label": "Call and meeting type",
 "type": "enumeration",
 "fieldType": "select",
 "description": "The activity type of the engagement",
 "groupName": "engagement",
 "options": [],
 "displayOrder": -1,
 "calculated": false,
 "externalOptions": true,
 "hasUniqueValue": false,
 "hidden": false,
 "hubspotDefined": true,
 "modificationMetadata": {
 "archivable": true,
 "readOnlyValue": false
 },
 "formField": false,
 "dataSensitivity": "non_sensitive"
 }
 .....
 ]
}

Hey @BDabhi7 where did you get that endpoint from? This error comes from an internal endpoint attempting to be used.

The public schema endpoint is within the dev docs here:

Here’s the public endpoints to create custom objects:

Hey @BDabhi7,

I think this is the API you are looking for..

Hope this might help!

Regards,