APIs & Integrations

Paigen11
Participante

Fetch contact custom properties via HubSpot API

resolver

Hello!

 

I'd like to know if it's possible to fetch custom properties on a contact via the HubSpot API? I've been trying out the CRM endpoint: https://api.hubapi.com/crm/v3/objects/contacts/{{contact_id}}?hapikey={{ hubspot_api_key }}

 

But it's only returning me default properties including created date, email, firstname, etc. but I'm looking for a custom property named engagement_score.

 

Perhaps there's an API endpoint that better serves this purpose? Or there's a query param filter I can add to include these custom properties?

Please advise.


Thanks,

Paige

0 Me gusta
1 Soluciones aceptada
Teun
Solución
Experto reconocido | Partner nivel Diamond
Experto reconocido | Partner nivel Diamond

Fetch contact custom properties via HubSpot API

resolver

Hi @Paigen11 ,

 

If you want to retrieve specific properties, you need to pass them as URL params, so like this:
https://api.hubapi.com/crm/v3/objects/contacts/?properties=engagement_score&properties=lastname



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


Ver la solución en mensaje original publicado

2 Respuestas 2
Paigen11
Participante

Fetch contact custom properties via HubSpot API

resolver

Thanks Teun - this was just what I was looking for! I appreciate it!

0 Me gusta
Teun
Solución
Experto reconocido | Partner nivel Diamond
Experto reconocido | Partner nivel Diamond

Fetch contact custom properties via HubSpot API

resolver

Hi @Paigen11 ,

 

If you want to retrieve specific properties, you need to pass them as URL params, so like this:
https://api.hubapi.com/crm/v3/objects/contacts/?properties=engagement_score&properties=lastname



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.