# Related Assocations Type

**URL:** <https://community.hubspot.com/t/related-assocations-type/53308>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [March 16, 2022, 6:01pm UTC](https://community.hubspot.com/t/related-assocations-type/53308 "2022-03-16T18:01:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IntegrationDev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/integrationdev/32/1529_2.png) [@IntegrationDev](https://community.hubspot.com/u/IntegrationDev)\
**Post date:** [March 16, 2022, 6:01pm UTC](https://community.hubspot.com/t/related-assocations-type/53308/1 "2022-03-16T18:01:57Z")

</div>

Hello,

When fetching an object with its assocations (e.g. “/crm/v3/objects/deals?associations=contacts,companies”), in the response, each object with assocations has an associations proporty in the form the below:

```lia-code-sample
"associations": {
 "companies": {
 "results": [
 {
 "id": "6019286140",
 "type": "deal_to_company"
 }
 ]
 },
 "contacts": {
 "results": [
 {
 "id": "4001",
 "type": "deal_to_contact"
 }
 ]
 }
}

```

Under this property are sub-properties for the various types of associated objects (e.g. associations.companies, associations.contacts).  
Inside each of these sub-properties, will all results have the same type value? For example, above under assocations.companies, will all result objects always have a type of “deal\_to\_company”?

Thanks!

---

<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:** [March 22, 2022, 2:06pm UTC](https://community.hubspot.com/t/related-assocations-type/53308/2 "2022-03-22T14:06:30Z")

</div>

@IntegrationDev

Yes, these will represent the associations of the objects and will be consistent.

You can see all of the available association types by using the [associations endpoint](https://developers.hubspot.com/docs/api/crm/associations)

`/crm/v3/associations/{fromObjectType}/{toObjectType}/types`

Do note that there is a [newer version of associations](https://developers.hubspot.com/docs/api/crm/associations/v4) in beta which extends the functionality which is worth exploring as well``

---

<div class="post-metadata">

**Author:** ![IntegrationDev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/integrationdev/32/1529_2.png) [@IntegrationDev](https://community.hubspot.com/u/IntegrationDev)\
**Post date:** [March 22, 2022, 3:56pm UTC](https://community.hubspot.com/t/related-assocations-type/53308/3 "2022-03-22T15:56:32Z")

</div>

Thank you, @dennisedson!
