# Failed to Create Custom object schema through API

**URL:** <https://community.hubspot.com/t/failed-to-create-custom-object-schema-through-api/110930>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [July 9, 2024, 11:18am UTC](https://community.hubspot.com/t/failed-to-create-custom-object-schema-through-api/110930 "2024-07-09T11:18:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RM80](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@RM80](https://community.hubspot.com/u/RM80)\
**Post date:** [July 9, 2024, 11:18am UTC](https://community.hubspot.com/t/failed-to-create-custom-object-schema-through-api/110930/1 "2024-07-09T11:18:20Z")

</div>

I created an app in HubSpot and would like to create custom object schemas. However, I don’t see write permissions in the available scope list. As a result, when I try to create the custom object schema using API endpoint:[https://api.hubapi.com/crm/v3/schemas](https://api.hubapi.com/crm/v3/schemas) , I receive the following error: 403 Forbidden: [{“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”:“4e3cc8d9-6872-4ce6-96a9-07bc62a11035”,“links”:{“support”:“[https://help.hubspot.com/",“forum”:“https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations”},“category”:"MISSING\_SCOPES](https://help.hubspot.com/%22,%22forum%22:%22https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations%22%7D,%22category%22:%22MISSING_SCOPES)”}]

 ![image_2024_07_09T10_55_57_395Z.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/8/9831653ec01f1e11cbb1bca4de9aed5349a21454.png)

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [July 9, 2024, 2:16pm UTC](https://community.hubspot.com/t/failed-to-create-custom-object-schema-through-api/110930/2 "2024-07-09T14:16:18Z")

</div>

@RM80 - is the ‘create’ API you are looking for at [https://api.hubapi.com/crm-object-schemas/v3/schemas](https://api.hubapi.com/crm-object-schemas/v3/schemas) ?

I see a read and write option in scopes available - but I know this is restricted to certain Enterprise hubs, so perhaps this is the issue you are hitting?

Steve

---

<div class="post-metadata">

**Author:** ![RM80](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@RM80](https://community.hubspot.com/u/RM80)\
**Post date:** [July 9, 2024, 3:14pm UTC](https://community.hubspot.com/t/failed-to-create-custom-object-schema-through-api/110930/3 "2024-07-09T15:14:22Z")

</div>

Yes Steve, I have used these two apis,

[https://api.hubapi.com/crm-object-schemas/v3/schemas](https://api.hubapi.com/crm-object-schemas/v3/schemas)

[https://api.hubapi.com/crm/v3/schemas](https://api.hubapi.com/crm/v3/schemas)

to create custom object schema as per this: [https://developers.hubspot.com/docs/api/crm/crm-custom-objects?\_\_hstc=15489257.e05d6aa09b757f44a906067e6dea8641.1720506513188.1720506513188.1720506513188.1&\_\_hssc=15489257.1.1720506513188&\_\_hsfp=3199811007#custom-object-example](https://developers.hubspot.com/docs/api/crm/crm-custom-objects? __hstc=15489257.e05d6aa09b757f44a906067e6dea8641.1720506513188.1720506513188.1720506513188.1&__ hssc=15489257.1.1720506513188&__hsfp=3199811007#custom-object-example)

{

“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”: “341548e7-5166-44d1-a740-f879f8576cb2”,

“links”: {

“support”: “[https://help.hubspot.com/](https://help.hubspot.com/)”,

“forum”: “[https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations](https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations)”

},

“category”: “MISSING\_SCOPES”

}
