My phone system is querying hubspot and pulling a contact based on a matched phone number. The phone system is routing the call to the appropriate customer service rep. The customer service rep is responsible for the company. We need the ability to pull the customer service rep associated with the company that the contact is calling from. Without this ability we’ll have to store company information (such as service rep) on the contact record. This is not ideal. If only there was a way through json to query the contact record based on the phone number: https://api.hubapi.com/contacts/v1/search/query?hapikey=yourapikeyhere&property=phone&q=9995551212&property=hs_language&property=associatedcompanyid and then query the company record for the support rep eg. https://api.hubapi.com/companies/v2/companies/:companyId/properties?hapikey=yourapikeyhere
as far as I can tell this functionality works for contacts, but not properties.
https://api.hubapi.com/companies/v2/companies/:companyId/contacts?hapikey=yourapikeyhere