APIs & Integrations

Egoi
Contributeur | Partenaire solutions
Contributeur | Partenaire solutions

Get associations objects name instead of the id

I am using HubSpot API to get current Deals through the following endpoint. More information here.

 

GET /crm/v3/objects/deals


Deals could or should have contacts and company info linked to them. I can retrieve this information with the query param associations, but I only get an ID instead of the value.

Opera Instantánea_2023-01-28_172724_developers.hubspot.com.png

Is there any way to customize the call so that I can get the contacts name and email in the same API Call?

Thanks in advice!

1 Réponse
ChrisoKlepke
Conseiller clé | Partenaire solutions Elite
Conseiller clé | Partenaire solutions Elite

Get associations objects name instead of the id

Hey @Egoi , 

 

not that I'm aware of. You would need to create an extra call to the contacts API endpoint.

 

However, this is exactly something that GraphQL is trying to fix. I am uncertain if it's still in beta or live already, but you can read up on it here. It's exclusive to CMS Pro and Enterprise, though, so it might be a long shot in your case. 

 

Sorry that I'm unable to help more.

 

Cheers, 

Chriso