# Creating Custom Object schema from OAuth App

**URL:** <https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686>\
**Category:** APIs & Integrations\
**Created:** [March 29, 2021, 5:38pm UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686 "2021-03-29T17:38:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinDowty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/justindowty/32/63860_2.png) [@JustinDowty](https://community.hubspot.com/u/JustinDowty)\
**Post date:** [March 29, 2021, 5:38pm UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/1 "2021-03-29T17:38:38Z")

</div>

I am building an app integration that will make use of a new Custom Object Schema for portals that install and use the app. From the documentation it seems I should be able to create custom object schemas with OAuth credentials. I have the necessary scopes included for the integration. Using the same object schema I also am able to add this new custom object definition when using an API Key, but not with OAuth. Using OAuth I get this 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.’  
This message seems to imply that you cannot create a Custom Object Schema from an app with OAuth, however the documentation here [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/crm-custom-objects) shows OAuth being supported and requiring the crm.objects.custom.write scope (which I have that scope with the integration).  
Is there something I am missing here? I was under the impression we would be able to create custom object schemas to work with our apps.

---

<div class="post-metadata">

**Author:** ![sharonlicari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sharonlicari/32/101479_2.png) [@sharonlicari](https://community.hubspot.com/u/sharonlicari)\
**Post date:** [March 30, 2021, 10:32am UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/2 "2021-03-30T10:32:43Z")

</div>

Hey @JustinDowty

Thank you for sharing this information and some context. I’ll invite to this conversation a few experts that can share their thoughts with you.

Hey [@quentin\_lamamy](https://community.hubspot.com/t5/user/viewprofilepage/user-id/148828) @lynton what would you advise in this case?

Thanks

Sharon

---

<div class="post-metadata">

**Author:** ![JustinDowty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/justindowty/32/63860_2.png) [@JustinDowty](https://community.hubspot.com/u/JustinDowty)\
**Post date:** [March 30, 2021, 7:40pm UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/3 "2021-03-30T19:40:08Z")

</div>

I have reached out to another Hubspot team member and got my answer. At this time the creation of custom object schema from an app integration is not supported.

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [January 15, 2024, 6:05am UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/4 "2024-01-15T06:05:09Z")

</div>

Hi @JustinDowty 👋

Just in case this is still relevant and/or someone else stumbles across this post.

More information about working with HubSpot Custom Object API endpoints where authentication method is OAuth can be found here: [Custom Objects OAuth Access](https://developers.hubspot.com/docs/api/custom-objects-schema-pilot)

I hope this proves useful. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 17, 2024, 6:33pm UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/5 "2024-01-17T18:33:58Z")

</div>

Thank you, [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) for taking the time to come back and update this post 🙌 — Jaycee

---

<div class="post-metadata">

**Author:** ![AKatukuri](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AKatukuri](https://community.hubspot.com/u/AKatukuri)\
**Post date:** [January 18, 2024, 1:44pm UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/6 "2024-01-18T13:44:02Z")

</div>

Thanks for the reply, I found out we might need to apply and get required scopes to create new custom object schema from HubSpot.

---

<div class="post-metadata">

**Author:** ![GPaglia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gpaglia/32/102945_2.png) [@GPaglia](https://community.hubspot.com/u/GPaglia)\
**Post date:** [February 8, 2024, 5:22pm UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/7 "2024-02-08T17:22:54Z")

</div>

Hi [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811)  
So if I create an app (not to be included in the marketplace) from the developer account, where I have to create custom objects, do I have to make a request?

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [February 8, 2024, 8:38pm UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/8 "2024-02-08T20:38:08Z")

</div>

Hi @GPaglia 👋

As per [HubSpot documentation](https://developers.hubspot.com/docs/api/custom-objects-schema-pilot), if it’s intended for a **single HubSpot portal/account** , the current advice is to use [Private App authentication](https://developers.hubspot.com/blog/how-to-build-a-custom-object-using-private-apps) to manage your Custom Objects (and/or [via web UI](https://knowledge.hubspot.com/object-settings/create-custom-objects)).

If you’re intending to use Public App authentication (whether the app be listed or unlisted) across **multiple HubSpot portals/accounts** , I’d recommend [making the request](https://developers.hubspot.com/docs/api/custom-objects-schema-pilot).

I hope this proves useful. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![AKatukuri](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AKatukuri](https://community.hubspot.com/u/AKatukuri)\
**Post date:** [December 18, 2023, 2:59pm UTC](https://community.hubspot.com/t/creating-custom-object-schema-from-oauth-app/34686/9 "2023-12-18T14:59:15Z")

</div>

is this still the case? Can’t we create the custom object schema via the oAuth public app? Can we only do this in the private app?
