# Linking Custom Object with Contacts

**URL:** <https://community.hubspot.com/t/linking-custom-object-with-contacts/36563>\
**Category:** APIs & Integrations\
**Tags:** python, developer-tools, contacts, starter\
**Created:** [April 30, 2021, 6:44pm UTC](https://community.hubspot.com/t/linking-custom-object-with-contacts/36563 "2021-04-30T18:44:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UMallya](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/umallya/32/84083_2.png) [@UMallya](https://community.hubspot.com/u/UMallya)\
**Post date:** [April 30, 2021, 6:44pm UTC](https://community.hubspot.com/t/linking-custom-object-with-contacts/36563/1 "2021-04-30T18:44:53Z")

</div>

Hi,

I have to Build a Custom Object which has a one-to-many relationship with Contact objects.

We will be using Python API to synch Contacts and Custom objects information with Hubspot from SQL DB. I am very new to Hubspot development. Can someone answer the below queries?

1. How to proceed with Python to communicate with Hubspot API.

2. How do I build a Relationship between Contact and Customobject within API.

Thanks

Umesh

---

<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:** [May 3, 2021, 5:18pm UTC](https://community.hubspot.com/t/linking-custom-object-with-contacts/36563/2 "2021-05-03T17:18:47Z")

</div>

Hello @UMallya

You should see some example python calls in the endpoint documentation. See screengrab

 ![41939i3B27D194DAC3346A.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/fbb41bed73a385bf56c5d83c4f4a3d289e93ef3c.jpeg)

When you go to the [documentation](https://developers.hubspot.com/docs/api/crm/crm-custom-objects) for the Custom Object endpoints, you will see a section discussing Associations on the overview tab which should show you how to connect your Custom Object with another object type

Hope this gets you started @taran42 , any quick tips you can offer?

---

<div class="post-metadata">

**Author:** ![taran42](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/taran42/32/105524_2.png) [@taran42](https://community.hubspot.com/u/taran42)\
**Post date:** [May 3, 2021, 8:49pm UTC](https://community.hubspot.com/t/linking-custom-object-with-contacts/36563/3 "2021-05-03T20:49:02Z")

</div>

@dennisedson I think you covered it. 😄
