# Custom Object to Custom Object - join records retrieved from API

**URL:** <https://community.hubspot.com/t/custom-object-to-custom-object-join-records-retrieved-from-api/62583>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, forms, professional, object\
**Created:** [August 8, 2022, 10:31pm UTC](https://community.hubspot.com/t/custom-object-to-custom-object-join-records-retrieved-from-api/62583 "2022-08-08T22:31:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aawadhwa](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@aawadhwa](https://community.hubspot.com/u/aawadhwa)\
**Post date:** [August 8, 2022, 10:31pm UTC](https://community.hubspot.com/t/custom-object-to-custom-object-join-records-retrieved-from-api/62583/1 "2022-08-08T22:31:06Z")

</div>

Hello,

We are begnining to work with custom object to extend the capabilities, I have been able to create custom objects and retrieve the data that we put in it.

There is this case, however, where we have custom\_object\_2 associated with custom\_object\_1.  
I use **GET**  **crm/v3/objects/custom\_object\_2&properties=name** to get all the records with properties  
The response returned looks like this

“results”: [

{

“id”: “2090784302”,

“properties”: {

“hs\_createdate”: “2022-08-04T20:53:06.993Z”,

“hs\_lastmodifieddate”: “2022-08-04T20:53:06.993Z”,

“hs\_object\_id”: “2090784302”

},

“createdAt”: “2022-08-04T20:53:06.993Z”,

“updatedAt”: “2022-08-04T20:53:06.993Z”,

“archived”: false

} ]  
The above response doesn’t contain any identifier which can be used to link it to the custom\_object\_1.  
Does anyone know what parameters needs be passed where this API can return some identifier to associate the records of custom\_object\_2 with that of custom\_object\_1? Or is there any other way or exta API call that needs to be made?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [August 9, 2022, 8:54am UTC](https://community.hubspot.com/t/custom-object-to-custom-object-join-records-retrieved-from-api/62583/2 "2022-08-09T08:54:13Z")

</div>

Hi @aawadhwa ,

You can call the [associations endpoint](https://developers.hubspot.com/docs/api/crm/crm-custom-objects) to list all the associations for your current object. So in the case of ‘custom\_object\_2’ the URL could look something like this:

[https://api.hubapi.com/crm/v3/objects/custom\_object\_2/2090784302/associations/custom\_object\_2?limit=500](https://api.hubapi.com/crm/v3/objects/custom_object_2/2090784302/associations/custom_object_2?limit=500)

---

<div class="post-metadata">

**Author:** ![aawadhwa](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@aawadhwa](https://community.hubspot.com/u/aawadhwa)\
**Post date:** [August 10, 2022, 1:18pm UTC](https://community.hubspot.com/t/custom-object-to-custom-object-join-records-retrieved-from-api/62583/3 "2022-08-10T13:18:56Z")

</div>

Thank you @Teun , this worked!
