Get all contact properties by groupName


#1

I can get all the contact properties by using:

https://api.hubapi.com/contacts/v2/properties?hapikey=demo

and get a contact property using property_name

http://api.hubapi.com/contacts/v2/properties/named/hs_persona?hapikey=demo

Is it possible to get all the contact properties filtered by groupName? For e.g. I want to get all the contact properties where “groupName” is set to"contactinformation".


Getting a Contact Property Group's properties isn't documented
#2

Hi @sajinshrestha

You can get the properties in a group using this endpoint:

/properties/v1/contacts/groups/named/:groupName

and adding the includeProperties=true parameter in the request URL.

https://api.hubapi.com/properties/v1/contacts/groups/named/analyticsinformation?hapikey=demo&includeProperties=true


#3

@dadams

Thank you. This is exactly what I was looking for.

Is it possible to request multiple Contact Property by name instead of requesting one at a time?

e.g. get hs_persona, mobilephone, company etc.

Thanks,