Login to Webflow Site using external API Key

Hi, I need to be able to connect to certain webflow hosted pages using an externally hosted API Key. Otherwise the pages should not be visible.

Does anyone know if that is possible using, say, a JAVAscript function that checks the APIkey before proceeding?