add retrieve_conditions api call