Can we get associate company id via search Call API

I used this API endpoint to fetch the calls from Hubspot(https://api.hubapi.com/crm/v3/objects/calls/search.) and I sent the list of companies as a filter in the request body. but it’s not required for my case.

The problem is association company Id is not included in the response. Hence we couldn’t map the call details with the associated company via the call search endpoint. Please help if there is a way to include the company. We know that company id is available in the Call Get request endpoint (https://api.hubapi.com/crm/v3/objects/calls?limit=5&properties=hs_call_body,hs_call_direction,hs_call_status,hs_call_title,hs_call_recording_url&associations=companies) since this endpoint is not efficient we need to use the search endpoint as it not required to retrieve all the call object from the HubSpot.

This is the request body that I’m passing. please note that associations.company is not required for me. The only I need is the company Id with call details.

{

“filters”:[

  {

     "propertyName":"associations.company",

     "operator":"IN",

     "values":\[

        "8137551553",

        "8137551560",

        "8137551563"

     ]

  },

  {

     "propertyName":"hs\_call\_status",

     "operator":"EQ",

     "value":"COMPLETED"

  },

  {

     "propertyName":"hs\_lastmodifieddate",

     "operator":"GT",

     "value":"2013-07-31T14:56:51Z"

  }

],

“sorts”:[

  {

     "propertyName":"hs\_lastmodifieddate",

     "direction":"ASCENDING"

  }

],

“limit”:100,

“after”:0,

“properties”:[

  "hs\_call\_body",

  "hs\_call\_status",

  "hs\_call\_title",

  "hs\_call\_recording\_url"

]

}

Hi, @AVidanagamage :waving_hand: Thanks for the question. To conform, you are not missing an option here. This is the expected behaviour. You’ll need to make a second call to the Associations endpoints after retrieving your Calls.

Shoutout to @Teun for providing the succinct answer here

Best,

Jaycee