I’m retrieving contacts by company id with the following URL: https://api.hubapi.com/companies/v2/companies/mycompanyId/contacts?hapikey=xxxxxxxxxx&portalId=xxxxxxx. However, our custom contact parameters (‘role’ and ‘support_contact’) are not returned even if they contain a value.
By default you only get a few default properties for the contacts. You can add &property={property name} to request specific properties to be included in the response. You can include the parameter multiple times to get multiple specific properties, just keep in mind that if you include any properties using that parameter that you will only get the specified properties (so you’ll only get the firstname and lastname if you also include those properties in addition to any other properties).