APIs & Integrations

Not applicable

GET All Contacts API - Company name property didn't come

Here is my request url : https://api.hubapi.com/contacts/v1/lists/all/contacts/all?count=100&property=firstname&property=last...

I didn't receive company name in response. In my account, many contact has company name and jobtile.

0 Upvotes
5 Replies 5
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

GET All Contacts API - Company name property didn't come

Hi @Keith_Muenze (and others),

It seems the issue here is a mixup between a contact's associated company, and a contact's 'Company Name' property. These are two distinct things:

  • 'Company Name' is a default contact property that exist on contact records and is most often used as a form field.
  • An associated company is a distinct company record that is associated with a contact record. This is most often the result of automatic email domain association.

A contact's 'Company Name' property will not automatically update to reflect the name of the contact's associated company; this is intentional, and is intended to prevent the automated contact <-> company association from overwriting data provided by the contact.

It's not possible to pull the associated company's 'Name' property when requesting contacts using the 'Get all contacts' endpoint, since that value isn't stored on the contact record. You'll instead need to request the associatedCompanyId property and pull information on the company records you're interested in.

0 Upvotes
kmuenze
Participant | Platinum Partner
Participant | Platinum Partner

GET All Contacts API - Company name property didn't come

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

GET All Contacts API - Company name property didn't come

Hi @Ramkumar_T,

Can you give me a link to a contact record in your portal that has a value for the Company Name property that does not appear in the API response?

0 Upvotes
mfleming-app
Participant

GET All Contacts API - Company name property didn't come

Make sure that you aren't just looking at ['company'], but ['company']['value']

eg.

contact['company']['value']  vs  contact['company']
0 Upvotes
Not applicable

GET All Contacts API - Company name property didn't come

Yes. I am looking for contact['company']['value']

0 Upvotes