We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
May 20, 2022 3:55 PM
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
Solved! Go to Solution.
May 23, 2022 3:04 AM
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
May 23, 2022 2:35 PM
Thanks Teun - this was just what I was looking for! I appreciate it!
May 23, 2022 3:04 AM
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