Specify multiple properties when getting contacts via List API

I am attempting to use the List API to get all contacts in a particular list. Specifically, the endpoint here.

I want to specify contact properties to be included in the response. The docs say to use the “Property” parameter. This works fine for a single property, but there is no information on how to specify more than one.

Things I have tried that do not work:

* using an array, ie

/contacts/v1/lists/208/contacts/all?property[]=email&property[]=company

* using various delimiters, including whitespace, comma, and semicolon. i.e.

property=email,company
property=email;company
property=email|company
property=email company

(excluded URL encoding for clarity, but was properly encoded)

How do I specify multiple properties?

Hello @ellingtonjp
To specify multiple properties when getting contacts via the List API in HubSpot, you can use the following format for the “property” parameter.

property=email&property=company

This format should allow you to specify multiple properties as comma-separated values, without any special characters or delimiters. For example, if you want to include the email, company name, and phone number properties, your API call would look like this

/contacts/v1/lists/208/contacts/all?property=email&property=company&property=phone

Make sure to separate each property with the &property= parameter, as shown above. Also, note that the HubSpot API requires each property to be specified separately, rather than as an array or a single string.