Getting all Contact properties even after adding &property=<my property name> to the url

Hi

Im trying to get one property per contact and using this API call
and yet Im getting all properties in the response.

I dont know if that matters - but the property Im looking for is a custome one I added.

https://api.hubapi.com/contacts/v1/contact/email/email@email.com/profile?property=thepropertyname&hapikey=

Please advise

Ilan

Hey @Ilanyrozen,

The Get a contact by email address endpoint will return most of all the contact properties. There isn’t a way to control the returned properties in the response.

If you’d like to control the returned properties, you can explore the CRM API | Search.

i.e. POST crm/v3/objects/contacts/search

Body

{
 "filterGroups":[
 {
 "filters":[
 {
 "propertyName": "email",
 "operator": "EQ",
 "value": "email address"
 }
 ]
 }
 ],
 "properties": [ "propertyname1", "propertyname2" ]
 }

Thanks Wnedi
I will look into your CRM API suggestion
It looks like a good solution for my needs
Ilan