Base class for API methods