Custom Properties not return for contacts


#1

Using the contacts API: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=---&property=number_of_draws

Its not returning the custom property number_of_draws for us. I have double check the contact properties etc and this is all setup correctly as far as I can tell. The hubspot UI returns the property just fine. But I cant seem to get it to export it via the API.

Even tried using the demo API: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&property=company_name doesn’t return company_name property… But its listed at the top of this call: api.hubapi.com/contacts/v2/properties?hapikey=demo(cant add this link properly)


#2

Hi @robert2d

Properties will only be included for a contact record if the contact has a value for the property. If a contact has never had a value for the property, it won’t be included in the property data, even if you manually specify the property in the URL.

If you have a contact that has a value for the property, and you’re still not seeing the property when pulling your contacts, can you send me your Hub ID and the contact record you’re seeing this with?


#3

Hi there thanks for clearing that up. I may have missed that in the API docs sorry. Just glad I can see it now(manually edited a contact) I thought we had the property set on users because it shows up as “0” on the hubspot website. But I guess because its a numeric property it defaults to 0.

Anyway thanks again dadams!