# Contacts Associated with Custom Objects

**URL:** <https://community.hubspot.com/t/contacts-associated-with-custom-objects/72172>\
**Category:** APIs & Integrations\
**Created:** [January 4, 2023, 11:20am UTC](https://community.hubspot.com/t/contacts-associated-with-custom-objects/72172 "2023-01-04T11:20:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek619](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abhishek619/32/38114_2.png) [@Abhishek619](https://community.hubspot.com/u/Abhishek619)\
**Post date:** [January 4, 2023, 11:20am UTC](https://community.hubspot.com/t/contacts-associated-with-custom-objects/72172/1 "2023-01-04T11:20:19Z")

</div>

Hello! I am working on a project for a client on Custom Objects in HubSpot. I have created a custom object named ‘Builds’ and I have associated some contacts to it. My goal is to get a list of associated contacts through API. How can i achieve it? And,if there is any other method too, I am happy to hear anyone’s thoughts on this, Thank you.

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [January 5, 2023, 7:44am UTC](https://community.hubspot.com/t/contacts-associated-with-custom-objects/72172/2 "2023-01-05T07:44:12Z")

</div>

Hi there, you could use the Association endpoint like so:

`{{baseUrl}}/crm/v3/objects/:objectType/:objectId?associations=contacts`

Your objectType and objectId can be easily found in the URI when you navigate to a corresponding “Build” custom object via HubSpot.

For example: [https://app-eu1.hubspot.com/contacts/9999999/record/](https://app-eu1.hubspot.com/contacts/9999999/record/)

2-88888888

/

77777777

/

The objectType string would be the fragment

2-88888888

and the objectId would be

77777777

Hope this helps!

Cheers

WL
