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 Keap REST API

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

2 Likes

Yup! Glad you found it :wink:

MAAAN!! It’s like 6+ years later… but this is SUPER-Dee-Dooper!!! It worked for me (May 2024).

Great. Glad it helped somebody.

1 Like