Get Contacts Custom Fields using API

trying to get custom fields of a contact. Using .NET with RestSharp to consume API…There is no ‘custom_fields’ object returned when I query it both in my code and the interactive API on https://developer.infusionsoft.com/docs/rest/#!/Contact/listContactsUsingGET

I see it in the response sample but when I query it doe snot return any custom fields

https://api.infusionsoft.com/crm/rest/v1/contacts?access_token=ACESS_TOKEN

this gets me my list of contact but with very little info…what is the url/API to query to get all the info for a contact?

for those of you wondering the same I stumbled across the answer which is to add optional_properties to the querystring

GET https://api.infusionsoft.com/crm/rest/v1/contacts/{contactId}?optional_properties=custom_fields

1 Like

Yup! Glad you found it :wink: