# Get Custom Object by Id

**URL:** <https://community.hubspot.com/t/get-custom-object-by-id/65330>\
**Category:** CMS Development\
**Created:** [September 18, 2022, 11:52pm UTC](https://community.hubspot.com/t/get-custom-object-by-id/65330 "2022-09-18T23:52:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DTyshetskyy](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@DTyshetskyy](https://community.hubspot.com/u/DTyshetskyy)\
**Post date:** [September 18, 2022, 11:52pm UTC](https://community.hubspot.com/t/get-custom-object-by-id/65330/1 "2022-09-18T23:52:48Z")

</div>

Hi,

I am working with the custom objects and trying to ingest the whole object by id. Can’t seem to be able to identify the way to do it.

The steaps are following:

1. getting the objectTypeId by calling:

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

2. obtaining the list of objects under that category: [https://api.hubapi.com/crm/v3/objects/\](https://api.hubapi.com/crm/v3/objects/%5C)

3. Trying to get the full custom object with all properties by calling:

[https://api.hubapi.com/crm/v3/objects/\](https://api.hubapi.com/crm/v3/objects/%5C)/id

However as a result I am getting following response:  
{  
“id”: “\<id\>”,  
“properties”: {  
“hs\_createdate”: “2022-09-15T22:28:55.910Z”,  
“hs\_lastmodifieddate”: “2022-09-15T22:28:55.910Z”,  
“hs\_object\_id”: “\<another\_id\>”  
},  
“createdAt”: “2022-09-15T22:28:55.910Z”,  
“updatedAt”: “2022-09-15T22:28:55.910Z”,  
“archived”: false  
}

What am I missing? The Custom object doc doesn’t really explain this part of API much which is quite strange

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [September 19, 2022, 2:21pm UTC](https://community.hubspot.com/t/get-custom-object-by-id/65330/2 "2022-09-19T14:21:13Z")

</div>

Hi @DTyshetskyy,

I think you’ve done most of the job there.  
You’re probably missing this simple thing : **specify the list of properties you’d like to receive**.

Have a look at the [custom objects endpoint](https://developers.hubspot.com/docs/api/crm/crm-custom-objects), when using the GET you need to add, as a query parameter, the list of properties you want the call to return :

 ![LMeert_1-1663597209036.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/6/16d72619673269efd294f1e5fc2782ae8ebf99f2.png)

Try to do the same for your your custom object records and you should get there!

Hope this helps !  
If it does, please consider marking this answer as a solution 🙂

Best,

Ludwig

---

<div class="post-metadata">

**Author:** ![DTyshetskyy](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@DTyshetskyy](https://community.hubspot.com/u/DTyshetskyy)\
**Post date:** [September 22, 2022, 9:49pm UTC](https://community.hubspot.com/t/get-custom-object-by-id/65330/3 "2022-09-22T21:49:55Z")

</div>

Hi Ludwig,

Thank you for the reply.

It did work however the challenge for us is that we have fairly large custom objects with 100+ properties and the approach with passing every property name is quite a tedious one. On top of that it makes it unnecessarily diffucult to assemble the object from the response. Is it because you can’t de-serialize the objects as a whole and require an explicit name?

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [September 23, 2022, 7:04am UTC](https://community.hubspot.com/t/get-custom-object-by-id/65330/4 "2022-09-23T07:04:22Z")

</div>

Hi @DTyshetskyy,

If you need to get the entire object, then it would make sense to [interrogate the object schema first](https://developers.hubspot.com/docs/api/crm/crm-custom-objects), and from that response, take the properties list and pass it in the get object by id call.

This way you don’t have to put up with building the call by listing the properties yourself.

Now regarding the structure of the response, I agree this doesn not make reassembling the object easy, but I really don’t think you’ve got a better shot at this.

Best,

Ludwig

---

<div class="post-metadata">

**Author:** ![DTyshetskyy](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@DTyshetskyy](https://community.hubspot.com/u/DTyshetskyy)\
**Post date:** [September 26, 2022, 7:59pm UTC](https://community.hubspot.com/t/get-custom-object-by-id/65330/5 "2022-09-26T19:59:31Z")

</div>

Thank you, Ludwig!
