APIs & Integrations

Paigen11
参加者

Fetch contact custom properties via HubSpot API

解決

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 いいね!
1件の承認済みベストアンサー
Teun
解決策
名誉エキスパート | Diamond Partner
名誉エキスパート | Diamond Partner

Fetch contact custom properties via HubSpot API

解決

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.


元の投稿で解決策を見る

2件の返信
Paigen11
参加者

Fetch contact custom properties via HubSpot API

解決

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

0 いいね!
Teun
解決策
名誉エキスパート | Diamond Partner
名誉エキスパート | Diamond Partner

Fetch contact custom properties via HubSpot API

解決

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.