APIs & Integrations

Paigen11
Participant

Fetch contact custom properties via HubSpot API

SOLVE

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 Upvotes
1 Accepted solution
Teun
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Fetch contact custom properties via HubSpot API

SOLVE

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.


View solution in original post

2 Replies 2
Paigen11
Participant

Fetch contact custom properties via HubSpot API

SOLVE

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

0 Upvotes
Teun
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Fetch contact custom properties via HubSpot API

SOLVE

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.