CompanyId from Contact


#1

I am pushing some properties to a contact (identified by a contactId). At the same time I want to update some properties of the contact's company. Looks like the contact API returns company name but not companyId. Is there a way to get companyId from a contact?

I am using this endpoint to get a list of all contacts, then updating their properties: https://developers.hubspot.com/docs/methods/contacts/get_contacts


#2

Hi @vahed,

The 'Get all contacts' endpoint doesn't include a contact's association information. You'd need to pull the contact(s) individually in order to get the associated company info.