API POST - Get assosiated object

Hello,

I am making POST call with this endpoint

https://api.hubapi.com/crm/v3/objects/companies/search/

In request body I specified filters and which properties I want. I would like to get also assosiated Contacts with the company. Any idead how to do it in one call?

I tried to add it to request body, but it doesnt work.

Hi, @PZit :waving_hand: Thanks for reaching out. Can you share an example request and response, please? This should include a filter group using the pseudo-property associations.{objectType}. You can find an example here as well — Search through associations.

I’ll let the community speak to workarounds. My instinct is this will likely be two calls, as I do not see an all-in-one option to accomplish both of your goals.

Thank you! — Jaycee

Hello,

basically in properties I want get list of assosiated contacts for company.

curl https://api.hubapi.com/crm/v3/objects/company/search \
 --request POST \
 --header "Content-Type: application/json" \
 --data '{
 "properties": [ "email", "state","associations.contact" ]
 }'

But it doesnt return assosiations at all

Thanks