APIs & Integrations

kishan_kanani
Participant

Looking for API to get company of user

I want to get company of user, i have around 150 user in hubspot and need API for that, Please let me know which API i can use to get company of associated user.

0 Upvotes
3 Replies 3
cbarley
HubSpot Alumni
HubSpot Alumni

Looking for API to get company of user

Hi @kishan9972, you can use the GET owners endpoint here: https://developers.hubspot.com/docs/methods/owners/get_owners, which correspond with users in HubSpot, but Users in a portal don't have a company parameter on them, so we can't pull that data. We know that there can be multiple brands in HubSpot if you're an Marketing Enterprise user, so I can definitely see how this functionality would be useful in some situations. I'd recommend posting in the ideas forum: https://community.hubspot.com/t5/custom/page/page-id/ideaslandingpage. I'd be happy to upvote if you do!

0 Upvotes
kishan_kanani
Participant

Looking for API to get company of user

Hello,

It is for user(Hubspot user) company API?
I want to get user company not contact(lead) company.

0 Upvotes
cbarley
HubSpot Alumni
HubSpot Alumni

Looking for API to get company of user

Hi @kishan9972, so that we are on the same page, when you reference "user", do you mean a contact in your portal, e.g. when you go to the main contacts page? If so, you can use the Get all contacts endpoint here: https://developers.hubspot.com/docs/methods/contacts/get_contacts, and in your request URL, add the property parameter like so: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&property=company.

0 Upvotes