hasEverBeen-Filter in GET request for Contacts

Hi,

I was wondering if there is a filter option like “hasEverBeen” available for regular GET requests for contacts. I’ve seen this filter in the GUI for lists but haven’t found it in the Contact API documentation.

My specific use case is that I need to retrieve the IDs of all contacts who have ever been customers, not just those who are current customers. Is there an API endpoint that supports this feature, or would I need to create a list and fetch it that way? (The process in question uses this check in multiple areas, so creating a list would make things more complex.)

Hey, @JDomazet :waving_hand: Thanks for your question. You are not missing a filter option for the Contacts API. In this case, there is no fidelity with the in-app options. You can try looking at a custom solution using these endpoints and the `propertiesWithHistory` param and then loop through each record to look for matches to that specific value. You could use a workflow to set a value on a custom property whenever a Contact reaches the customer phase of your lifecycle stages, and use the Search API to pull records with this specific value. Or, your idea of using Lists may be the “easiest” to implement.

@evaldas @HubSpot_Corey @elizheleva do you have any thoughts on how @JDomazet might tackle this challenge?

Thank you! —Jaycee

I agree with @Jaycee_Lewis evaluation and suggestions - it does not look like there is way to get this kind of result directly with an API call, since the calls for retrieving a list of contacts based on specific criteria rely on current property values.