[API] Get label from internal value

James2932
Member

Hi all,

 

I am trying to get the name of each of our clients' contact points through API. This property is a company property; each company has a particular contact point. However when using the API, it returns the internal ID (something like 12345678) instead of the label value (the name of the contact point). 

 

Is there a way to use the Python API to look up name from internal ID? Thanks. 

2 Replies 2
natsumimori
Community Manager

Thank you for your post @James2932 .

@Bryantworks and @JBeatty , would you mind sharing your advice for @James2932 ?

0 Upvotes
himanshurauthan
Recognized Expert | Platinum Partner

Hello @James2932,

 

Yes, you can get the value of the company property using the company id.

 

Please follow this link https://developers.hubspot.com/docs/api/crm/companies 

and go to the endpoints tab, check for the GET/crm/v3/objects/companies/{companyId} endpoint, You need to pass the properties that you want in the response, in your case, the internal name of the contact points property.

 

You can try the api, and copy the exact code of your selected language.

 

Hope this helps!

 

Regards,

 

 

Digital Marketing & Inbound Expert In Growth Hacking Technology