APIs & Integrations

Sasi_Rekha
Member

Query on Fetching Association Properties in V3 API

Hi Team,

As we are sunsetting the Contact V1 List API, I wanted to check if it's possible to retrieve all association properties using the V3 API.


Specifically, can we fetch company association properties(properties of company not just id) using the V3 API?


Thanks in advance!
Sasi Rekha



Thanks in advance.
Sasi Rekha

3 Replies 3
GRajput
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Query on Fetching Association Properties in V3 API

Hi @Sasi_Rekha 

 

"It is not possible to fetch associations through contact search API. Also if you want to fetch company properties which is associated with contact. Then you will have to follow the following step:
1. First you will have to fetch the ssociated company ID using contact fetch API.
2. After that you can fetch company properties through the company id which is received in step 1 using the company fetch API"

 

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes
HMir
Member

Query on Fetching Association Properties in V3 API


@Sasi_Rekha wrote:

Hi Team,

As we are sunsetting the Contact V1 List API, I wanted to check if it's possible to retrieve all association properties using the V3 API.


Specifically, can we fetch company association properties(properties of company not just id) using the V3 API?


Thanks in advance!
Sasi Rekha



Thanks in advance.
Sasi Rekha


Yes, with HubSpot's V3 API, you can retrieve properties of associated companies, not just their IDs. When querying objects like contacts, you can use the associations parameter to include associated companies in your response. To fetch specific properties of these associated companies, you can utilize the Search API and specify the desired company properties in the properties parameter of your request. This approach allows you to retrieve comprehensive details about associated companies directly within your API responses.

0 Upvotes
Sasi_Rekha
Member

Query on Fetching Association Properties in V3 API

Is it possible to get the properties of a company in the contact search API

/crm/v3/objects/contacts/search ?
0 Upvotes