# Get Records From Custom Object

**URL:** <https://community.hubspot.com/t/get-records-from-custom-object/104506>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, sdk\
**Created:** [April 10, 2024, 2:52pm UTC](https://community.hubspot.com/t/get-records-from-custom-object/104506 "2024-04-10T14:52:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnandmth](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@adnandmth](https://community.hubspot.com/u/adnandmth)\
**Post date:** [April 10, 2024, 2:52pm UTC](https://community.hubspot.com/t/get-records-from-custom-object/104506/1 "2024-04-10T14:52:26Z")

</div>

I’m new to hubspot and I’m confused with a small little thing;

I have a custom object named “Custom Engagements” and I wanted to get all records via API, I used different formats with no luck;

[https://api.hubapi.com/crm/v3/objects/contact+engagements](https://api.hubapi.com/crm/v3/objects/contact+engagements)

[https://api.hubapi.com/crm/v3/objects/contact%20engagements](https://api.hubapi.com/crm/v3/objects/contact%20engagements)

[https://api.hubapi.com/crm/v3/objects/contact\_engagements](https://api.hubapi.com/crm/v3/objects/contact_engagements)

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

Appreciate if someone could helo me out and tell me what did I overlook here.

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [April 10, 2024, 6:42pm UTC](https://community.hubspot.com/t/get-records-from-custom-object/104506/2 "2024-04-10T18:42:28Z")

</div>

Hi @adnandmth,

You may need to double check the internal name of the custom object, which usually contains an underscore for multiple words.

To find that, go to Settings \> Objects \> Custom Objects, then select “Edit custom object”:

 ![evaldas_0-1712774195086.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/d/9d3d6dbf09de9cb618f3592eab7007f822fe2512.png)

You will then see the “Internal name” displayed below the “Object name (Plural)” field. In this case, it would be “custom\_cars”:

 ![evaldas_2-1712774469259.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/6/76ddffd77fc51d0e252a764de376f133388fe033.png)

Then you would use: [https://api.hubapi.com/crm/v3/objects/custom\_cars](https://api.hubapi.com/crm/v3/objects/custom_cars)

Also, see a community solution here if you need to retrieve properties as well:

[https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Records-for-a-Custom-Object-including-all-custom/m-p/848202](https://community.hubspot.com/t5/APIs-Integrations/Retrieve-Records-for-a-Custom-Object-including-all-custom/m-p/848202)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![adnandmth](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@adnandmth](https://community.hubspot.com/u/adnandmth)\
**Post date:** [April 11, 2024, 4:48pm UTC](https://community.hubspot.com/t/get-records-from-custom-object/104506/3 "2024-04-11T16:48:16Z")

</div>

Hi Evaldas, thank you for your suggestion.  
I tried the following;  
Copied the internal label name from the object configuration;

 ![Screenshot 2024-04-11 at 11.41.27 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/6/66715b639d7ddea3033f31ddede28c51b3839379.png)

Tested it in postman and got the following error response;

 ![Screenshot 2024-04-11 at 11.44.18 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/f/df670444ec4f503d0194d61e6ec3ffee48eaa13a.png)

When tested using another custom object with no space in the internal name it worked;

 ![Screenshot 2024-04-11 at 11.47.13 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/727510e917e4a51c51ffdbb7e7cfbb670740a006.png)

It’s odd behavior which I’m struggling to understand.

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [April 15, 2024, 5:19pm UTC](https://community.hubspot.com/t/get-records-from-custom-object/104506/4 "2024-04-15T17:19:23Z")

</div>

@adnandmth - I confirmed with HubSpot that this API can run into issues when a custom object contains multiple words.

However, as @Stegemann suggested, the workaround would be to use “objectTypeId” instead of “objectType” (which should correspond to the “internal name”).

In order to get the the “objectTypeId” for your custom object ID, you will need to make a call to the “Get all schemas” endpoint (GET/crm/v3/schemas) and find the “objectTypeId” for your custom object in the response.

 ![evaldas_0-1713201535967.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/9/198b2ef05599b976eba878374b6f1a95102c8526.png)

There is currently no timeline for patching up that issue in the API, but the workaround should give you what you need!

---

<div class="post-metadata">

**Author:** ![adnandmth](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@adnandmth](https://community.hubspot.com/u/adnandmth)\
**Post date:** [April 19, 2024, 10:46am UTC](https://community.hubspot.com/t/get-records-from-custom-object/104506/5 "2024-04-19T10:46:49Z")

</div>

It worked! thank you so much!!

---

<div class="post-metadata">

**Author:** ![Stegemann](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Stegemann](https://community.hubspot.com/u/Stegemann)\
**Post date:** [April 10, 2024, 8:38pm UTC](https://community.hubspot.com/t/get-records-from-custom-object/104506/6 "2024-04-10T20:38:43Z")

</div>

Sometimes I have more luck with the object ID found in the url of the custom object. Format --\> 2-12345678

Good luck!
