How to get custom property value for all contacts?


#1

I’d like to get custom properties for all of contacts. When I used URL:

https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=prospectid&property=firstname&count=10&hapikey=

I got back values for the Hubspot build in prosperty firstname, however I couldn’t get any value for the custom property: prospectid. I know prospectid has non null value because if I use get contact by email API:

https://api.hubapi.com/contacts/v1/contact/email/xxx@gmaill.com/profile?hapikey=

I did get prospectid value back.

How can I get custom property value for all contacts via 'Get all contacts API? Please help!

Thank you!