# Custom Object Endpoints, not able to get custom object schema.

**URL:** <https://community.hubspot.com/t/custom-object-endpoints-not-able-to-get-custom-object-schema/72852>\
**Category:** APIs & Integrations\
**Created:** [January 13, 2023, 11:26am UTC](https://community.hubspot.com/t/custom-object-endpoints-not-able-to-get-custom-object-schema/72852 "2023-01-13T11:26:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PPSL](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@PPSL](https://community.hubspot.com/u/PPSL)\
**Post date:** [January 13, 2023, 11:26am UTC](https://community.hubspot.com/t/custom-object-endpoints-not-able-to-get-custom-object-schema/72852/1 "2023-01-13T11:26:28Z")

</div>

Hi,

I have created a custom object as “My\_Object”, But while executing the schema endpoint to get all the field schema, I am not getting the response, It should be return from field schema.

API - [https://api.hubapi.com/crm/v3/schemas/My\_Object](https://api.hubapi.com/crm/v3/schemas/My_Object)

while executing the above api getting the below response.

{

```
"status": "error",

"message": "Unable to infer object type from: My Object",

"correlationId": "353df7e7-a271-485a-8be2-6b3bbfaee435"

```

}

the same API is working with single word as an example custom object “worker”.

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

{

```
"labels": {

    "singular": "worker",

    "plural": "workers"

},

"requiredProperties": \[

    "worker\_id"

],

```

It seems like we can create a custom object with “underscore”, but at the time of checking the schema part custom object is not working with “underscore”.

Can anyone help me on this.

---

<div class="post-metadata">

**Author:** ![ChrisoKlepke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chrisoklepke/32/11213_2.png) [@ChrisoKlepke](https://community.hubspot.com/u/ChrisoKlepke)\
**Post date:** [January 13, 2023, 1:34pm UTC](https://community.hubspot.com/t/custom-object-endpoints-not-able-to-get-custom-object-schema/72852/2 "2023-01-13T13:34:11Z")

</div>

Hey @PPSL ,

thank you for reaching out to the community.

When you call this endpoint here, you’re getting all schemas.

`crm/v3/schemas`

There you can also find key for _name_. This is what you can use to get only the specific schema.

However, it is even better or more reliable to use _objectType_ which looks like an ID similar to this _2-106804705_. You can find that also in the first endpoint I mentioned, or just navigate to your object within the HubSpot UI and take a look at the URL.

With this ID you can always use the respective endpoints like this:

`crm/v3/schemas/2-106804705`

If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I’d really appreciate it.

Cheers,

Chriso
