Extracted interface for api