# get object type from object type id

**URL:** <https://community.hubspot.com/t/get-object-type-from-object-type-id/61664>\
**Category:** APIs & Integrations\
**Created:** [July 25, 2022, 4:48pm UTC](https://community.hubspot.com/t/get-object-type-from-object-type-id/61664 "2022-07-25T16:48:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfroment](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@sfroment](https://community.hubspot.com/u/sfroment)\
**Post date:** [July 25, 2022, 4:48pm UTC](https://community.hubspot.com/t/get-object-type-from-object-type-id/61664/1 "2022-07-25T16:48:05Z")

</div>

Hello,  
I’m trying to understand a bit better the associations and in order to do so I’m trying to get the object from the toObjectTypeId. Like if you create a custom object without any associated objects you’ll end up with  
```  
{  
“fromObjectTypeId”: “2-107363803”,  
“toObjectTypeId”: “0-49”,  
“name”: “mab\_to\_email”,  
“cardinality”: “ONE\_TO\_MANY”,  
“inverseCardinality”: “ONE\_TO\_MANY”,  
“id”: “35”,  
“createdAt”: null,  
“updatedAt”: null  
},  
{  
“fromObjectTypeId”: “0-49”,  
“toObjectTypeId”: “2-107363803”,  
“name”: “mab\_to\_email”,  
“cardinality”: “ONE\_TO\_MANY”,  
“inverseCardinality”: “ONE\_TO\_MANY”,  
“id”: “36”,  
“createdAt”: null,  
“updatedAt”: null  
},  
```  
In the response and there email is a properties of contact itself.  
So my question is is there any route that will allow me to fetch the object from this objectTypeId ?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [July 26, 2022, 5:52pm UTC](https://community.hubspot.com/t/get-object-type-from-object-type-id/61664/2 "2022-07-26T17:52:42Z")

</div>

@sfroment ,

Apologies if I am misunderstanding the question, but if you know the toObjectTypeId, or from for that matter, you should be able to use this endpoint to get the name:

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

The name will be at the bottom of the returned object.

---

<div class="post-metadata">

**Author:** ![sfroment](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@sfroment](https://community.hubspot.com/u/sfroment)\
**Post date:** [July 27, 2022, 9:49am UTC](https://community.hubspot.com/t/get-object-type-from-object-type-id/61664/3 "2022-07-27T09:49:03Z")

</div>

Oh no you haven’t misunderstood I was believing this route was only accepting name like “contact” etc…  
Thanks a lot I should have read more carefully
